Repository navigation
fix(ui): queued messages stay blocked after a conversation finishes - #152299
Conversation
|
🦞👀 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 18, 2026, 8:33 PM ET / September 19, 2026, 00:33 UTC. ClawSweeper reviewWhat this changesThe PR preserves chat completion during attachment cleanup and resumes queued messages when Gateway history confirms that the same conversation run has finished. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main retains both failure paths, and no introduced correctness defect was found. The inspected before/after captures support the visible recovery behavior. Priority: P1 Review scores
Verification
How this fits togetherThe Control UI holds queued messages in a browser outbox and reconciles them with Gateway history and completion events. Its run-lifecycle owner controls the busy indicator and whether queued input can proceed. flowchart TD
A[Queued messages] --> B[Browser outbox]
C[Gateway history] --> D[Check session and run]
E[Completion event] --> F[Attachment retirement]
F --> G[Run lifecycle]
D --> G
G --> H[Idle conversation and resumed queue]
B --> D
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +25, Tests +175, Docs +4. Total +204 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep completion and queue recovery under the existing lifecycle owner while preserving delivery identity, credential scope, and newer-session guards. Do we have a high-confidence way to reproduce the issue? Yes, source establishes both triggers: consumption removes an attachment row during terminal hydration, or recovery reads completed history while the local run remains busy. Focused regression scenarios cover both; this review did not execute them. Is this the best way to solve the issue? Yes. The patch repairs the existing retirement decision and reuses the lifecycle reconciler without adding another state owner, configuration option, or persisted format. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e354fd65a508. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '912b21b98581c0be3baad87fe3686b64d69fffeb': (191 commits) perf(process): reduce allocation while processing command output (#152261) fix(ui): collapse duplicate previews when a page opens in multiple tabs (#152281) fix(test): run local Gateway tests behind protected exec egress (#152318) fix(node-host): avoid blocking configuration reads (#151411) fix(qa-lab): prevent Evidence Archive filters from overflowing (#152123) test: stabilize Docker scheduler signal fixtures on macOS (#152301) fix(ui): close stuck submenus when moving between menu rows (#152317) fix(ui): preserve question drafts and pending submissions (#152096) fix(release): recognize 7.34 fs-safe contract (#152326) chore: retire CLAUDE.md files fix(ui): release queued input after completed chat runs (#152299) improve(tooling): reduce commit formatting resource use (#152297) feat: show mentioned sessions in Involving me (#152083) perf(tasks): reuse prepared audit summaries (#152294) fix(daemon): preserve LaunchAgent rollback bytes and modes (#152195) fix: stop chat layout changes from loading extra history (#151726) perf(gateway): streamline config reload comparison (#152279) fix(xai): reject invalid UTF-8 OAuth responses (#111737) fix(release): accept waived advisory performance evidence for stable publication (#152290) fix: deliver watcher results while other sessions are busy (#152287) ...
What Problem This Solves
Fixes completed Control UI conversations staying marked as working and leaving follow-up messages queued.
User Impact
Completed conversations return to idle, and queued input resumes when the Gateway confirms the same run has finished. Newer runs, changed sessions, and replacement delivery attempts keep their existing ownership checks.
Why This Change Was Made
Input consumption can remove an attachment-backed outbox row while terminal handling is still reading its saved payload. That disappearance was treated as stale delivery and discarded the completion event. Distinguish a retired row from a replacement attempt so completion still applies.
Queue recovery also reconciles an exact completed-run history result through the existing lifecycle owner and clears pending command entries for that run. The attachment regression group moves into a sibling test file to preserve the existing file-size limit.
Evidence
Before
After