Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Summary
In a Telegram forum topic session, anthropic/claude-opus-4-6 is sending visible pre-tool narration / step-by-step work notes into the user chat instead of only sending the final answer.
This is not just hidden thinking being shown. In the saved session transcript, the assistant is emitting normal visible text blocks like:
That code path is for \channels login`, not cron delivery. Let me find the actual cron delivery code path.`Now I need to find \resolveOutboundChannelPlugin` — that's the function that returns null when given "telegram".`Now let me check \normalizeDeliverableOutboundChannel` — that's where "telegram" might get rejected.`Now I have the complete picture. Let me put this together.
These are not intentional user-facing replies. They are the model's intermediate work narration between tool calls.
Why this report is useful / likely distinct enough
This seems to be the same general family as existing issues about:
- commentary / pre-tool text leaking to messaging channels
- Telegram delivery of internal intermediate content
- thinking / text mixed-turn delivery bugs
But this report adds a specific currently-reproducible shape:
- Telegram forum topic (not just DM)
- Claude Opus 4.6
- after
/new(fresh session, not only a poisoned long session) - normal visible narration text between tool calls, not only raw garbage tokens or malformed tool traces
Steps to reproduce
- Use a Telegram forum topic conversation
- Use
anthropic/claude-opus-4-6 - Start a fresh session with
/new - Do not set an explicit thinking override (so Claude 4.6 defaults apply)
- Ask the agent to investigate a technical issue that requires multiple code/log/tool lookups
- Observe that the user receives intermediate narration such as:
Let me find...Now I need to check...Now I have the full picture...
Expected behavior
Only the final intentional user-facing answer should be delivered to Telegram.
Intermediate work narration / pre-tool text should not be visible in the topic.
Actual behavior
Telegram receives multiple visible assistant messages that are really the model narrating its own investigation steps.
In the saved transcript, these are stored as ordinary assistant text blocks adjacent to toolCall blocks, e.g. assistant content like:
[text, toolCall, toolCall][text, toolCall][thinking, text, toolCall, toolCall]
The user-visible problem is the text portion: natural-language step narration is being delivered before the final response.
Environment
- OpenClaw:
2026.3.23-2 - OS: macOS arm64
- Channel: Telegram forum topic
- Model:
anthropic/claude-opus-4-6 - Session state at reproduction time:
thinkingLevel = nullverboseLevel = nullreasoningLevel = null
- Topic prompt was simple and not the cause:
This is the Security & Ops topic in Citadel Ops. Infrastructure, security, privacy, node health, backups, and operational concerns.
Additional context
OpenClaw docs say Claude 4.6 defaults to adaptive thinking when no explicit thinking level is set.
That may be interacting badly with messaging-channel delivery rules, but the important point is:
- this is not just hidden thinking metadata existing in the transcript
- the model is emitting actual visible narration text
- and OpenClaw is delivering it to Telegram instead of suppressing it until a final answer is ready
Evidence shape from local transcript
Observed assistant text blocks included lines like:
That code path is for `channels login`, not cron delivery. Let me find the actual cron delivery code path.
Now I need to find `resolveOutboundChannelPlugin` — that's the function that returns null when given "telegram".
Now let me check `normalizeDeliverableOutboundChannel` — that's where "telegram" might get rejected.
Now I have the complete picture. Let me put this together.
These were recorded as normal assistant text content, not just tool output.
Related issues / acking existing issue family
This appears related to:
- Text between tool calls leaks to messaging channels #25592 — Text between tool calls leaks to messaging channels
- Feishu: pre-tool narration text visible in streaming cards — confusing UX for end users #54080 — Feishu: pre-tool narration text visible in streaming cards
- [Bug]: Telegram/Codex still leaks commentary-phase tool-call trace text with multilingual garbage tokens in 2026.3.13 #52084 — Telegram/Codex leaks commentary-phase tool-call trace text
- Thinking content leaks to channel output when Think: off #26466 — Thinking content leaks to channel output when Think: off
- [Bug]: streaming: partial drops text block when assistant turn contains [thinking, text] #53384 — streaming: partial drops text block when assistant turn contains [thinking, text]
If maintainers prefer, happy for this to be closed as a duplicate of the best canonical issue in that family. I’m filing because this exact shape (Telegram topic + Opus 4.6 + fresh /new session + visible work-note narration) seemed worth capturing separately.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
mbelinky commentedon Apr 5, 2026
Related update: #61282 is now merged in commit 4175cae.
What #61282 fixes:
Why this issue stays open:
textnarration blocks between tool calls, not necessarily text tagged asphase:"commentary".Leaving this issue open until that non-commentary work-note path is verified separately.
clawsweeper commentedon Apr 26, 2026
Closing this as duplicate or superseded after Codex automated review.
#55378 is a specific Telegram forum topic / Claude Opus 4.6 reproduction of the broader open #25592 problem: ordinary assistant text emitted between tool calls can be routed to messaging channels. Current main has commentary-phase suppression, but the non-commentary/unphased path remains the same class of work tracked by #25592, so this should close as a duplicate rather than as fixed.
Best possible solution:
Close #55378 as a duplicate of #25592 and keep #25592 as the canonical implementation discussion for suppressing or deferring normal, unphased text emitted before or around tool calls across messaging channels. A future fix should cover the shared embedded delivery boundary and add Telegram/Anthropic regression coverage for unphased text-plus-tool-call turns.
What I checked:
src/agents/pi-embedded-subscribe.handlers.messages.ts:40, 7e376e5aba32)src/agents/pi-embedded-subscribe.handlers.messages.ts:512, 7e376e5aba32)src/agents/anthropic-transport-stream.ts:811, 7e376e5aba32)CHANGELOG.md:1916, 7e376e5aba32)So I’m closing this here and keeping the remaining discussion on the canonical linked item.
Codex Review notes: model gpt-5.5, reasoning high; reviewed against 7e376e5aba32.