Dashboard › opencode › Distillation
d43ff410-e44f-4a69-8a37-a9868acb13a6["lore_tm_v1_qs7Ej_tXwfuab42ugg7iz4VcFlKRIvBqwvGI_wOOSco","lore_tm_v1_7KpJ3kpG4YKGzKfgyfI3uodiFFmfzi8ik0eeYAFjVag","lore_tm_v1__iEjpcOnrtKCPIo2FelhPOTblBE7LdEXa8kZR_PmQJQ","lore_tm_v1_EPuhqj05CEKNh32izS2LrrctyGMdMsiDqlqoWZeeH1I","lore_tm_v1_55SmPxzdASZggVX0YIZgUoEKf9CpcwtDgx7mKRSLNlI"]
Date: Sep 16, 2026
packages/core/test/session-runner.test.ts test continues with reloaded history after durably settling one local tool call: prompt "Echo this" triggers local echo call ID "call-echo" with { text: "hello" }; the continuation request has roles ["user", "assistant", "tool"], authorization matches { sessionID, toolCallID: "call-echo" }, execution equals ["hello"], and final assistant text is "Done"."Mixed tools" produces local tool "call-local"/echo with "mixed-local" and provider-executed hosted tool "call-hosted-pending"/web_search with query "pending"; SQLite trigger fail_hosted_tool_reconciliation aborts insertion of event type "session.next.tool.failed.1" with "crash before hosted tool reconciliation". Expected post-failure state: SessionExecutionTable.phase is "unknown", the hosted tool remains "running", and no "session.next.step.ended.2" event exists.LLMEvent.stepStart({ index: 0 }) and LLMEvent.stepFinish({ index: 0, reason: "tool-calls" }), providerUnavailable() fails the stream; session.resume(sessionID) must fail and no "session.next.step.ended.2" event may be committed."Recover settled tool continuation" invokes echo via call ID "call-recovery" with { text: "settled" }; modelResolveHook dies with "crash after settled Step.Ended" when execution phase becomes "continue". The durable execution remains in phase "continue", while context contains the user prompt and a "tool-calls" assistant message whose "call-recovery" tool state is "completed"./tmp/opencode/session-recovery-review-v5-49183f9e/packages/core/test/session-prompt.test.ts: line 19 imports SessionRecovery from "@opencode-ai/core/session/recovery"; line 147 is test delegates execution continuation through SessionExecution; line 469 expects one PromptExecutionRequested v1 event; lines 542 and 550 each expect zero PromptExecutionRequested v1 events./tmp/opencode/session-recovery-review-v5-49183f9e/packages/core/src/event.ts: .transaction( at line 240, { behavior: "immediate" } at line 351, and .transaction(() => at line 516.