Repository navigation
fix(server): checkpoint capture no longer throws on an undefined stop flag - #41709
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
… run Since #41362 a run settles as completed when its provider turn ends, and commands treat it as waiting until its checkpoint capture commits. A Stop accepted in that window stored only its request, so the run stayed completed. Checkpoint capture now looks for that pending Stop on completed runs too and settles the run as interrupted with its result, as #41685 intended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Match upstream pingdotgg#41709 byte-for-byte in production. Retain behavioral regression coverage for a real Stop accepted during capture on both persisted waiting and completed runs, and the eager full integration fixture.
… flag (pingdotgg#41709) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 7872c23)
Two pull requests merged at nearly the same time left checkpoint capture reading a variable that no longer exists, so every capture threw and runs could not settle (main's typecheck and server tests were red). The pending-Stop lookup now keys off
legacyWaiting, so it runs only for runs stillwaiting, the only ones capture still settles.Reproduction on main
Run the failing check on main.
Evidence
The checks on this pull request are the proof: it changes what main's checks run, not what the app does.
Tests
vp test run src/orchestration-v2/ThreadStop.test.ts src/orchestration-v2/CheckpointCaptureService.test.tswithout the fix: fails withReferenceError: stoppedNow is not definedvp test run src/orchestration-v2/CheckpointCaptureService.test.ts src/orchestration-v2/runtimeLayer.test.ts: 220 passedvp test runon ClaudeAdapterV2, BackgroundWorkStop, CheckpointRollbackService.taskFolder, LegacyV1Cutover, MuseReplayFixtures, ThreadStop: 576 passedvp run typecheck(apps/server): passvp run check:changed: passNot in this change
Who did the work
Run by the t3code factory in T3 Code.