Skip to content

[discord] streaming.mode=progress unconditionally suppresses per-tool Discord messages even when the preview lane stays empty, leaving operators blind on fast tool calls #87704

Closed

Description

@zacharyhofbauer

Symptom

In a Discord-routed OpenClaw session, when the agent runs a fast tool (e.g. ls, pwd, git status), the operator sees only the typing indicator and then the final answer — no visible per-tool messages, no live preview update. The work is invisible until terminal.

Concrete repro (local, OpenClaw 2026.5.26 + @openclaw/discord 2026.5.26 + @openclaw/codex 2026.5.26, default streaming.mode=progress and streaming.preview.toolProgress=true):

  1. From Discord ask the agent to list a small directory:
    count the markdown files under ~/.openclaw/workspace/checklists/ and list their names
  2. The channel shows typing for a second, then the final reply (9 markdown files: ...).
  3. There is no per-tool message ("running: ls ...") and no live preview line showing the tool activity. Total dead air between request and reply.

Operators interpret this as "agent isn't thinking" or "session is stuck", which it isn't — the work happens but isn't surfaced.

Root cause

In channel-streaming-DG_pM5Sv.js (likely source src/channels/channel-streaming.ts):

function resolveChannelStreamingSuppressDefaultToolProgressMessages(entry, options) {
    if (options?.draftStreamActive === false || options?.previewStreamingEnabled === false) return false;
    const mode = resolveChannelPreviewStreamMode(entry, "off");
    if (mode === "off") return false;
    if (mode === "progress") return true;                  // <-- always-suppress
    if (options?.draftStreamActive === true) return true;  // <-- always-suppress
    return options?.previewToolProgressEnabled ?? resolveChannelStreamingPreviewToolProgress(entry);
}

When streaming.mode === "progress" (the default), per-tool messages are unconditionally suppressed under the assumption that they're being redirected into the preview draft lane. But the draft lane only fills when the agent runtime emits progressLine/tool-progress events DURING tool execution. For fast tool calls (sub-second ls/pwd/git status), the codex runtime returns before any progress event is emitted, so:

  • per-tool messages: suppressed (by the rule above)
  • preview lane: never updated (no progress events came in)
  • net visible output: nothing until the final reply

The same suppression bug fires for any tool whose runtime doesn't emit progress events.

Proposed fix

Stop unconditionally suppressing per-tool messages. Honor streaming.preview.toolProgress as the explicit toggle (which is what the schema docstring already implies). Or — more aggressively — only suppress per-tool messages when there's evidence the preview lane is actually carrying the load (e.g. when at least one progressLine event has arrived for this turn).

Minimal patch (the "honor the explicit toggle" form):

 function resolveChannelStreamingSuppressDefaultToolProgressMessages(entry, options) {
     if (options?.draftStreamActive === false || options?.previewStreamingEnabled === false) return false;
     const mode = resolveChannelPreviewStreamMode(entry, "off");
     if (mode === "off") return false;
-    if (mode === "progress") return true;
-    if (options?.draftStreamActive === true) return true;
     return options?.previewToolProgressEnabled ?? resolveChannelStreamingPreviewToolProgress(entry);
 }

A more aggressive form is to always return false after the early safety checks — in practice the preview lane stays empty for many tool calls and operators always want per-tool visibility:

 function resolveChannelStreamingSuppressDefaultToolProgressMessages(entry, options) {
     if (options?.draftStreamActive === false || options?.previewStreamingEnabled === false) return false;
     const mode = resolveChannelPreviewStreamMode(entry, "off");
     if (mode === "off") return false;
-    if (mode === "progress") return true;
-    if (options?.draftStreamActive === true) return true;
-    return options?.previewToolProgressEnabled ?? resolveChannelStreamingPreviewToolProgress(entry);
+    return false;
 }

The "honor the explicit toggle" form is probably the right shape upstream; operators who want quiet messages can set streaming.preview.toolProgress=false.

Side-effect surface

  • Operators with streaming.preview.toolProgress=true (the current default) will now see per-tool messages again. This matches the pre-2026-05-12 behavior — the "tool call show work" experience that disappeared in the upgrade.
  • Operators who prefer the preview-only experience can set streaming.preview.toolProgress=false to silence per-tool messages and rely on the preview lane (when their runtime actually emits progress events).
  • If both are visible (per-tool messages AND preview lane), the experience is redundant but informative. Worth ergonomic polish in a follow-up — e.g. only emit per-tool messages if the preview hasn't picked up the tool within N ms.

Companion issues

Together these three fixes restore the pre-2026-05-12 Discord visibility experience: parent state changes, codex subagent activity, and per-tool messages all surfacing to the channel.

Workaround until merged

Local content-anchored patch to channel-streaming-DG_pM5Sv.js applying the diff above (or the equivalent in source).


Environment: macOS, OpenClaw 2026.5.26, @openclaw/discord 2026.5.26, @openclaw/codex 2026.5.26, node 22.

Activity

  1. clawsweeper commented on May 28, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep open: the released-version report establishes prolonged Discord silence, newer progress changes do not demonstrate its resolution, and the same-author companion issue remains unresolved.

    Reproducibility: no. high-confidence current-main reproduction is established: released-version observations are concrete, but this read-only review did not execute the Discord flow and current source intentionally suppresses drafts on fast turns.

    Next step
    Trace a sustained Codex-to-Discord turn on the current release through activity emission, reply forwarding, compositor startup, and accepted draft publication before scoping a repair.

    Review details

    Best possible solution:

    Preserve quiet fast turns while ensuring sustained work reliably produces visible progress through the existing compositor.

    Do we have a high-confidence way to reproduce the issue?

    No high-confidence current-main reproduction is established: released-version observations are concrete, but this read-only review did not execute the Discord flow and current source intentionally suppresses drafts on fast turns.

    Is this the best way to solve the issue?

    Removing suppression unconditionally would conflict with the documented quiet-turn contract; first identify the lost activity or publication boundary and establish a failing regression there.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • No current-main correlated trace identifies whether sustained activity disappears before reply callbacks, during composition, or at Discord publication.

    Codex review notes: model internal, reasoning medium; reviewed against 4cf3df6352ce.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P2: Configured progress reportedly disappears during sustained work while execution and final replies remain functional.
    • impact:message-loss: The reported failure suppresses expected in-progress channel messages.
    • impact:ux-friction: Prolonged silence makes active work appear stalled and prompts operator follow-up.
    Evidence reviewed

    What I checked:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 15, 2026, 9:40 PM ET / October 16, 2026, 01:40 UTC.

  2. added
    P2Normal backlog priority with limited blast radius.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    on Jun 15, 2026
  3. 65 remaining items

  4. removed
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    on Sep 5, 2026
  5. openclaw-barnacle commented on Sep 20, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  6. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.
    P2Normal backlog priority with limited blast radius.
    and removed
    P2Normal backlog priority with limited blast radius.
    P1High-priority user-facing bug, regression, or broken workflow.
    on Oct 5, 2026
  7. openclaw-barnacle commented on Oct 23, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale after 7 days without qualifying human activity.
    Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
    A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

  8. steipete commented on Oct 24, 2026

    @steipete
    Contributor

    Thanks for filing this. We're closing older issues that no longer look actionable on current main.

    Discord progress drafts are now off unless explicitly enabled (#120376), so tool progress no longer depends on an empty preview lane by default. If fast tool calls are still invisible on a recent release, please open a fresh issue with your streaming config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions