The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix(slack): link created tasks in default reply guidance (#15579)
Dotta8f13ec4d51d5
diff --git a/doc/DEVELOPING.md b/doc/DEVELOPING.mdindex 08986d2ef4..26ad54fa18 100644--- a/doc/DEVELOPING.md+++ b/doc/DEVELOPING.md@@ -715,6 +715,11 @@ a real mention. **Done** finishes setup once webhook verification and requiredaccount linking are complete, whether or not a test message was sent. Theseparate strict connection-test API retains its conversation and delivery checks.+New Slack conversations receive default communication guidance that requires a+clickable link to each task the agent creates. Agents use the public task URL+from Paperclip tools or task context and report when a link is unavailable.+Existing conversations keep their original communication guidance snapshot.+### Chat activity pagination and callback diagnosticsThe connection Activity tab loads 25 records per page. `GET /api/chat-endpoints/:id/activity?limit=25`diff --git a/server/src/services/chat-communication-guidance.test.ts b/server/src/services/chat-communication-guidance.test.tsindex a1f7736976..cca070de8f 100644--- a/server/src/services/chat-communication-guidance.test.ts+++ b/server/src/services/chat-communication-guidance.test.ts@@ -22,6 +22,15 @@ describe("initial medium communication guidance", () => {expect(buildChatCommunicationGuidance({ provider: "slack", isDirectMessage: true })).toContain("direct conversation");});+ it.each([false, true])("requires public links for created Slack tasks (DM: %s)", (isDirectMessage) => {+ const guidance = buildChatCommunicationGuidance({ provider: "slack", isDirectMessage });+ expect(guidance).toContain("include a clickable link to each created task");+ expect(guidance).toContain("task identifier or title as the link text");+ expect(guidance).toContain("public task URL returned by Paperclip tools or supplied in task context");+ expect(guidance).toContain("never guess a URL");+ expect(guidance).toContain("If no public task URL is available, say that the link is unavailable");+ });+it.each(CHAT_PROVIDERS.filter((provider) => provider !== "slack"))("leaves %s unchanged", (provider) => {expect(buildChatCommunicationGuidance({ provider, isDirectMessage: false, communicationInstructions: "Ignored" })).toBeNull();});diff --git a/server/src/services/chat-communication-guidance.ts b/server/src/services/chat-communication-guidance.tsindex c76fcf9500..d2f3344939 100644--- a/server/src/services/chat-communication-guidance.ts+++ b/server/src/services/chat-communication-guidance.ts@@ -9,6 +9,7 @@ const providerGuidance: Partial<Record<ChatProvider, string>> = {...slackTaskUpdateGuidance,"Lead with the answer or outcome. Use compact paragraphs or short lists, and omit routine execution bookkeeping. Honor requests for more detail or exact output over default brevity.","Put small answers directly in the message. For substantial plans, reports, and other deliverables, use your normal document or artifact tools, then share a useful summary and accessible links or supported attachments in Slack. Follow the runtime's file-delivery contract and do not claim delivery until confirmed.",+ "When you create tasks, include a clickable link to each created task in your reply. Use the task identifier or title as the link text, not a bare task ID. Use the public task URL returned by Paperclip tools or supplied in task context; never guess a URL or use a localhost, API, or sandbox address. If no public task URL is available, say that the link is unavailable.","Ask useful questions through the existing human-input tools. Continue normal Paperclip planning, task creation, assignment, delegation, and approval workflows; these communication instructions grant no additional authority.",].join("\n\n"),};