Skip to content

fix(ui): Stop disappears while drafting during a response - #160233

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/investigate-mobile-webui-stop-button-issue
Sep 28, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/investigate-mobile-webui-stop-button-issue

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Stop disappears while a user composes a sendable follow-up during an active response.

User Impact

Users can stop the current response without clearing or submitting their draft. Stop stays in the trailing position beside Send, Queue, or Steer on mobile and desktop, including attachment-only drafts.

Why This Change Was Made

Keep the existing Stop control and its DOM identity independent of follow-up availability. A ready follow-up appears before Stop instead of replacing it. Talk and dictation retain their separate callbacks.

This is the composer-only half of the original combined change. The independent stale-run ownership repair has been removed into #160596; neither PR depends on the other. This extends #157703, which already covers drafts that cannot be sent.

Evidence

  • Fresh isolated red/green proof after the split: the original controls fail all 4 added regression cases (58 existing cases pass; 5.21 s command wall). With the composer-only fix, 188/188 tests across 4 files pass (6.27 s command wall; 5.46 s Vitest).
  • Fresh actual-UI Chromium proof without the history fix at 393×852, 320×700, 844×390, and 1280×900: Stop remains stationary while typing; tap/click sends one exact-run abort, preserves the draft, and sends no follow-up.
  • Fresh independent AutoReview through P2: scoped-clean. Prior type/lint/format and visual proof remain valid for these unchanged composer source bytes; the split only removes the history repair.
  • Mocked Gateway and emulated viewport/touch proof, not physical-phone or live-provider proof. The standard E2E runner's loopback preflight is blocked by HTTP 502 on this host, so the registered UI flow was exercised through the repository's standalone source-server/mock-Gateway helpers.
  • The four inspected screenshots below are retained from the identical composer implementation and were already delivered in the originating chat and verified loaded on this PR.

CI follow-up

The original exact-head CI run found one stale IME expectation in chat-flow.composer-shortcuts.e2e.test.ts: it expected Stop to disappear when composition made a follow-up sendable. That is the behavior this PR removes. The original full test-body browser replay reproduces the same timeout; the corrected replay passes while retaining both IME Escape guards, reply-cancel ordering, focus/draft preservation, zero premature aborts, and the final deliberate abort. This correction changes only the expectation/comment and adds an enabled assertion; production code is unchanged. Fresh independent P2 review of the correction is scoped-clean. Replacement-head CI run 36472862744 passed on 120a2dd17d976b01c4bbe236dc18fb16bb881ec2, including the corrected UI E2E shard and both required CI/security gate projections. The containing UI E2E shard (7/9) passed in 692 seconds of job wall time; this is the whole shard, not the individual test duration. ClawSweeper also completed its exact-head review with no actionable findings.

Visual evidence

Matching real-UI captures use synthetic conversation/model data; no live session content. Stop remains beside the ready draft. Desktop elapsed time differs by one second.

Viewport Before After
Mobile (393×852) Before — mobile: Stop missing beside ready draft After — mobile: Stop visible beside ready draft
Desktop (1280×900) Before — desktop: Stop missing beside ready draft After — desktop: Stop visible beside ready draft

Reported by @vyctorbrzezowski.

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits September 28, 2026 07:02
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 2b8f0310-08f0-43f3-9198-af9558759c08
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 3:40 PM ET / 19:40 UTC (Revision 5).

ClawSweeper review

What this changes

The Control UI chat composer keeps Stop beside sendable text or attachment follow-ups during an active response, with mobile spacing, tests, and documentation updated.

Merge readiness

✅ Ready for maintainer review

Current main still hides Stop when an active-run draft becomes sendable, so this PR remains useful. The prior IME test finding is fixed on the reviewed head, and the visual evidence supports the intended behavior.

Priority: P2
Reviewed head: 120a2dd17d976b01c4bbe236dc18fb16bb881ec2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused implementation and directly relevant visual and browser evidence support the fix, with the earlier actionable test finding corrected.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed composer template keeps Stop beside a sendable follow-up. Inspected before/after Chromium screenshots show that visible result on mobile and desktop, and the PR body reports mocked-Gateway browser flows observing exact-run abort and draft preservation at four viewports; only the IME test changed after the capture. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed composer template keeps Stop beside a sendable follow-up. Inspected before/after Chromium screenshots show that visible result on mobile and desktop, and the PR body reports mocked-Gateway browser flows observing exact-run abort and draft preservation at four viewports; only the IME test changed after the capture. No stored-data contract changes.
Evidence reviewed 7 items Current-main behavior: Current main selects Stop only when the active draft cannot be sent; a sendable draft takes the shared primary slot.
Introduced composer change: The pinned introduced diff renders the follow-up before a separate Stop control whenever the run is abortable.
Prior finding resolved: The current head replaces the earlier IME expectation that Stop detach with assertions that Stop remains visible and enabled.
Findings None None.
Security None None.

