Dashboard › opencode › Distillation
d619dd30-4613-4b81-9965-f72ab53bb8bc["lore_tm_v1_bjgr-3Efpreqk489w9XOf9aXyXhMIQW3nkfvwZBmZz0"]
Date: Sep 17, 2026
SessionExecution implementation that imports LocationServiceMap, SessionStore, and SESSION_EXECUTION_LEASE_MS; it documents current-process routing for implicit-local Locations and reserves future remote placement for that layer.leaseDuration with Duration.toMillis(SESSION_EXECUTION_LEASE_MS), tracks process-local claims in activeClaims, and tracks shared interrupt cleanup work in interruptions.{ sessionID, executionID, ownerID }, races execution against lease/ownership handling with Effect.raceFirst(...), and removes activeClaims[sessionID] only when its stored executionID still matches.SessionExecutionTable row using the claimβs session/execution/owner identity; when Cause.hasInterrupts(exit.cause) and the current phase is not "safe", it returns without ordinary cleanup."cancelled".{ type: "unknown", message: "Tool execution interrupted" }.SessionExecutionClaim.settleCancellation(db, claim, { phase: "cancelled", assistant_message_id: null }).SessionExecution.interrupt first checks activeClaims.get(sessionID), shares concurrent cleanup through the interruptions map, uses Effect.raceFirst(...) while waiting, and deletes an interruption entry only if the map still contains that exact interruption instance.resume: coordinator.run; its layer supplies a run implementation via Effect.fnUntraced(function* (claim, force, recoveryInputID) { ... }).