Repository navigation
fix(ui): pause queued messages after Stop - #192250
Conversation
Stop parks the composer rows waiting at that moment, so the aborted run no longer starts the next queued turn. A paused row above the queue offers Resume and Clear; messages sent after Stop are not parked. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: d82c088a-1691-4577-a551-21ca3c06bbe8
|
🦞👀 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 changes before merge. What this changesThis PR pauses browser-held messages when Stop is pressed and adds Resume and Clear controls. Example: Two follow-ups, “Check the logs” and “Summarize the results,” are queued when the user presses Stop.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep open: this maintainer-authored PR addresses unwanted queue restarts, but explicit-send recovery and three patch-related CI failures need repair. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI outbox owns browser-held chat inputs; composer actions and Gateway lifecycle events wake its drain, which submits eligible rows through chat.send. flowchart TD
A[Composer and Stop] --> B[Shared browser outbox]
A --> C[Paused row identities]
C --> D[Outbox drain]
B --> D
E[Resume or explicit send] --> D
D --> F[Gateway chat send]
F --> G[Lifecycle events]
G --> D
Technical reviewBest possible solution: Keep row-specific pauses in the shared outbox flow, release individual rows on explicit submission, and repair the focused browser test and budget failures. Do we have a high-confidence way to reproduce the issue? Current-main terminal-event handling wakes an unpaused outbox drain, establishing the reported path in source; supplied screenshots corroborate the visible before/after behavior, and no target code was executed during review. Is this the best way to solve the issue? A row-specific pause preserves newly submitted corrections and existing Gateway cancellation semantics, but explicit submission must permanently release that row from the pause rather than temporarily bypass it. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 259fdd26fbd6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +206, Tests +52, Docs +1. Total +259 across 12 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 3:52 PM ET / 20:52 UTC. |
Rebuild the Stop pause notice on the queue row grid: same icon column and text inset, two-tone "Queue paused · You stopped the run" copy, solid pause and play glyphs, and Clear/Resume using the existing row action style. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 9c0bc654-be5f-443a-80ad-0b640243f54e
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 527eeb0b-2fb7-468a-9974-7f278e2af353
fix(ui): pause queued messages after Stop Co-authored-by: vyctorbrzezowski <[email protected]>
Keep distinct route, ordering, trigger, publication, custody, and fixture-lifecycle contracts from openclaw#192769, openclaw#192540, openclaw#192250, openclaw#192812, openclaw#191643, openclaw#192584, openclaw#192588, and openclaw#192083. Raise only the scalar by the exact measured inherited deficit; production and test LOC remain unchanged.
Problem
Pressing Stop while messages wait in the composer queue previously sent the next queued message as soon as the aborted run ended. The
abortedterminal event drained the queue just likefinal.Solution
Stop parks the rows waiting when it was pressed.
handleAbortChatrecords never-attempted queued rows before the abort request, because the terminal event can beat its response. This covers Stop, Esc, typedstopand/stop.chat-queue-pause.tskeys those rows by Gateway owner and conversation scope, shared across panes.drainStoredChatOutboxskips parked rows unless the user explicitly retries, steers or saves an edit.Normal completion, errors and Gateway-side aborts keep draining as before.
Accepted edge cases
Latest color correction — validation blocked
At Vyctor's request,
7cbbc8353bbc3f93662b20be3206da1761e682b7adds.chat-queue__resumeto Clear's neutral default and hover selectors. No layout or behavior changes.Source inspection confirms both selectors use the same neutral theme tokens. Fresh light/dark screenshots and local checks could not finish: the execution service repeatedly stalled and reported child-cleanup hard-deadline failures. Both the full E2E runner and a focused component-browser route were attempted. Temporary capture fixtures were restored. The screenshots and passing checks below are prior-revision evidence, not validation of the neutral-color follow-up. Updated visual verification remains outstanding.
Earlier behavior and layout evidence
Before: Stop auto-sent the first queued follow-up.
Earlier layout, light theme (Resume still accented in this prior capture):
Earlier layout, dark theme:
Earlier layout, 390px wide:
Earlier full page:
Prior-revision proof:
parks queued follow-ups after Stop until Resume sends the next oneE2E checks that Stop parks two rows, a correction typed before abort settles still sends, the pause outlasts that run, and Resume sends the first parked row. It failed on base and passed with the behavior change.chat-flow.active-run-follow-ups,chat-flow.queue-edit,chat-flow.queue-reorder,chat-run-lifecycle.chat-composer-queue(unit/browser),run-lifecycle.abort,chat-outbox-reconnect,chat-pane-stop,chat-send-abort.git diff --check.docs/web/control-ui/chat.md(Stop and abort).Worked on by