Skip to content

[Bug]: Control UI webchat can leave false "In progress" / "Stop" state after completed response #87387

Closed

Description

@Mayreck

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

  1. Run OpenClaw 2026.5.26 (10ad3aa) with the gateway on 127.0.0.1:18789.
  2. Open a Control UI webchat direct session in Windows Chrome.
  3. Send a normal webchat message and wait for the assistant response to complete.
  4. Observe that backend state is clean, but the UI can still show a busy/abortable state.
  5. 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.

Activity

  1. WarrenJones commented on May 27, 2026

    @WarrenJones
  2. clawsweeper commented on May 27, 2026

    @clawsweeper
    Contributor

    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: canonical
    Canonical: #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:

    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:

    • The open fix PR is currently conflicting and its latest review reports an active-run controls regression, so this issue cannot close until that candidate is repaired, replaced, or merged.

    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:

    • Current visible busy path: renderChat derives showAbortableUi from props.canAbort and 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)
    • Current abortability source: hasAbortableSessionRun still returns true from either chatRunId or an active current-session row in sessionsResult, so local live state and session-list abortability remain combined before rendering. (ui/src/ui/app-chat.ts:216, 604aa301899f)
    • Latest release still has the same wiring: The v2026.6.9 tag contains the same hasAbortableSessionRun fallback, renderChat abortability gate, and app-render canAbort wiring, so the issue is not proven fixed in the latest release. (ui/src/ui/views/chat.ts:1985, c645ec4555c0)
    • Open linked fix candidate: Live PR metadata shows fix(ui): prevent false busy state in Control UI webchat #91606 is open, unmerged, and conflicting; its body uses closing linkage for this issue and its latest review still asks for repair/proof. (9ac52a86f974)
    • Linked PR diff matches the requested fix area: The PR diff narrows the view-level abortability gate and adds stale active-session-row tests, confirming it is the active candidate for this issue rather than shipped implementation. (ui/src/ui/views/chat.ts:1570, 9ac52a86f974)
    • History and ownership pass: Blame on the current render/helper wiring points to recent Control UI chat maintenance, while git history shows earlier Stop-button and chat-view work in the same surface. (ui/src/ui/views/chat.ts:1985, cba9c0209536)

    Likely related people:

    • Vincent Koc: Current-line blame for 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)
    • Peter Steinberger: History on the affected chat surface includes the original chat Stop button addition, which is one of the visible controls involved in this issue. (role: feature-history contributor; confidence: medium; commits: 6a7a1d708525; files: ui/src/ui/views/chat.ts, ui/src/ui/chat/run-controls.ts)
    • BunsDev: History for the same chat view includes substantial Control UI polish and dashboard refactor work in the affected rendering surface. (role: adjacent chat UI contributor; confidence: medium; commits: 2cfb660a9bb8, f76a3c5225bb; files: ui/src/ui/views/chat.ts, ui/src/ui/app-chat.ts)
    • chziyue: Authored a prior Stop-button behavior fix in the same chat view and regression-test surface, relevant to preserving active-run abort controls. (role: adjacent behavior author; confidence: medium; commits: d5c42a07ef2e; files: ui/src/ui/views/chat.ts, ui/src/ui/views/chat.test.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  3. added
    P2Normal backlog priority with limited blast radius.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on May 27, 2026
  4. added
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:linked-pr-openClawSweeper 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.
    and removed
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    on Jun 15, 2026
  5. steipete commented on Jul 27, 2026

    @steipete
    Contributor

    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.

  6. locked as resolved and limited conversation to collaborators on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingclawsweeper:linked-pr-openClawSweeper 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:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, 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.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions