Repository navigation
test: fix fixture revision lifetime and SQLite restart runtime - #40665
Merged
nwparker merged 1 commit intoNov 10, 2026
Merged
Conversation
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Keep state created by terminal-link tests from leaking into the next suite, and run a real SQLite restart test with the runtime that supports its read-only WAL reopen.
What Changed
No production code, test registrations, or assertions change. No new reset API or forwarding module is added.
Why
On pristine main, the ordered terminal-link → Codex pair leaves pairing revision 2 behind and fails the Codex request assertion. The same pair passes after cleanup. The hook suite’s WAL restart cases fail under Bun but pass with the normal test command after explicit Node admission.
Linked Issue
Part of the ongoing module layout cleanup; no separate issue.
Visual Proof
N/A — test infrastructure and fixture lifecycle only; no UI or interaction change.
Testing
pnpm check:changed— all 27 checks pass, including Node/web typechecking and selected units.pnpm test src/main/agent-hooks/server/testing/identity/server-hook-session-binding.test.ts --maxWorkers=1 --reporter=verbose— Node runtime, 14 passed.pnpm test src/renderer/src/components/terminal-pane/links --maxWorkers=2 --reporter=verbose— 21 files / 172 tests passed.Risk
Level: Low. Fixture retirement invokes the existing retirement listeners, rather than silently clearing a Map. Cleanup runs before window teardown to preserve that contract. Production local/remote/Mobile/folder behavior is unchanged. Linux and Windows execution is left to CI. A plain revert restores the previous test behavior.
Review
Two independent native Codex implementation reviews accepted the exact patch, including retirement listener side effects and transitive SQLite runtime selection. Detailed evidence remains local.
Agent skill upstream boundary
Checklist