Dashboard › opencode › Distillation
e789cdb1-270b-473a-9649-3d61a21c825d["lore_tm_v1_sbazEYyp_2dSGSF026DobhJ62Zf2BKj0xHzPXhNNDhg","lore_tm_v1_5Tfuy6kLzYBr-USeJljrA8iiQT49A8y5OKdPRrVneJg","lore_tm_v1_0SBfKkn8o2Bes4POcz7IM7mRrnvzSXGYF5kUshkvdjA"]
Date: Sep 17, 2026
/home/byk/Code/opencode/packages/core/schema.json has version: "7", dialect: "sqlite", ID 3bc49670-06d1-4eba-9a45-8c8128bdcf6f, previous ID d4ff43d2-c4f9-442c-bada-a7d488b42fd2, and includes the workspace table in its DDL.packages/core/test/session-execution-local.test.ts. Rationale: drain finalization clears activeClaims before durable cleanup finishes, so the test must prove a second interrupt caller joins the first cleanup rather than invoking the coordinator without cleanup.packages/core/test/session-execution-local.test.ts test "settles cancellation before starting a pending successor" blocks the first run’s finalizer with releaseFinalizer, queues execution.wake(sessionID) during interruption, advances TestClock by "40 seconds", then verifies the successor starts only after finalizer release, expiry > 40_000, runs === 2, and all claims are removed."never lets runner settlement overwrite cancellation"."never lets runner settlement overwrite cancellation" in packages/core/test/session-execution-local.test.ts:278-311 creates assistant message msg_cancellation_race, stores its ID through SessionExecutionClaim.update(db, claim, { assistant_message_id: assistantMessageID }), and makes the interrupted runner’s finalizer attempt SessionExecutionClaim.update(db, claim, { phase: "continue" }). Expected outcome: interruption fails and the durable claim remains in phase: "cancelling", proving runner settlement cannot overwrite cancellation."fails cancellation when cleanup loses execution ownership" in packages/core/test/session-execution-local.test.ts:313-350 blocks the runner finalizer, queues a wake, replaces durable ownership with owner_id: "replacement-owner" and expires_at: 60_000, advances TestClock by "10 seconds", then releases the finalizer. Expected outcome: interruption fails, only 1 run occurs, and the claim remains owned by "replacement-owner"./home/byk/Code/opencode/packages/core/test/session-execution-local.test.ts currently ends at line 352.