Repository navigation
feat(slack): stream an Agent's tool-call timeline without its text - #10370
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
All reported issues were addressed across 12 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge; no blocking issue was found. SummaryAdds Agent progress sources and custom tool labels to Slack triggers. Progress sources hide their answer text, while their steps and the first streamed answer share one reply.
|
fa63cfe to
f1596f6
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Slack triggers gain streamTimelineSources (Agent blocks, including child workflows) and streamToolLabels. A timeline source streams through the executor as usual, but only its tool steps and optional thinking reach Slack; its text is drained and never posted. The first message of an execution is shared by timeline steps and the first answer, and is owned and stopped by the controller. Deployed configs without the new fields read as empty, so no redeploy is needed.
…ique task IDs - The shared message settles from the invocations that wrote to it, and each invocation succeeds only if the ones before it did, matching how replies settled before the shared message existed. - The progress picker offers every Agent, including one whose response format replaces its content output. - Task IDs include the execution order inside a child workflow instance, so two Agents there never update the same step. - Tool labels and display titles ignore inherited object properties. - Fix the CI audits (toRecordOrNull, unused export) and test types.
82cfe5d to
070422e
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Slack triggers with an agent session can now show an Agent's tool-call timeline without posting that Agent's text. This is for workflows where an Agent's output is reviewed or reformatted before it is sent: today such a workflow can stream only the final block, so the person sees nothing for minutes.
streamTimelineSources(Show progress from): Agent blocks, including Agents in child workflows. The existing output picker is reused, filtered to Agentcontentoutputs through a newSubBlockConfig.outputFilter.streamToolLabels(Tool step labels): a Tool/Label table. MCP tools can be keyed by their own name, e.g.lc_cur; this also works for managedmcp-cg-connections.SlackStreamResponseConfiggainstimelineSources: { workflowId?, blockId }[]andtoolLabels.selectedOutputsas<block>_content(or<wf>.<block>_content), so the existing Agent and child-workflow streaming paths stream it unchanged. Internal child selectors require a path, which is why it is selected ascontent.Not included: collapsing repeated calls to the same tool into one step, and showing tool arguments. Arguments are never shown.
Test plan
slack-stream-config.test.ts:contentslack-execution-stream.test.ts:selectedOutputssuspended, with the task and the unfinished tool marked as errors