Dashboard › opencode › Distillation
c74b32b6-c27c-4ff0-811b-9d98b951afa3["lore_tm_v1_fdRwF-Ay_UZ8tOSQB-DeHl8y0W7ZDd-VgZj705C2ECA","lore_tm_v1_0g7N4Y60QxW0ZbDos5c5DHh7cJHqn8XFGdNx9eI6TMA","lore_tm_v1_LgFyBnc6EXtSPhcgfnSIimsR9NX8JUr4WZiheaY5MmA","lore_tm_v1_u7n2u7abP_D8NxagplUJs9mt1tzFrlmEjEdXxyY_788","lore_tm_v1_iMvMgodl1fST6RpZjJB7UyHBCH8jfws5g7K0ZptwsOA"]
Date: Sep 16, 2026
SessionInput.promoteNextQueued in packages/core/src/session/input.ts selects at most one unpromoted "queue" input for a session, excluding inputs already referenced by SessionRecoveryTable.continuation_message_id; it chooses the earliest by ascending SessionInputTable.admitted_seq, returns false when none exists, and otherwise publishes the selected input with the optional commit hook and returns true.SessionInput.promoteExact in packages/core/src/session/input.ts requires a specific messageID belonging to the session with promoted_seq IS NULL and delivery "queue"; if absent, it dies with Pending recovery input not found: ${messageID}.SessionInput.promoteExact encounters a RecoveryConflict, it updates the matching SessionRecoveryTable row only where execution_id matches, wake_pending = true, and recovery_error IS NULL, setting recovery_error to defect.reason; it then rethrows the defect. Non-RecoveryConflict defects are rethrown unchanged.packages/core/src/session/runner/index.ts defines SessionRunner.Interface.run(input) for one local continuation from already-recorded session history. Input fields are sessionID: SessionSchema.ID, force: boolean, executionID: string, ownerID: string, and optional recoveryInputID?: SessionMessage.ID; the method returns Effect.Effect<void, RunError>.SessionRunner.Interface.run documents that eligible durable work is drained, while explicit runs perform one provider attempt even when no work is eligible.SessionRunner.RunError is the union of LLMError, SessionRunnerModel.Error, MessageDecodeError, ContextSnapshotDecodeError, SystemContext.InitializationBlocked, and ToolOutputStore.Error. The service identifier is @opencode/v2/SessionRunner.