background_tasks cross-reference filters spawn entries. The simulated input has 7 spawn-log entries; the live list contains only 2 of them.session-current
| spawn agent_id | age | session | in bg_tasks? | outcome |
|---|
Implements PR feat/cc-2.1.145-adoption. Watchdog source: src/hooks/src/subagent-stop/watchdog.ts. Tests: src/hooks/src/__tests__/subagent-stop/watchdog.test.ts.
Real-world impact: this session has been seeing 20+ CRITICAL warnings about 4-day-old phantom agents. With this change + CC 2.1.145, those drop to 0 unless the agent is actually live in CC's authoritative list.