Dashboard › opencode › Distillation
b66ec4b3-ec7e-442c-823d-5aa881a470f1["lore_tm_v1_B4V855P9v6e1--BA2SKIPiNp7icF89SjijRI22rdCo8","lore_tm_v1_hSPzP2s9fmQC5LWi-xMJL-ZIsl2dXfhPLe53uGV4f2I","lore_tm_v1_QDNe8Qx_ORQFApGLwKeG8XnksWRGfKSlvOZ0p2BUP5A"]
Date: Sep 16, 2026
ab9408c81cc9916177641ae8e9f08624fc27b5b9, packages/core/src/session/context-epoch.ts:28 wraps initializeOnce(db, context, sessionID) with Effect.withSpan("SessionContextEpoch.initialize"); line 37 wraps prepareOnce(db, events, context, sessionID) with Effect.withSpan("SessionContextEpoch.prepare").ab9408c81cc9916177641ae8e9f08624fc27b5b9, packages/core/src/session/runner/llm.ts:183 calls SessionContextEpoch.initialize(db, loadSystemContext(agent), session.id); line 198 falls back to SessionContextEpoch.prepare(db, events, loadSystemContext(agent), session.id) when initialized is nullish.SessionInput.admit is exported via Effect.fn("SessionInput.admit") in packages/core/src/session/input.ts:41; call sites shown at packages/core/src/session.ts:368 and packages/core/test/session-projector.test.ts:224.SessionRunner.Service.use((runner) => runner.run({ sessionID, force })) in packages/core/src/session/execution/local.ts:20. Test adapters map drain: (sessionID, force) => sessionRunner.run({ sessionID, force }) in packages/core/test/session-runner-recorded.test.ts:92 and packages/core/test/session-runner.test.ts:244; forced child-fiber runs appear at packages/core/test/session-runner.test.ts:539 and :3033.Effect and Semaphore from "effect", serializes work with lock.withPermit, executes migrations through db.transaction((tx) => ...), and records completion in the "migration" table using id and time_completed; compatibility/backfill paths use INSERT OR IGNORE.packages/core/src/database/schema.gen.ts, creates temporary work under opencode-core-migration-check-, scans */migration.sql, and raises Database migration registry is stale. Run \bun script/migration.ts` from packages/core.` when generated and registered migrations disagree.ab9408c81cc9916177641ae8e9f08624fc27b5b9, UI reducers handle session.execution.interrupted in packages/app/src/context/server-session-v2-reducer.ts:330 and packages/app/src/context/server-session.ts:982.SessionExecution.Service at packages/core/src/session.ts:191 and performs interruption with Effect.uninterruptible(execution.interrupt(sessionID)) at line 431. The local implementation references SessionExecution.Service in packages/core/src/session/execution/local.ts:12, constructs it with SessionExecution.Service.of({...}) at line 31, and exposes it as service: SessionExecution.Service at line 41.SessionExecution.Service.of({...}) in packages/core/test/session-prompt.test.ts:29, packages/core/test/session-runner-recorded.test.ts:94, and packages/core/test/session-runner.test.ts:246; interruption calls occur in session-prompt.test.ts:127 and session-runner.test.ts:1329,1991,2033,2962,2966,3007,3014, while explicit wake(sessionID) calls occur in session-runner.test.ts:2227,2433,2460.