Repository navigation
fix(ui): Stop disappears while drafting during a response - #160233
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 2b8f0310-08f0-43f3-9198-af9558759c08
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 3:40 PM ET / 19:40 UTC (Revision 5). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1, Tests +56, Docs 0. Total +55 across 7 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: c01b2bce-5f0a-4911-ad2c-0f8cd673c650
|
@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. |
|
🦞👀 Re-review progress:
|
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 9b98c9ac-078d-4708-ac69-cdf0ce30c19f
|
Merged via squash.
|
…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]>
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
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.
Reported by @vyctorbrzezowski.
Worked on by
Work sessions
View the OpenClaw team session