DashboardopencodeAlways inspect the session run coordina…

Always inspect the session run coordinator before changing execution or recovery

Category: preference
Confidence: 0.80
ID: 01a0aec5-b94f-7d48-b285-5f91ef6c41d4
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 1C0iHSxv8ICeCEp6k
Created: 2026-09-17 09:49:48
Updated: 2026-09-17 09:49:48

Content

Before 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.

Move to: