Dashboard › opencode › Distillation
af9ce231-f2d6-4431-a2d1-9264dd7b2e0a["lore_tm_v1_xWX3GL87pMq4g7S_73W9CfyoTpoTbxoce6TOpoMZOH0"]
Date: Sep 15, 2026
packages/core/src/session/execution/local.ts showed database-backed session execution leasing: obtains db via Database.Service, creates or retrieves execution records using executionID, and repeatedly calls renew(executionID) with Effect.repeat(Schedule.spaced("10 seconds")).packages/core/src/session/runner/llm.ts added execution-claim enforcement that dies with the exact defect message Session execution claim lost: ${executionID} when a claim is absent.packages/core/src/session/runner/llm.ts added execution phase updates including updateExecution({ phase: "unknown" }).packages/core/src/session/runner/llm.ts added overflow recovery through runAfterOverflowCompaction(sessionID, executionID, undefined, defect.transition.step).packages/core/src/session/message-updater.ts expanded update(adapter: Adapter, event: SessionEvent.Event) with new message-appending behavior via adapter.appendMessage(...).packages/core/src/session/projector.ts showed event projection involving SessionEvent.Step.Started and validation that a retrieved message has assistant.type === "assistant".packages/core/src/session/recovery.ts imported SessionExecution, queried SessionMessageTable by session_id and type = "assistant", referenced claim.assistant_message_id, published SessionEvent.Step.Recovered, and matched SessionRecoveryTable.execution_id to claim.id.packages/core/src/session/runner/publish-llm-event.ts added handling keyed on definition.durable !== undefined, event publication via publishEvent(...), and generated event timestamps using timestamp: yield* timestamp.for (const [callID, tool] of tools), text accumulation through text.append(event.id, event.text), and settlement state via tool.settled = true.packages/core/src/session/sql.ts added unique index session_recovery_execution_idx on table.execution_id.packages/core/src/session/sql.ts added index session_execution_owner_idx on table.owner_id.