Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Control UI webchat can continue showing a busy or abortable state after an assistant response has completed, even though backend state is clean and messages continue working.
Steps to reproduce
- Run OpenClaw 2026.5.26 (10ad3aa) with the gateway on 127.0.0.1:18789.
- Open a Control UI webchat direct session in Windows Chrome.
- Send a normal webchat message and wait for the assistant response to complete.
- Observe that backend state is clean, but the UI can still show a busy/abortable state.
- Hard refresh clears the visual state until the next message cycle.
Expected behavior
After the assistant response completes and no local stream is active, the bottom status badge and composer control should return to idle/send state.
Actual behavior
The chat response completes and messages still work, but the Control UI can continue showing "In progress" or keep the composer button as "Stop" even though backend state is clean.
OpenClaw version
2026.5.26 (10ad3aa)
Operating system
Windows 11 Chrome client with WSL2/Linux OpenClaw gateway
Install method
npm global
Model
gpt-5.5
Provider / routing chain
OpenClaw webchat direct session using OpenAI Codex runtime
Additional provider/model setup details
OpenClaw webchat direct session using OpenAI Codex runtime.
Environment details:
- Windows 11 Chrome client
- WSL2/Linux OpenClaw gateway
- Linux kernel: 6.6.87.2-microsoft-standard-WSL2
- Gateway: 127.0.0.1:18789
Logs, screenshots, and evidence
Backend evidence:
- Gateway reachable on 127.0.0.1:18789
- queue depth 0
- tasks active/queued/running all 0
- task audit clean
- messages still send/receive normally
Frontend evidence / likely cause:
The built Control UI asset appeared to derive visible busy/abort UI from stale `canAbort` / session-list state. `Gm(e)` can return true from `chatRunId` or `sessionsResult.sessions.some(...)`, and that stale value was enough to keep visible busy controls alive after the stream completed.
Local narrow patch that fixed the observed behavior:
- Define local live state: `r = e.sending || e.stream !== null`
- Badge fix: only force `in-progress` when `canAbort && r`
- Composer fix: pass `canAbort: a && r` instead of `canAbort: a`
Result:
After hard refresh, the false sticky badge and Stop button no longer reproduced. Backend remained clean before and after the patch.Impact and severity
Affected users/systems/channels:
Control UI webchat users, especially in longer/tool-heavy sessions where session metadata can lag or rehydrate stale.
Severity:
Medium. Chat still works, but the UI falsely appears to be running or abortable after completion, which makes users think the run is stuck and may cause unnecessary refreshes/restarts.
Frequency:
Reproduced repeatedly in one OpenClaw 2026.5.26 environment until patched locally.
Consequence:
False stuck/busy UI state, user confusion, unnecessary troubleshooting, and possible accidental Stop clicks after a run is already complete.
Additional information
Suggested upstream fix: split visible main composer/badge busy state from stale session-list abortability. canAbort may still be useful for remote/session abort affordances, but the main webchat badge and Stop button should only show active/busy while an authoritative local live send/stream/run state is active.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
WarrenJones commentedon May 27, 2026
clawsweeper commentedon May 27, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 2:22 AM ET / 06:22 UTC.
Summary
Keep open: current main and v2026.6.9 still route combined local/session-list abortability into the visible Control UI composer busy and Stop controls, and #91606 is an open, unmerged fix candidate with closing linkage.
Reproducibility: yes. at source level: current main still lets
hasAbortableSessionRun(state)feed the visible composer badge and Stop/Queue/Steer controls. I did not run the exact Windows Chrome plus WSL2 live reproduction in this read-only review.Root-cause cluster
Relationship:
canonicalCanonical: #87387
Summary: This issue is the canonical false Control UI WebChat busy/Stop report; one open PR is the active fix candidate, while nearby stuck-run reports are duplicates, superseded attempts, or partial overlaps.
Members:
fixed_by_candidate: fix(ui): prevent false busy state in Control UI webchat #91606 - The PR body uses closing linkage for this issue and changes the same Control UI false busy/Stop state path.superseded: fix(ui): prevent false busy state in Control UI webchat after response completion #87474 - This earlier same-title fix PR is closed unmerged and has been replaced by the current open fix candidate.superseded: fix(ui): guard abort UI with local live send/stream state #89895 - This earlier closed-unmerged PR attempted the same local send/stream guard for the linked issue and is no longer the active landing candidate.duplicate: Bug: WebChat UI stuck in "In progress" after tool call timeouts #88215 - The closed issue reports the same WebChat In progress/Stop state after a completed response, with timeout-heavy reproduction details.duplicate: [Bug]: WebChat composer can show staleIn progressstate hours later #88453 - The closed issue reports the same stale composer In progress state after the relevant assistant activity should be inactive.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
No new ClawSweeper repair lane should be queued because #91606 is already the open closing fix candidate for this issue.
Review details
Best possible solution:
Land a repaired Control UI fix that separates session-list-only stale abortability from local active-run UI while preserving Stop, Queue, and Steer for genuine active local runs.
Do we have a high-confidence way to reproduce the issue?
Yes, at source level: current main still lets
hasAbortableSessionRun(state)feed the visible composer badge and Stop/Queue/Steer controls. I did not run the exact Windows Chrome plus WSL2 live reproduction in this read-only review.Is this the best way to solve the issue?
Yes for triage: keeping this issue open while the linked fix candidate is repaired, reviewed, and landed is the narrowest maintainable path. A new separate fix PR would duplicate the open closing PR.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 604aa301899f.
Label changes
Label justifications:
P2: This is a bounded Control UI state bug that confuses users but does not report crash, data loss, security impact, or unusable core runtime.impact:session-state: The reported failure is stale run/session state keeping WebChat in a false busy or abortable composer state after backend completion.Evidence reviewed
What I checked:
renderChatderivesshowAbortableUifromprops.canAbortand uses it for the composer in-progress status, then passes the same value into queue and run controls. (ui/src/ui/views/chat.ts:1985, 604aa301899f)hasAbortableSessionRunstill returns true from eitherchatRunIdor an active current-session row insessionsResult, so local live state and session-list abortability remain combined before rendering. (ui/src/ui/app-chat.ts:216, 604aa301899f)hasAbortableSessionRunfallback,renderChatabortability gate, andapp-rendercanAbort wiring, so the issue is not proven fixed in the latest release. (ui/src/ui/views/chat.ts:1985, c645ec4555c0)ui/src/ui/views/chat.ts:1570, 9ac52a86f974)ui/src/ui/views/chat.ts:1985, cba9c0209536)Likely related people:
renderChat,hasAbortableSessionRun, and the app render wiring points to recent Control UI chat maintenance in commit cba9c02. (role: recent area contributor; confidence: high; commits: cba9c0209536; files:ui/src/ui/views/chat.ts,ui/src/ui/app-chat.ts,ui/src/ui/app-render.ts)ui/src/ui/views/chat.ts,ui/src/ui/chat/run-controls.ts)ui/src/ui/views/chat.ts,ui/src/ui/app-chat.ts)ui/src/ui/views/chat.ts,ui/src/ui/views/chat.test.ts)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 autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.steipete commentedon Jul 27, 2026
Thanks for documenting both the stale session snapshot and the visible Stop-button failure. This is fixed on current main by #101293 (commit 521bf99). I independently reran the exact real-Chromium Gateway scenario: send a message, receive its final response, inject the old active sessions.list result and repeated stale running events, and verify that the completed chat never restores Stop generating or the running indicator. The real browser regression passed in https://github.com/openclaw/openclaw/actions/runs/30250451543. Closing as fixed; thank you for the precise reproduction.