Both advisors are running (Codex gpt-5.5 xhigh + a 6-agent verification workflow over watcher/renderer/host-service). Interim findings while they finish:
Root cause — confirmed
The stuck yellow is the BG-STALE zombie reap being event-driven only, with no time-based trigger. Chain for the window in your screenshot (terminal 3d24ce8e…, session 31eaea22…):
- Claude Code's Stop payload
background_tasks[] never marks idle teammates/forks as finished — that session's "running" agent list grew 18 → 33 over the day and never shrank (known upstream behaviour; the 900s idle reap was built for exactly this after the 2026-06-24 incident).
- At the session's final Stop (00:18:54 UTC),
.bgactive (last real agent activity) was 00:04:24 — 870s old, 30s short of the 900s stale threshold → _bg_hold_is_stale said "not stale" → HOLD working → yellow. Verified on disk: 3d24ce8e….agentbg mtime = that exact Stop; .bgactive untouched since.
- The reap runs only inside hook handlers (
Stop / SubagentStop / manual-compact SessionStart) in pane-map-hook.ts:1340 / :1281 / :1233. No prompt since → no hook event → nothing ever re-evaluates → yellow latched indefinitely. It self-heals only when you next type a prompt (next Stop sees >900s idle → green).
Terminal 1222248b yesterday proves the mechanism works when an event does arrive: GREEN: bg-agents idle >900s, stale-reaped (Stop) at 01:18.
Recurrence — matches "keeps happening to other windows"
Log history: 9 terminals ended their logged life stuck in a bg-tasks HOLD (Jun 22 → today), and 91 episodes where a HOLD sat >30 min before any next event arrived.
Fix direction (pending advisor input)
A periodic sweep in the always-running Electron main process: scan ~/.superset/agent-subagent-running/*.agentbg; where .bgactive is >900s stale, synthesize the green/blue turn-end — skipping terminals with live askq red-guard owners, live subagent run-dir markers, or an active codex-companion job. Key open question the advisors are validating: whether to host it in the JSONL watcher's existing poll loop and how to reuse notify.py's decision logic without a second drifting implementation.
Will report the consolidated fix design when Codex + the workflow return.