mirror of
https://github.com/openai/codex.git
synced 2026-10-28 16:06:15 +00:00
## Why Opening the agent picker could clear a successful spawn hint before the new sub-agent had emitted a turn event, making a running agent appear stopped. ## What changed - Treat active turns and matching completion events as authoritative liveness transitions while leaving an empty event store unchanged. - Remember terminal liveness so delayed activity cannot revive a stopped agent; only a new turn can mark it running again. - Ignore `Interacted` activity when deriving agent liveness. ## Testing Added coverage for empty stores, stale and current completion events, completed snapshots, delayed activity, and subsequent turns. GitOrigin-RevId: 462539d8134a5d3520dbd41edb44b3251f50ead5