Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
After updating 2026.5.28 → 2026.6.5, a Slack reply from one longer agent turn was delivered as ~15 separate channel messages within 10 seconds, each containing a progressively longer prefix snapshot of the same final reply text (later posts also contained multiple snapshots concatenated inside one message body).
The session transcript (agents/<agent>/sessions/<id>.jsonl) contains exactly one assistant message with the final text, so the agent/turn itself is clean — this is a delivery-layer issue.
Key config detail: the posting Slack account has an explicit account-level streaming: { "mode": "off" }, while the channel-level default is streaming: { "mode": "partial" }. On 2026.5.28 this account never streamed partials (override honored). On 2026.6.5 partial snapshots were delivered — and delivered as new messages rather than edits/coalesced updates. So two suspected regressions, possibly related to the progress-draft coalescing rework (#85612):
- Account-level
streaming.modeno longer overrides the channel-level default. - The partial path posts each draft snapshot as a new message instead of updating one draft message.
Steps to reproduce
- Multi-account Slack (socket mode). Channel-level
channels.slack.streaming = { "mode": "partial" }, and for the posting accountchannels.slack.accounts.<acct>.streaming = { "mode": "off" }. messages.groupChat.visibleReplies: "automatic".- Update to 2026.6.5 (official plugins lockstep at 2026.6.5).
- Trigger a longer agent turn replying into a channel thread (ours included a tool step with image processing before the final text).
- Observe rapid-fire partial-prefix messages in the thread.
Expected behavior
- Account-level
streaming.mode: "off"suppresses partial delivery for that account regardless of the channel-level default (2026.5.28 behavior). - In
partialmode, draft snapshots coalesce/edit into a single message (per fix(slack): keep one draft message in progress mode #85612), never one new post per snapshot.
Actual behavior
15+ [slack] delivered reply to channel:<redacted> gateway log lines within ~10s (~270ms apart), no errors/retries logged. Each delivery is a normal chat.postMessage of a partial snapshot. Sample (channel id redacted):
2026-06-11T22:34:14.100+09:00 [slack] delivered reply to channel:<redacted>
2026-06-11T22:34:14.358+09:00 [slack] delivered reply to channel:<redacted>
2026-06-11T22:34:15.280+09:00 [slack] delivered reply to channel:<redacted>
... (12 more within the same ~10s window)
Transcript for the same sessionKey: 1 final assistant message, no duplicates.
Workaround
Setting the channel-level channels.slack.streaming.mode = "off" (so every layer is off) stops it immediately via config hot reload.
OpenClaw version
2026.6.5 (5181e4f) — upgraded same day from 2026.5.28 (e932160). Official plugins (incl. slack) lockstep at 2026.6.5.
Operating system
macOS (Apple Silicon, Darwin 25.5.0)
Install method
npm global install, gateway run as LaunchAgent
Additional context
- Model route:
openai/gpt-5.5withagentRuntime.id="codex"(codex app-server). - A small local message-sanitizer plugin is also installed on this deployment; happy to retest with it disabled if useful, but the account-level override being ignored reproduces purely in the streaming/delivery layer config.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 11, 2026
Thanks for the report. I gave this a fresh shell check against current
main, and I could not reproduce it anymore.The issue can close because current source shows Slack account-level preview streaming mode is honored, block replies are a separate explicit control, and the reporter's maintainer-requested controlled canary produced exactly one Slack auto-reply with no burst.
Review details
Best possible solution:
Close this as not reproduced under the controlled config, keep preview streaming and block replies as separate controls, and ask for a new focused report if a maintained Slack path still duplicates replies.
Do we have a high-confidence way to reproduce the issue?
No. The reporter's controlled canary with preview streaming off, block streaming off, and the sanitizer disabled delivered exactly one Slack auto-reply, and current source shows the alleged preview-mode override path is not active when mode is off.
Is this the best way to solve the issue?
Yes. Closing as cannot reproduce is the best cleanup path now because the prior proposed code change would merge two separate controls; if the burst returns, the next useful action is a new focused repro with redacted config, sanitizer state, Slack timestamps/prefixes, and gateway logs.
Security review:
Security review: This is an issue without a proposed patch, and the report is not security-sensitive.
AGENTS.md: found and applied where relevant.
What I checked:
AGENTS.md:1, f1b8827d20c8)VISION.md:13, f1b8827d20c8)extensions/slack/src/accounts.ts:86, f1b8827d20c8)extensions/slack/src/monitor/message-handler/dispatch.ts:189, f1b8827d20c8)extensions/slack/src/monitor/message-handler/dispatch.ts:705, f1b8827d20c8)extensions/slack/src/monitor/message-handler/dispatch.streaming.test.ts:215, f1b8827d20c8)Likely related people:
extensions/slack/src/accounts.ts,extensions/slack/src/monitor/message-handler/dispatch.ts)extensions/slack/src/monitor/message-handler/dispatch.ts)extensions/slack/src/monitor/message-handler/dispatch.ts,extensions/slack/src/monitor/message-handler/dispatch.preview-fallback.test.ts)extensions/slack/src/monitor/message-handler/dispatch.ts)Codex review notes: model internal, reasoning high; reviewed against f1b8827d20c8.
steipete commentedon Jun 14, 2026
Maintainer triage update: PR #92880 is closed because it would make preview mode override the separate block-reply control.
I compared the reporter commits
e932160and5181e4f. Both resolve account streaming objects by deep-merging nestedblocksettings, and both leaveonPartialReplyunset when the resolved preview mode isoff. Current focused tests pass the same contract (48 tests across Slack account merge and dispatch streaming tests). The Codex app-server projector sends answer deltas only through that partial callback and returns one final assistant payload, so current source does not explain 15 cumulative normal posts when preview mode is off.One configuration distinction matters: account
streaming.mode: "off"disables previews, but inherited rootstreaming.block.enabled: truestill enables normal block replies. For final-only delivery, set this on the posting account:{ "streaming": { "mode": "off", "block": { "enabled": false } } }Keeping this issue open for the unexplained delivery burst. To make the next step actionable, please retest with both
block.enabled: falseand the local message-sanitizer plugin disabled. If it still reproduces, add redacted root/account streaming snippets, the repeated Slack message timestamps/text prefixes, and gateway logs covering that turn. Do not include tokens or full private message content. That would distinguish a maintained Slack/Codex path from plugin mutation or inherited block delivery.shannon0430 commentedon Jun 14, 2026
Reporter-side follow-up with redacted config status.
I checked the current Shannon Slack config before attempting another reproduction claim:
channels.slack.streaming.modeisoff.off.streaming.block.enabledis not explicitly set tofalseyet.slack-mrkdwn-sanitizerplugin is currently enabled.So the current live setup does not yet satisfy the maintainer-requested retest conditions from the previous comment (
block.enabled: falseand sanitizer disabled). I am not treating any current behavior as valid evidence for or against this issue until that controlled canary is run. No tokens, private message bodies, or full config snippets are included here.shannon0430 commentedon Jun 14, 2026
Controlled canary update, redacted.
I applied the maintainer-requested test configuration on the Shannon Slack account:
streaming.mode:offstreaming.block.enabled:falsestreaming.mode:offstreaming.block.enabled:falseslack-mrkdwn-sanitizer: disabled for the canarySafety/health checks:
Results: config valid; Gateway health live; ready true. A timestamped config backup exists locally before the change.
Observed so far: a direct Slack tool-send canary in the originating thread produced exactly one message under this controlled config. The next normal Shannon Slack auto-reply in that same thread is being treated as the more relevant auto-reply-path canary. I will not claim the original auto-reply burst is fixed until that visible auto-reply behavior is observed under this config. No private message bodies, tokens, or full config snippets are included.
shannon0430 commentedon Jun 14, 2026
Auto-reply canary result under the controlled config.
After applying the maintainer-requested test config (
streaming.mode=off,streaming.block.enabled=false, and local sanitizer disabled), the next normal Shannon Slack auto-reply in the originating thread delivered as exactly one Slack message. I also read the thread after the canary window and saw no partial/draft burst or duplicate auto-reply messages.This is evidence that the reported burst did not reproduce under the controlled config. I am keeping
streaming.block.enabled=falseas the operational mitigation. Because leaving the local sanitizer disabled is not a desirable long-term operating state, I am restoring the sanitizer after this canary evidence is captured and will treat subsequent Slack replies as operational smoke forblock.enabled=falseplus normal local sanitizer behavior.No private message bodies, tokens, or full config snippets are included.