Dashboard › opencode › Distillation
8a573f77-7d18-4830-8789-867ed10b47a0["lore_tm_v1_Cujr2hp7J9mnap5hvXdNuHJGWWcN8qtsDJpKTvKfFZA"]
Date: Sep 16, 2026
/tmp/opencode/session-recovery-v7-check/packages/core/test/session-runner.test.ts lines 958-975 define test "starts a real runner turn after default prompt recording": after setup, runner state is reset, session.prompt({ sessionID, prompt: Prompt.make({ text: "Run automatically" }) }) is called with default resume behavior, exactly 1 provider request is expected, and session.messages({ sessionID }) must contain the recorded user message with the returned message.id and text "Run automatically"./tmp/opencode/session-recovery-v7-check/packages/core/test/session-runner.test.ts lines 977-1000 define test "streams one request with registry definitions from chronological V2 user history": prompts "First" and "Second" are recorded with resume: false; after runner-state reset and session.resume(sessionID), exactly 1 request must use model, expose tools in order ["echo", "defect"], and send two chronological user text messages ("First", then "Second"); persisted session messages must total 2./tmp/opencode/session-recovery-v7-check/packages/core/test/session-runner.test.ts lines 1002-1009 begin test "retries the first provider turn after system context becomes available": it runs setup, obtains SessionV2.Service and Database.Service, creates messageID via SessionMessage.ID.create(), sets systemUnavailable = true, and records prompt "First" with the explicit ID and resume: false./tmp/opencode/session-recovery-v7-check/packages/core/test/session-runner.test.ts lines 942-954 assert that session.context(sessionID) includes a user entry with text "Use application context" followed by an assistant tool entry whose tool call has id: "call-application" and completed state { status: "completed", structured: { answer: "HELLO" } }.