Dashboard › opencode › Distillation
05c7a968-d931-4327-ada5-b87f69f2f8b1["lore_tm_v1_seKQ93debKiEVH2vugMANrkW8Dg2c5HRTbxAZKguGc8","lore_tm_v1_X6xs0LjAdsg1PAGV-sGe3gaP6AuDhncd16KMJT3Ghnw","lore_tm_v1_Ds92Kw6ES513rcqt-oQnklvYQw95GNTKmbsZQvj1IoQ","lore_tm_v1_ZLf64whslimTe5suuPpKlcsiQUfPOOPc3TGCB9EvJeM"]
Date: Sep 15, 2026
/home/byk/Code/opencode/packages/core/test/session-prompt.test.ts, including resume: false, wake_pending, Session.PromptConflictError, and exact-retry scenarios./home/byk/Code/opencode/packages/core/test/session-prompt.test.ts includes tests named turns an admit-only exact retry into durable execution intent, returns an exact retry of a legacy projected prompt, and returns an exact retry of a legacy projected queued prompt."First" then "Second", retry input "Fix the failing tests", recovery prompt "Recover committed prompt", promotion prompt "Promote once", cutoff prompts "Before cutoff" and "After cutoff", replay prompt "Replay pending", legacy prompt "Historical queued prompt", conflict prompt "Conflicting prompt", and non-executing prompt "Do not run"._tag: "Session.PromptConflictError" when a reused messageID belongs to another session or when the same session/message ID is retried with a conflicting prompt; one assertion verifies { _tag: "Session.PromptConflictError", sessionID: other, messageID }, and another verifies { _tag: "Session.PromptConflictError", sessionID, messageID }.session.prompt({ id: messageID, sessionID, prompt, delivery: "queue", resume: false }); tests also inspect SessionInputTable, call SessionInput.promoteSteers(db, events, sessionID, cutoff), replay events with events.replayAll(...), and reset executionCalls.length = 0 while validating execution behavior./home/byk/Code/opencode/packages/core/src/session/runner/index.ts re-exports SessionRunner from "./index" and defines Service as Context.Service<Service, Interface>()("@opencode/v2/SessionRunner").SessionRunner.RunError is the union LLMError | SessionRunnerModel.Error | MessageDecodeError | ContextSnapshotDecodeError | SystemContext.InitializationBlocked | ToolOutputStore.Error.SessionRunner.Interface.run has input fields sessionID: SessionSchema.ID, force: boolean, executionID: string, ownerID: string, and optional recoveryInputID?: SessionMessage.ID; it returns Effect.Effect<void, RunError>.SessionRunner.Interface.run contract says it drains eligible durable work, while explicit runs perform one provider attempt even when no work is eligible; the runner performs one local continuation from already-recorded session history.