Repository navigation
fix(linux): recover completed Quick Chat replies without resending - #146048
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 13, 2026, 2:06 PM ET / 18:06 UTC (Revision 4). ClawSweeper reviewWhat this changesLinux Quick Chat recovers completed replies using the original retry identity and prevents queued sends or recovered replies from crossing a Gateway replacement. Merge readiness✅ Ready for maintainer review This repair remains necessary on current main. No blocking correctness or security finding was identified, and the latest sync preserves the previously reviewed Linux changes. Priority: P2 Review scores
Verification
How this fits togetherQuick Chat sends desktop messages through the native Gateway WebSocket client and displays streamed replies. Recovery reads Gateway conversation history when an acknowledgement says the original turn already completed. flowchart TD
A[Quick Chat draft] --> B[Native retry identity]
B --> C[Current Gateway ownership check]
C --> D[Gateway send acknowledgement]
D --> E[Stream active reply]
D --> F[Read bounded completed history]
F --> G[Validate turn and session identity]
G --> H[Display recovered reply]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +154, Other +2299. Total +2453 across 4 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 retry identity and bounded history recovery in the native Quick Chat owner, with current Gateway authority checked before transport effects and recovered output entering the existing renderer. Do we have a high-confidence way to reproduce the issue? Yes, from source: lose a completed turn's acknowledgement, then retry the unchanged draft; current main accepts the completed acknowledgement but still waits for streaming events. This review did not execute that scenario. Is this the best way to solve the issue? Yes. The patch reuses Gateway idempotency and history contracts, preserves ordinary streaming, and keeps failed terminal recovery from starting another provider turn. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 201f11afefdb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
d7102a9 to
a92cbc1
Compare
0cfbbad to
c59470f
Compare
|
Merged via squash.
|
* commit '2d87daf04b78992382299d552f15ac84a86a23ed': (1815 commits) fix(ui): distinguish tool activity with semantic icons (#147207) fix(linux): recover completed Quick Chat replies without resending (#146048) feat(desktop): unify Tauri title bar and window controls (#147097) refactor(test): share plugin fixture server shims (#147225) perf(gateway): defer worker workspace execution imports (#143496) fix(gateway): post-ack webhook work fails with "Async work scope is closed" (#144801) refactor(scripts): centralize upgrade survivor version floors (#146975) fix(ci): check publication registries before FRV fanout (#147184) fix(qa): align system-agent delegation with channel contracts (#145905) improve: reduce repeated chat message identity work (#147210) fix(channels): remove stale pre-tool previews from Slack and Telegram (#147106) fix: keep catalog discovery scoped and execution lazy (#147159) fix: serialize reclamation worker shutdown with foreground writes (#147178) test(sessions): cover abrupt committed transcript recovery (#143984) fix: stop transcript storms during context overflow recovery (#147202) fix: reduce CPU overhead for small history and usage reads (#147205) fix: resume tasks after tools finish and the model times out (#147203) refactor(scripts): share SQLite reliability message waits (#146900) feat(exec): configure approval reviewer thinking and fastMode (#147192) test: remove redundant Bonjour module headers (#146981) ...
Related: #145355
Stack 4/8, replayed onto main after the preceding layer landed.
Previous: #146047 | Next: #146049
This same-repository branch is writable by maintainers with push access.
What Problem This Solves
Fixes Quick Chat remaining busy after a completed turn loses its acknowledgement, or sending a queued draft to a replacement Gateway.
User Impact
Retrying an unchanged draft can recover the completed reply without generating a second provider turn. Incomplete or unrelated history remains an error.
Why This Change Was Made
Carry the selected Gateway generation through socket dispatch, preserve the original retry key, and recover only its bounded, matching terminal history. The replay preserves current desktop request and sleep ownership checks, including a selected configuration at the actual socket enqueue.
The existing Canvas refresh and widget command interfaces remain unchanged until the next stack layer.
Evidence
4389b0d3218f7a4c9a957bf4b08f0c03b6d7cfbesyncs main to inherit the unrelated Workboard lint repair in fix: resume tasks after tools finish and the model times out #147203. Its complete four-path delta is byte-identical to tested replayc59470f2c184271db69898faec68ac7329c0098b; no Linux behavior was changed for that CI failure. Fresh-head LinuxApp passed Linux formatting, Rust tests/build, inline-browser and mac companion checks; packaging and first-run remained skipped. Fresh-head core CI and its required gate passed.Native behavior evidence used the recorded X11/Xvfb functional graphics profile. Default graphics, Wayland, packaged installation and performance are not qualified by this PR.