Repository navigation
fix(ui): unify disconnected chat queue state - #128701
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 3:11 AM ET / 07:11 UTC. ClawSweeper reviewWhat this changesThe PR changes Control UI queue rows so disconnected steering follow-ups display only the delivery-state badge, with renderer and mocked-browser regression coverage. Merge readinessThe patch correctly gives a non-null delivery label precedence over the steering-mode badge, and current main still has the pre-fix renderer behavior. This MEMBER-authored, Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI projects Gateway connection and queued-send state into chat composer rows. The queue renderer receives those facts and produces the badges and controls an operator sees. flowchart LR
A[Gateway connection state] --> C[Composer queue]
B[Queued send state] --> C
C --> D[Queue row renderer]
E[Steering mode] --> D
D --> F[Delivery-state badge]
D --> G[Steering badge]
F --> H[Operator-visible queue row]
G --> H
Decision needed
Why: The patch has no supported correctness blocker, but MEMBER authorship and the Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +40. Total +40 across 3 files. View PR surface stats
Review metrics
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 delivery-state precedence in the queue renderer and merge this focused repair once the exact reviewed head satisfies the repository’s normal merge gates. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the path: an offline steer row receives a reconnect delivery label and previously also received a Steer badge; current main is unchanged on this surface. Is this the best way to solve the issue? Yes. The renderer is the presentation owner, and making an existing delivery label suppress the secondary steering badge preserves normal idle steering without changing transport behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1d872fe87ea0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
9443917 to
714745c
Compare
714745c to
bc4623b
Compare
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Exact-head browser proofValidated queue-state-bc4623b.mp4 |
Land-ready verificationExact head:
Known proof gaps: none. |
|
Merged via squash.
|
* fix(ui): unify disconnected chat queue state * fix(ui): keep volatile sends retryable after reconnect

Closes #128700
What Problem This Solves
After the composer queue landed in #127823, Control UI still projected two contradictory labels for one disconnected
steerfollow-up: the queue-mode badge said “Steer” while the delivery-state badge said “Waiting for reconnect”.Why This Change Was Made
Delivery state is the stronger row-level fact. The queue renderer now shows the queue-mode badge only when no delivery-state label owns the row. The change stays at the presentation owner and does not alter Gateway behavior, delivery state, persistence, protocol, or configuration.
The current exact-run Stop behavior remains intact: its lifecycle owner can record abort intent while disconnected and replay it safely after reconnect.
User Impact
Disconnected queued follow-ups communicate one actionable state instead of displaying contradictory status badges.
Evidence
Rebased onto
origin/mainatf8ad31333bf77b3befd7f82e30ca1c425cb1b02f; exact PR head:bc4623b33ceb6775e7aaead0bf916f72e9d1d553.Focused proof on the exact head:
node scripts/run-vitest.mjs ui/src/pages/chat/chat-composer-queue.test.ts --run- 24 passed.node scripts/run-vitest.mjs ui/src/e2e/chat-flow.active-run-follow-ups.e2e.test.ts --run -t 'projects one disconnected state for an offline steer follow-up'- 1 passed.chat.send, no second send. Screenshot and video were inspected and attached in the exact-head proof comment.gpt-5.6-sol/ high reasoning - clean, no actionable findings.git diff --check origin/main...HEAD- passed.Rank-up Moves
Review Metrics
Production LOC: +1/-1 (net 0). Tests: +42/-2 (net +40). Production remains net-neutral; the tests cover the single-label invariant at the renderer and operator-flow boundaries.