-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Control UI chat surfaces failed internal tool calls as visible red error banners #89683
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingclawsweeper: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:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.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.bugSomething isn't workingSomething isn't workingclawsweeper: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:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.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
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
In Control UI / WebChat, a failed internal tool call from the assistant can be rendered as a prominent red error banner in the normal chat timeline, even when the assistant already produced a clean final reply. In the reproduced case, a hidden shell search command returned exit code 1 only because it found no matches, but the UI surfaced that internal tool activity as if it were the user-facing error.
Steps to reproduce
Expected behavior
Internal assistant tool calls and tool results should stay hidden from the normal chat timeline by default, or at minimum remain collapsed behind an explicit debug/activity view.
A non-zero internal tool exit should not be rendered as the primary visible chat error unless the assistant explicitly surfaces it as the user-facing outcome for the turn.
Actual behavior
The chat view rendered a red error banner containing the internal shell command text from a hidden tool call. The same turn also had a successful final assistant reply visible below it.
The stored session transcript for that turn showed an assistant toolCall followed immediately by a toolResult with
isError: trueand{ "status": "failed", "exitCode": 1 }. The non-zero exit was caused by a no-match search command, not by the final user-visible outcome of the turn.OpenClaw version
2026.5.28 (e932160)
Operating system
Ubuntu 26.04 LTS
Install method
pnpm
Model
gpt-5.4 (observed for the reproduced turn; environment may also route some turns to gpt-5.5)
Provider / routing chain
openai-codex
Additional provider/model setup details
Observed in a Codex-backed main chat session in Control UI / WebChat. No special provider routing was required beyond the normal Codex runtime for that agent.
Logs, screenshots, and evidence
Impact and severity
Medium. It leaks internal tool activity into the normal user-visible chat surface, makes routine non-fatal tool exits look like product/runtime failures, and can mislead users during debugging because the banner competes with or overrides the real assistant outcome of the turn.
Additional information
The reproduced failure did not require an actual gateway/runtime fault. The surfaced red banner came from internal tool activity recorded in the session transcript, not from a fresh backend session-resolution failure. A likely fix direction is to keep hidden/internal tool activity out of the normal chat lane, or at least gate failed tool-result banners behind an explicit debug/activity toggle.