How this fits together

The Control UI chat composer turns drafts, attachments, and active-run state into follow-up and Stop controls. Stop uses the chat pane's access-checked callback to request cancellation from the Gateway.

flowchart LR
  A[Draft and attachments] --> C[Chat composer controls]
  B[Active run and access] --> C
  C --> D[Follow-up action]
  C --> E[Stop button]
  D --> F[Gateway message send]
  E --> G[Access-checked abort]
  G --> H[Gateway run cancellation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -1, Tests +56, Docs 0. Total +55 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 2 15 16 -1
Tests 4 67 11 +56
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 83 28 +55

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #160233
Summary: This PR owns the remaining sendable-draft Stop visibility fix; the related merged fix covers unsendable drafts, and the other open PR covers a distinct stale-run target.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep Stop mounted beside a sendable follow-up throughout an active run while preserving the existing access check, exact-run cancellation, and draft; review stale-run recovery separately.

Do we have a high-confidence way to reproduce the issue?

Yes, at the source level: on current main, an active run with a sendable draft replaces Stop with the follow-up action. The supplied before captures show that state; I did not run a new browser reproduction.

Is this the best way to solve the issue?

Yes. Rendering Stop independently in the composer addresses the visibility defect while retaining the existing send and abort owners.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 89c0030e4c45.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed composer template keeps Stop beside a sendable follow-up. Inspected before/after Chromium screenshots show that visible result on mobile and desktop, and the PR body reports mocked-Gateway browser flows observing exact-run abort and draft preservation at four viewports; only the IME test changed after the capture. No stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: A focused Control UI fix restores an existing Stop action during active chat without changing the underlying abort contract.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed composer template keeps Stop beside a sendable follow-up. Inspected before/after Chromium screenshots show that visible result on mobile and desktop, and the PR body reports mocked-Gateway browser flows observing exact-run abort and draft preservation at four viewports; only the IME test changed after the capture. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed composer template keeps Stop beside a sendable follow-up. Inspected before/after Chromium screenshots show that visible result on mobile and desktop, and the PR body reports mocked-Gateway browser flows observing exact-run abort and draft preservation at four viewports; only the IME test changed after the capture. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed composer template keeps Stop beside a sendable follow-up. Inspected before/after Chromium screenshots show that visible result on mobile and desktop, and the PR body reports mocked-Gateway browser flows observing exact-run abort and draft preservation at four viewports; only the IME test changed after the capture. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-28T07:19:29.319Z sha e4d1f7e :: needs changes before merge. :: none
  • reviewed 2026-09-28T17:45:09.756Z sha 88e7400 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T17:53:07.780Z sha 88e7400 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T18:04:42.096Z sha 88e7400 :: needs changes before merge. :: [P2] Update the IME E2E expectation for persistent Stop

roboclaw-bot and others added 2 commits September 28, 2026 17:35
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: c01b2bce-5f0a-4911-ad2c-0f8cd673c650
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 28, 2026 17:37
@roboclaw-bot roboclaw-bot changed the title fix(ui): Stop disappears while drafting and misses newer runs fix(ui): Stop disappears while drafting during a response Sep 28, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

This PR is now ready and narrowed to the composer-only fix at 88e7400. The independent stale-run recovery has been removed into a separate lane. Fresh isolated proof: four pre-fix regressions fail; 188 tests and four actual-UI mock-Gateway viewport flows pass without the history fix.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 28, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) September 28, 2026 17:48
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
roboclaw-bot and others added 2 commits September 28, 2026 19:31
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 9b98c9ac-078d-4708-ac69-cdf0ce30c19f
@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Sep 28, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 28, 2026
@roboclaw-bot
roboclaw-bot merged commit 32b0acc into main Sep 28, 2026
116 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/investigate-mobile-webui-stop-button-issue branch September 28, 2026 20:12
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…60233)

* fix(ui): keep Stop available and recover stale run targets

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): Stop disappears while drafting and misses newer runs

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 2b8f0310-08f0-43f3-9198-af9558759c08

* refactor(ui): split stale-run Stop recovery into its own change

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): Stop disappears while drafting during a response

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: c01b2bce-5f0a-4911-ad2c-0f8cd673c650

* test(ui): retain Stop during IME reply composition

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): Stop disappears while drafting during a response

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 9b98c9ac-078d-4708-ac69-cdf0ce30c19f

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant