You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suppress intermediate text output before tool calls in group channels #50989
In multi-agent group channels, LLMs frequently emit "thinking out loud" text before tool calls — messages like "Let me check...", "Looking into this...", "I should set up...". This text is the model's deliberate output (not a streaming artifact), so blockStreamingDefault cannot suppress it.
Each intermediate text block gets posted as a separate channel message, creating noise and burning tokens. In a 5-bot setup, a single question can generate 10+ process-narration messages before any actual result appears.
What we've tried
blockStreamingDefault: "on" — only buffers streamed chunks, not complete text outputs preceding tool calls ❌
thinkingDefault: "low" — provides private reasoning space, but the model still voluntarily narrates ❌
AGENTS.md instructions ("no intermediate text") — competes with model training to be helpful/explanatory, doesn't stick reliably ❌
Proposed solution
Add a config option to suppress text that precedes tool calls:
{agents: {defaults: {suppressIntermediateText: true// or per-channel}}}
Behavior
When suppressIntermediateText: true:
If the model's response contains text followed by tool calls, the pre-tool text is dropped (not sent to the channel)
Only the final text after all tool calls complete is delivered as the visible response
If the model's response is text-only (no tool calls), it's delivered normally
This matches how humans work: form the thought → do the work → deliver the result. The intermediate narration is process, not product.
Alternative: per-channel config
{channels: {slack: {channels: {"C123": {suppressIntermediateText: true// group channels}}}}}
Thanks for the context here. I did a careful shell check against current main, and this is already implemented.
Current main handles this at the group/channel delivery layer. Group and channel turns now default to message_tool_only, which suppresses automatic partial/block/tool/final source delivery while still letting the agent post visible output with message(action=send). This covers the reported Slack multi-agent group-channel noise without adding the exact proposed suppressIntermediateText key.
Best possible solution:
Close this as implemented on current main. Keep the current messages.groupChat.visibleReplies: "message_tool" default and message-tool-visible output model; a future narrower issue can ask for an opt-in mode that preserves automatic final replies while dropping only pre-tool narration.
What I checked:
Group/channel delivery mode:resolveSourceReplyDeliveryMode maps ChatType values group and channel to message_tool_only unless the operator explicitly opts back into messages.groupChat.visibleReplies: "automatic"; native commands remain automatic. (src/auto-reply/reply/source-reply-delivery-mode.ts:23, 14f140d6f0d3)
Automatic source delivery suppression:resolveSourceReplyVisibilityPolicy turns message_tool_only into suppressDelivery, which the dispatcher uses to keep automatic source delivery private while still processing the agent turn. (src/auto-reply/reply/source-reply-delivery-mode.ts:57, 14f140d6f0d3)
Partial/block/final delivery gated: The dispatcher strips partial/reasoning/progress callbacks when automatic source delivery is suppressed, returns before sending block replies, and skips final reply dispatch under suppressDelivery. (src/auto-reply/reply/dispatch-from-config.ts:1068, 14f140d6f0d3)
Regression coverage: Tests cover both the default group/channel mapping to message_tool_only and the stronger dispatcher behavior: partial, reasoning, block, tool, and final channel deliveries are not emitted in that mode. (src/auto-reply/reply/dispatch-from-config.test.ts:4260, 14f140d6f0d3)
Public documentation: Group docs document messages.groupChat.visibleReplies: "message_tool" as the default for group/channel rooms, with visible output requiring message(action=send). Public docs: docs/channels/groups.md. (docs/channels/groups.md:43, 14f140d6f0d3)
Fix provenance:git blame attributes the current source-reply delivery mode implementation to commit 1e9faa2a5952b29acbef6780fb6ff024def45c8e, committed at 2026-04-28T20:34:55+01:00, and git branch --contains shows it on main. (src/auto-reply/reply/source-reply-delivery-mode.ts:11, 1e9faa2a5952)
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Codex review notes: model gpt-5.5, reasoning high; reviewed against 14f140d6f0d3; fix evidence: commit 1e9faa2a5952, main fix timestamp 2026-04-28T20:34:55+01:00.
Activity
Ryce commentedon Mar 20, 2026
clawsweeper commentedon Apr 28, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.Current main handles this at the group/channel delivery layer. Group and channel turns now default to
message_tool_only, which suppresses automatic partial/block/tool/final source delivery while still letting the agent post visible output withmessage(action=send). This covers the reported Slack multi-agent group-channel noise without adding the exact proposedsuppressIntermediateTextkey.Best possible solution:
Close this as implemented on current main. Keep the current
messages.groupChat.visibleReplies: "message_tool"default and message-tool-visible output model; a future narrower issue can ask for an opt-in mode that preserves automatic final replies while dropping only pre-tool narration.What I checked:
resolveSourceReplyDeliveryModemapsChatTypevaluesgroupandchanneltomessage_tool_onlyunless the operator explicitly opts back intomessages.groupChat.visibleReplies: "automatic"; native commands remain automatic. (src/auto-reply/reply/source-reply-delivery-mode.ts:23, 14f140d6f0d3)resolveSourceReplyVisibilityPolicyturnsmessage_tool_onlyintosuppressDelivery, which the dispatcher uses to keep automatic source delivery private while still processing the agent turn. (src/auto-reply/reply/source-reply-delivery-mode.ts:57, 14f140d6f0d3)suppressDelivery. (src/auto-reply/reply/dispatch-from-config.ts:1068, 14f140d6f0d3)message_tool_onlyand the stronger dispatcher behavior: partial, reasoning, block, tool, and final channel deliveries are not emitted in that mode. (src/auto-reply/reply/dispatch-from-config.test.ts:4260, 14f140d6f0d3)messages.groupChat.visibleReplies: "message_tool"as the default for group/channel rooms, with visible output requiringmessage(action=send). Public docs:docs/channels/groups.md. (docs/channels/groups.md:43, 14f140d6f0d3)git blameattributes the current source-reply delivery mode implementation to commit1e9faa2a5952b29acbef6780fb6ff024def45c8e, committed at2026-04-28T20:34:55+01:00, andgit branch --containsshows it onmain. (src/auto-reply/reply/source-reply-delivery-mode.ts:11, 1e9faa2a5952)So I’m closing this as already implemented rather than keeping a duplicate issue open.
Codex review notes: model gpt-5.5, reasoning high; reviewed against 14f140d6f0d3; fix evidence: commit 1e9faa2a5952, main fix timestamp 2026-04-28T20:34:55+01:00.