-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
[Bug]: Webchat UI stuck in "thinking/in progress" state after LLM response completes #84041
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:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.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.
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:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.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
Give feedbackNo fields configured for issues without a type.
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
After the LLM response is fully generated and displayed, the webchat left panel remains stuck in "thinking/in progress" state and never transitions to "done".
Steps to reproduce
Expected behavior
After the LLM response is fully displayed, the left panel should transition from "thinking" to "done" state, and the context length indicator bar should refresh.
Actual behavior
The left panel remains stuck showing "Thinking..." with the animated spinner and "Calling model via HTTP API" text even after the response is complete. The context length indicator bar does not refresh. The status occasionally resolves on its own after a delay, or after sending a new message.
OpenClaw version
2026.5.18
Operating system
macOS 15 (Darwin 25.5.0, arm64)
Install method
npm global
Model
custom/qwen3.6-35b-a3b-8bit(mlx)
Provider / routing chain
custom local provider
Additional provider/model setup details
Logs, screenshots, and evidence
Impact and severity
Affected users: Single-user webchat users
Severity: Medium (does not block functionality, but creates confusion as users cannot tell if the agent is still working)
Frequency: Recurring — observed multiple times in current session
Consequence: Users must manually refresh the page or send another message to clear the stuck state
Additional information
Root cause analysis via frontend code inspection (control-ui/assets/index-quv2B8bV.js):
The webchat frontend uses several state variables to track turn status:
Possible failure modes:
Key functions in the minified bundle: