Files
PaperClipAI/server/src/services/chat-channels/slack/adapter.ts
T
DottaandPaperclip becdc3b08e perf(slack): remove delays before mention acknowledgements (#16491)
Slack mentions now start eyes reactions after the authorized task/comment commits, independently of attachments, subscription and scheduler acceptance. Omit unused optional URL-preview polling while retaining message text, links and files. Keep receipt failures and missing-file warnings independent, including terminal cleanup of older multi-line diagnostics.

Verified with full current-head CI and E2E, Superagent and legacy security checks, Apex 5/5 with no unresolved findings, 19 selected real-PostgreSQL receipt/authorization/cleanup cases, and full frozen-source typecheck/build. The first CI attempt's unchanged Cursor probe timeout is retained in the PR; the one failed-only retry passed under unchanged deadlines. Live Slack latency still requires deployed acceptance.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-15 17:36:50 -05:00

12 lines
494 B
TypeScript

import { SlackAdapter } from "@chat-adapter/slack";
import type { LinkPreview } from "chat";
export class PaperclipSlackAdapter extends SlackAdapter {
// The SDK polls for an optional Slack unfurl for two seconds before it
// delivers a message containing a URL. Paperclip accepts the message text,
// links and files directly; preview metadata is not part of task admission.
protected override async enrichLinks(links: LinkPreview[]): Promise<LinkPreview[]> {
return links;
}
}