Repository navigation
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. What this changesThe PR updates the qa-lab SIGKILL test to expect an automatic resume input instead of waiting for another user message. Example: SIGKILL interrupts the kill-restart-send conversation while a Code Mode wait is pending.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR corrects a stale restart expectation on current main, and the focused CI job passed; no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe qa-lab test sends channel input through an isolated Gateway, kills its process group during Code Mode execution, restarts it with retained session state, and inspects the transcript. flowchart LR
A[QA channel input] --> B[Gateway agent run]
B --> C[Pending Code Mode wait]
C --> D[Process group SIGKILL]
D --> E[Gateway startup recovery]
E --> F[Retained session transcript]
Technical reviewBest possible solution: Land the focused test correction once the inherited CI gate is resolved through its existing repair. Do we have a high-confidence way to reproduce the issue? Source establishes the conflict between automatic predecessor recovery and main's zero-request assertion; the author supplies before/after failures and passes, but no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete correction: retain the real kill/restart composition, observe the existing resume contract, and remove assertions for retired behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a72e1c7e3558. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -12. Total -12 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 4, 2026, 10:42 AM ET / 15:42 UTC. |
Problem
extensions/qa-lab/src/gateway-kill-restart-send.e2e.test.ts("leaves a killed run idle until a new user message arrives") is stale onmain. It asserts that a Gateway restarted afterSIGKILLmakes no provider requests until a fresh user message arrives.#190964 changed that on purpose: a root session interrupted by
SIGKILLnow gets one ordinary resume input on the next startup. The contract is documented indocs/gateway/restart-recovery.mdand proven bytest/gateway-restart-resume.e2e.test.ts. That PR did not update this qa-lab test, so it now asserts the old behavior. The test is only selected by changed-node rows on broad-scope PRs, which is why it went unnoticed. Because the resume is real, the old assertion fails whenever the resume reaches the mock provider before the test's empty-requests check. That happened in both localmainruns and two of three #192607 CI runs (checks-node-changed-7). The new assertion waits for the resume input, so it does not depend on that timing.Solution
Update the test to the current contract. It keeps the same setup: a qa-channel inbound, a Code Mode
waitstill pending, a process-groupSIGKILL, and a restart with the session row retained. It now asserts that the same session gets the standard Gateway resume input without another inbound message, and that exactly one user-role message (the resume input) follows the pre-kill transcript cursor. The fresh-inbound and empty-mock-requests steps checked the retired "stay idle" behavior, so I removed them.Test-only change. No production code changed.
Impact
waitcall is closed and the run resumes in the original session.Evidence
All runs are local, macOS, Node,
node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts --configLoader runner extensions/qa-lab/src/gateway-kill-restart-send.e2e.test.ts --maxWorkers=1:99e12c88fe97(parent of #190964, before SIGKILL resume)inbound-message919b0567dd1b(parent of #192501)main(df93e5d0e9a8/1d5bc6779517)expected [ {…}, {…} ] to deeply equal []; the requests carry "The Gateway restarted while you were working. Resume your work:"mainfailure: job 126432244272 and job 126648493317.oxfmt --check,oxlint, andtsgo -p test/tsconfig/tsconfig.extensions.test.jsonpass on the changed file.check:test-lines-ratchetreports net delta -12.test/gateway-restart-resume.e2e.test.ts.checks-node-changedran the file under pinned Bun and passed in 17.1 s (job 126658791849). The only red check,checks-fast-baseline-ratchets, fails onmock-exportsinui/src/pages/model-providers/profiles-view.test.tsxandui/src/pages/sessions/sessions-page-cloud-stop.test.ts. That failure is already onmainand fix(ci): restore main mock and static checks #192850 fixes it.