Skip to content

[Bug]: 2026.6.5 ignores Slack account-level streaming.mode=off; partial draft snapshots posted as new messages instead of coalesced edits #92182

Closed as not planned

Description

@shannon0430

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):

  1. Account-level streaming.mode no longer overrides the channel-level default.
  2. The partial path posts each draft snapshot as a new message instead of updating one draft message.

Steps to reproduce

  1. Multi-account Slack (socket mode). Channel-level channels.slack.streaming = { "mode": "partial" }, and for the posting account channels.slack.accounts.<acct>.streaming = { "mode": "off" }.
  2. messages.groupChat.visibleReplies: "automatic".
  3. Update to 2026.6.5 (official plugins lockstep at 2026.6.5).
  4. Trigger a longer agent turn replying into a channel thread (ours included a tool step with image processing before the final text).
  5. 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 partial mode, 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.5 with agentRuntime.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.

Activity

  1. clawsweeper commented on Jun 11, 2026

    @clawsweeper
    Contributor

    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:

    Likely related people:

    • ragesaq: Current Slack streaming/account merge and dispatch lines blame to their recent auto-reply/channel delivery commit. (role: recent area contributor; confidence: high; commits: a15427d605fe; files: extensions/slack/src/accounts.ts, extensions/slack/src/monitor/message-handler/dispatch.ts)
    • Peter Steinberger: They authored the maintainer triage analysis on this issue and co-authored the earlier progress-draft single-message fix branch. (role: recent adjacent contributor and triage reviewer; confidence: medium; commits: 8286d3619272, 6b525023d4d2; files: extensions/slack/src/monitor/message-handler/dispatch.ts)
    • mycarrysun: They authored the merged progress-draft PR referenced by the report, which is adjacent to Slack draft coalescing behavior. (role: related feature contributor; confidence: medium; commits: 63d0c1d513eb; files: extensions/slack/src/monitor/message-handler/dispatch.ts, extensions/slack/src/monitor/message-handler/dispatch.preview-fallback.test.ts)
    • Gustavo Madeira Santana: Slack dispatch history includes their prior dedupe and partial-streaming delivery changes in the same module. (role: prior delivery contributor; confidence: medium; commits: bd7801eefaa1, 10c87527d5d8; files: extensions/slack/src/monitor/message-handler/dispatch.ts)

    Codex review notes: model internal, reasoning high; reviewed against f1b8827d20c8.

  2. self-assigned this
    on Jun 14, 2026
  3. steipete commented on Jun 14, 2026

    @steipete
    Contributor

    Maintainer triage update: PR #92880 is closed because it would make preview mode override the separate block-reply control.

    I compared the reporter commits e932160 and 5181e4f. Both resolve account streaming objects by deep-merging nested block settings, and both leave onPartialReply unset when the resolved preview mode is off. 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 root streaming.block.enabled: true still 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: false and 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.

  4. shannon0430 commented on Jun 14, 2026

    @shannon0430
    ContributorAuthor

    Reporter-side follow-up with redacted config status.

    I checked the current Shannon Slack config before attempting another reproduction claim:

    • channels.slack.streaming.mode is off.
    • the posting account streaming mode is also off.
    • streaming.block.enabled is not explicitly set to false yet.
    • the local slack-mrkdwn-sanitizer plugin is currently enabled.

    So the current live setup does not yet satisfy the maintainer-requested retest conditions from the previous comment (block.enabled: false and 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.

  5. shannon0430 commented on Jun 14, 2026

    @shannon0430
    ContributorAuthor

    Controlled canary update, redacted.

    I applied the maintainer-requested test configuration on the Shannon Slack account:

    • root Slack streaming.mode: off
    • root Slack streaming.block.enabled: false
    • posting account streaming.mode: off
    • posting account streaming.block.enabled: false
    • slack-mrkdwn-sanitizer: disabled for the canary

    Safety/health checks:

    openclaw config validate --json
    curl /health
    curl /ready

    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.

  6. shannon0430 commented on Jun 14, 2026

    @shannon0430
    ContributorAuthor

    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=false as 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 for block.enabled=false plus normal local sanitizer behavior.

    No private message bodies, tokens, or full config snippets are included.

  7. added
    P2Normal backlog priority with limited blast radius.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    on Jun 14, 2026
  8. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Normal backlog priority with limited blast radius.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions