Repository navigation
Description
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):
- From Discord ask the agent to list a small directory:
count the markdown files under ~/.openclaw/workspace/checklists/ and list their names - The channel shows typing for a second, then the final reply (
9 markdown files: ...). - 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=falseto 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
- [discord] Discord-originated subagent tasks default to done_only, leaving channel stuck on typing indicator #87665 — parent task
notifyPolicydefault for Discord-origin (also fixed locally). - [@openclaw/codex] Native subagent mirror tasks are silent and not_applicable — operators can't see codex multi-agent activity #87666 — codex native subagent visibility.
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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 28, 2026
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:
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:
extensions/discord/src/monitor/message-handler.process.draft-final.test.ts:142, 4cf3df6352ce)src/channels/streaming.ts:832, 4cf3df6352ce)extensions/discord/src/monitor/message-handler.process-progress.ts:144, 4cf3df6352ce)src/channels/progress-draft-compositor.test.ts:46, e9c58e9c54cf)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 15, 2026, 9:40 PM ET / October 16, 2026, 01:40 UTC.
65 remaining items
openclaw-barnacle commentedon Sep 20, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Oct 23, 2026
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.
steipete commentedon Oct 24, 2026
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.