DashboardopencodeRunCoordinator stopping-owner handoff

RunCoordinator stopping-owner handoff

Category: gotcha
Confidence: 1.00
ID: 01a0af00-1cfd-774e-908b-b78128e5e10e
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0410hkwvS1ACdy6D6
Created: 2026-09-16 10:18:25
Updated: 2026-09-17 10:53:35

Content

Trap: awaiting a stopping owner with Effect.andThen looks like orderly serialization, but it propagates the interrupted owner’s failed Exit, so a forced run() registered during cleanup never starts its promised successor. Fix: mark the entry stopping before durable cancellation, preserve pendingWake, await completion as an Exit and discard the old result, then retry run(key); setup or cleanup failure must release waiters and permit exactly one successor.

Move to: