Dashboard › opencode › Distillation
e7c34a15-28cb-48eb-9033-48895ad5bba8["lore_tm_v1_Km7w-TfOyEniDOEAbWPWkhPpIQ9g6WUAw7-7_Ggyp1U","lore_tm_v1_nTq4iNhmVYV73tO6bSbqukekqLxhULWVNYBA0nIdTac","lore_tm_v1_m4CVMYv5rcFW8z8xmeJEER6PgjRu7vuslP9bR8YTC5U","lore_tm_v1_5_s0XIg_59yhoufuCHt3DYHVIDzW1HHgfxdivlrN1J4","lore_tm_v1_7wd7BsGVCSqUjcTPVC69joYbemdVdylf5cxdjUcoHfE","lore_tm_v1_n-0_sVkdQvxxiEdI9fmb3qhVAGEbm6Su__gKAW32BMs","lore_tm_v1_8OUgHFQvKstr0x2Cyo1z6OW_eZRd8_Jkkbsrd8iW_go","lore_tm_v1_xIi9qU9dgbG3oeyHghAm9GS-L-CRwthBkN-qHB0jovI"]
Date: Sep 16, 2026
"never commits a Step end after the provider stream fails" in /home/byk/Code/opencode/packages/core/test/session-runner.test.ts:2015: after LLMEvent.stepFinish({ index: 0, reason: "tool-calls" }) followed by Stream.fail(providerUnavailable()), session.resume(sessionID) must fail and no session.next.step.ended.2 event may be committed."never commits a Step end after the provider stream fails" at /tmp/opencode/session-recovery-review-v5-49183f9e/packages/core/test/session-runner.test.ts:2006 and "recovers the continuation committed with a settled tool step" at line 2028./home/byk/Code/opencode/packages/core/test/session-runner.test.ts:2037 tests "keeps a provider defect after Step finish unknown": a stream defect after LLMEvent.stepFinish({ index: 0, reason: "stop" }) must leave SessionExecutionTable.phase as "unknown" and commit no session.next.step.ended.2./home/byk/Code/opencode/packages/core/test/session-runner.test.ts:2060 tests "keeps provider failure unknown until unresolved tools are durable" using hosted tool ID "call-provider-failure-pending" and trigger fail_provider_tool_reconciliation; when insertion of session.next.tool.failed.1 aborts, resume fails, execution remains in phase "unknown", exactly 1 session.next.step.failed.2 exists, and the tool remains "running"./home/byk/Code/opencode/packages/core/test/session-runner.test.ts:2108 tests "recovers the continuation committed with a settled tool step": after a crash with execution phase "continue", recovery preserves the settled completed tool "call-recovery", redrives with user texts ["Recover settled tool continuation", "continue"], records exactly 1 "settled" execution, and leaves 1 SessionRecoveryTable row."durably fails blocked local tools when a provider turn is interrupted" at /tmp/opencode/session-recovery-review-v5-49183f9e/packages/core/test/session-runner.test.ts:3520 and "interrupts a blocked provider turn without local tool execution" at line 3581./home/byk/Code/opencode/packages/core/test/session-runner.test.ts:3600 verifies interruption durably turns blocked local tool "call-before-interrupt" into an error with message "Tool execution outcome unknown after interruption", gives the assistant finish "error" with "Provider Step outcome unknown after interruption", survives replaySessionProjection(sessionID), and resumes with message roles ["user", "assistant", "tool"]./home/byk/Code/opencode/packages/core/test/session-runner.test.ts:3661 verifies the execution claim remains present while runner finalizers are blocked, prevents insertion of replacement execution ID "replacement-during-finalizer", and removes the claim only after releaseFinalizer is completed and interruption finishes."never wakes work settled between selection and redrive CAS" in /home/byk/Code/opencode/packages/core/test/session-projector.test.ts:711."never wakes work settled between selection and redrive CAS" test covers both recovery and ordinary work: SQLite triggers settle_recovery_before_redrive_cas and settle_ordinary_before_redrive_cas clear wake_pending and issue RAISE(IGNORE) immediately before the redrive compare-and-swap updates; expected wakes is [], recovery wake_attempts remains 0, ordinary session wake_attempts remains 0, and both work items have wake_pending: false./home/byk/Code/opencode/packages/core/test/session-projector.test.ts has 2,344 lines, while rejected v5’s /tmp/opencode/session-recovery-review-v5-49183f9e/packages/core/test/session-projector.test.ts has 2,187 lines./tmp/opencode/session-recovery-review-v5-49183f9e/packages/core/test/session-projector.test.ts found "quarantines a continuation that belongs to another Session" at line 637 but did not find "never wakes work settled between selection and redrive CAS", confirming that CAS-race regression test had not yet been overlaid.