Repository navigation
test(sessions): cover abrupt committed transcript recovery - #143984
Conversation
Punchcard-Session: ember-river-timber-wj
|
🦞👀 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, 1:17 PM ET / 17:17 UTC (Revision 2). ClawSweeper reviewWhat this changesExtends the shared session lifecycle tests to verify that committed conversations survive forced Gateway termination and accept another turn after restart. Merge readiness✅ Ready for maintainer review Keep open: this adds useful recovery coverage absent from the inspected main and release harnesses. No actionable patch defect was found, and the member-authored PR is protected from automatic closure. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway stores conversation transcripts in each agent’s SQLite database and exposes them through chat history. This test exercises that storage through a real isolated Gateway, then compares persisted events and returned messages across termination and restart. flowchart TD
A[Completed conversation] --> B[Capture database and chat history]
B --> C[Force Gateway termination]
C --> D[Verify process tree stopped]
D --> E[Restart with same state]
E --> F[Compare recovered conversation]
F --> G[Send and verify another turn]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +211. Total +211 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain this scenario in the existing shared lifecycle fixture, with its stated scope limited to recovery of already-committed turns. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds coverage for an existing durability contract rather than fixing a demonstrated current failure. Is this the best way to solve the issue? Yes: extending the shared lifecycle exercises real persistence and chat-history boundaries without adding production seams or duplicating fixture setup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0fcaa5c27a73. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit '201f11afefdb19a9c75e9d3542bf7425c80df7a7': (141 commits) 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) refactor: share streaming media tail boundary update (#146989) refactor(tui): classify resume candidates once (#146983) improve: skip unused toast dismissal work (#147196) fix(linux): recover saved remote connections without replacing active sessions (#146047) fix: doctor stays silent when Windows state dir is under OneDrive (#123720) feat: announce successful Daybreak retries (#147146) feat(code-mode): reuse results across code cells (#147154) refactor(test): reuse CLI plugin fixture writer (#147186) test: skip unused compiler setup in routing fixtures (#147194) test: reuse LINE webhook runtime fixture (#146710) fix(code-mode): check automation and process result types (#147143) ...
* 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) ...
…143984) Punchcard-Session: ember-river-timber-wj
What Problem This Solves
The session durability tests covered completed turns and graceful restarts, but did not verify that a committed conversation survives abrupt Gateway termination and accepts another turn after restart.
Why This Change Was Made
Extend the existing shared lifecycle with three checkpoints: confirmed termination of the fixture-owned process tree, restart against the same state, and a fresh user/assistant exchange. Assert exact transcript/history identity and ordering, preserved sibling state, and no active JSONL resurrection. All 21 existing checkpoints remain in order.
User Impact
No production behavior change. Developers gain regression coverage for recovering committed conversations after a Gateway process crash.
Evidence
bd364b1e1ed7907100b8d661d64691b35bced83e. Independent exact-head review and refreshed automated review found no actionable issues.89c43eac83914e7535346262ec5238e2ad9e08a0; production bytes are unchanged by this test-only commit. The tracked source used by the final tests was independently verified identical to final headbd364b1e1ed7907100b8d661d64691b35bced83e.Focused commands:
Coverage is limited to already-committed turns and Linux process termination. In-flight transactions, power loss, cross-agent isolation, duplicate ingress, installed tarballs and native Mac/Windows behavior remain separate proof obligations.
Punchcard-Session: ember-river-timber-wj