Dashboard › opencode › Distillation
5eeb1994-b8d9-43aa-b07d-9b098dec371f["lore_tm_v1_SLXT-5noP7LKCo-0fhFrmPyCyDt1KfKjXc7pmeb_AUQ","lore_tm_v1_8JEh_YegzzECWxy8e87-MmJ5CUIhHuFBFO2nr8xfM0E","lore_tm_v1_GhJFm6pka7yT08jdqiYYv6p4qvb_NpQ-NZMADS3NYLg"]
Date: Sep 15, 2026
packages/core/test/session-prompt.test.ts:1-50 found the prompt tests mock SessionExecution.Service with process-local executionCalls, interruptCalls, wakeCalls, and activeSessions; the test layer combines Database.node, EventV2.node, SessionProjector.node, SessionStore.node, and SessionV2.node.packages/core/test/session-prompt.test.ts:51-99 found fixed test Session ID ses_prompt_test, database setup for ProjectTable and SessionTable, and helpers admitted(), admittedCount, and eventCount() for querying SessionInput rows and durable events.packages/core/test/session-prompt.test.ts:101-125 found existing tests verify that SessionV2.Service.active exposes the execution registry, session.resume(sessionID) calls SessionExecution.resume without calling wake, and process-local interruption delegates through SessionExecution.SessionInput promotion calls in packages/core/src/session/runner/llm.ts: promoteExact at line 206, promoteSteers at lines 228 and 233, and promoteNextQueued at line 231; the recovery callback clears SessionRecoveryTable.wake_pending at line 211.packages/core/src/session/runner/llm.ts:182-236 found runTurnAttempt() loads the Session, validates location, updates the execution claim to phase: "ready" with assistant_message_id: null, initializes context, then handles an optional Promotion.packages/core/src/session/runner/llm.ts:202-226: for object-form promotion, SessionInput.promoteExact(db, events, session.id, promotion.recoveryInputID, callback) promotes only the exact recovery continuation; its atomic callback refreshes the execution claim and changes the matching SessionRecoveryTable row from wake_pending=true to false, dying with Recovery wake already settled: ${promotion.recoveryInputID} if no matching row is updated.packages/core/src/session/runner/llm.ts:227-234: "steer" calls SessionInput.promoteSteers() up to the captured cutoff; "queue" first calls SessionInput.promoteNextQueued() and then SessionInput.promoteSteers() using the same cutoff; each promotion callback updates the execution claim.packages/core/src/session/runner/llm.ts:235 resets currentStep to 1 whenever at least one input was promoted; the object-form recovery branch sets promoted = 1 after promoteExact.