-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
bug(agents): visible tool-result text can collapse to attachment placeholder #97267
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Problem
Visible OpenClaw session output can replace tool-result text with an attachment placeholder even when the underlying tool result is structured non-image content.
Impact
This makes local tool verification unreliable because ordinary tool output can disappear from the visible transcript and be replaced by a placeholder.
Suspected source
extractToolResultTextinsrc/agents/embedded-agent-subscribe.tools.tsoriginally only collected explicit text content blocks. Structured non-image blocks like JSON/resource content therefore produced no visible text in the subscription/display path.Expected
Local fix
extractToolResultText.textandimageblocks in the fallback.Local evidence
git diff --checknode scripts/run-vitest.mjs src/agents/embedded-agent-subscribe.tools.test.tsResolution status
fix(agents): preserve structured tool result visible text).Fixes #97267so this issue should close automatically when the fix merges.