Dashboard › opencode › Distillation
b6673366-3e3c-4f6f-b3f9-a118fa648965["lore_tm_v1_BG4zLHbPJIMkDKtx8g8IA_mjN-oUUBA0qoLbvo681nE"]
Date: Sep 17, 2026
packages/core/src/session/recovery.ts for the ongoing read-only review; visible imports include SessionProjector from ./projector and SessionRecoveryTable.packages/core/src/session/recovery.ts defines hasPendingExecutionIntent via Effect.fn("SessionRecovery.hasPendingExecutionIntent").Schema.decodeUnknownOption(Phase)(claim.phase).claim.assistant_message_id and claim.assistant_seq, including a guard that rejects a latest message whose seq exceeds claim.assistant_seq.gt(SessionExecutionTable.expires_at, quarantinedAt).SessionExecutionClaim.clear(db, recoveryClaim), and otherwise renews/updates them with SessionExecutionClaim.update(db, recoveryClaim).callID: tool.id.const pending = [...retriedRecovery, ...freshRecovery, ...recoveryBackfill].SessionRecoveryTable.execution_id and ordinary continuation inputs are joined through SessionRecoveryTable.continuation_message_id = SessionInputTable.id.Effect.logError("Failed to redrive Session recovery", cause) and annotates logs with { sessionID: row.sessionID }..limit(BATCH_SIZE - retriedOrdinary.length).Schedule.spaced("10 seconds").