Dashboard › opencode › Always inspect the session run coordina…
01a0aec5-b94f-7d48-b285-5f91ef6c41d4Before implementing or reviewing session execution, interruption, wake-up, or recovery changes, read packages/core/src/session/run-coordinator.ts and trace its relevant call sites. Preserve its keyed serialization and concurrency guarantees: run joins active work, wake coalesces follow-up work, and interrupt coordinates stopping, cleanup, settlement, and work arriving during shutdown. Pay particular attention to pendingWake, stopping, owner assignment, deferred completion, successor creation, and interruption races. Also inspect adjacent session event definitions and recovery/execution wiring when the task depends on durable lifecycle events.