Dashboard › opencode › Distillation
3133341e-2e85-4a6c-8541-ec2c39fe6742["lore_tm_v1_-Ctha-ee2ixrRMs-31sV1RtULpfCYn-hJKaKkY01PuY"]
Date: Sep 17, 2026
packages/core/src/session/sql.ts:3 found import * as DatabasePath from "../database/path", which violates the userβs stated ban on star imports; the file uses DatabasePath.directoryColumn() and DatabasePath.pathColumn() for SessionTable.packages/core/src/session/sql.ts defines MAX_WAKE_ATTEMPTS = Number.MAX_SAFE_INTEGER and applies SQL checks requiring both session.wake_attempts and session_recovery.wake_attempts to remain between 0 and 9007199254740991.SessionTable adds wake_attempts as a non-null integer with default 0; its existing fields include project/workspace/parent relationships, directory/path, title/version, summary data, metadata, cost/token counters, revert, permission, agent/model selection, timestamps, time_compacting, and time_archived.SessionInputTable defines wake_pending as a non-null boolean-mode integer defaulting to false; index session_input_wake_pending_promoted_session_idx covers wake_pending, promoted_seq, and session_id.SessionRecoveryTable fields are session_id, primary-key execution_id, optional cascade-linked assistant_message_id, required cascade-linked unique continuation_message_id, phase restricted by TypeScript to "ready" | "unknown" | "continue", wake_pending defaulting to true, wake_attempts defaulting to 0, optional recovery_error, and required time_created.SessionRecoveryTable recovery scanning uses index session_recovery_wake_pending_error_attempts_created_execution_idx ordered by wake_pending, recovery_error, wake_attempts, time_created, and execution_id.SessionExecutionTable fields are primary-key id, unique-per-session session_id, owner_id, optional assistant_message_id, phase, assistant_seq defaulting to -1, time_created, expires_at, and optional recovery_error; its indexes are session_execution_session_idx, session_execution_owner_idx, and session_execution_recovery_scan_idx.session_execution_recovery_scan_idx orders recovery candidates by recovery_error, expires_at, time_created, and id; SQL check session_execution_phase_check permits exactly ready, safe, unknown, continue, cancelling, and cancelled.packages/core/src/session/sql.ts sets SESSION_EXECUTION_LEASE_MS = 30_000.SessionContextEpochTable uses session_id as a cascade-linked primary key and stores required baseline, JSON snapshot typed as SystemContext.Snapshot, and baseline_seq.