Expand description
Session/directory backfill scanning and stale-subagent reconciliation:
scan_session_subagents (pane-reopen backfill entry point),
reconcile_stale_subagents (Active -> Abandoned correction once a
parent’s turn is confirmed idle), broadcast_subagents_abandoned, and
scan_subagents_dir (the capped cold-backfill file walk).
Constants§
- MAX_
RECONCILE_ 🔒RETRIES - How many times
reconcile_stale_subagentsretries when the parent block’s controller isn’t registered yet, before giving up and leaving the entries as-is. See that function’s own doc comment (2026-09-02 update) for why a single 2s attempt proved too short in practice —MAX_RECONCILE_RETRIES * RECONCILE_RETRY_INTERVAL_MS(~15s) is a realistic bound for a real controller to finish spawning under load, while still failing open rather than chasing a block forever. - RECONCILE_
RETRY_ 🔒INTERVAL_ MS
Functions§
- publish_
backfill_ 🔒status - Publish a
mps::EVENT_SUBAGENT_BACKFILL_STATUSping, scoped to this pane’s own block id. No-op ifself.brokerwas never wired (tests, or aSubagentWatcherbuilt via barenew()) – see thebrokerfield’s own doc comment inmod.rs. See docs/retro/retro-activity-dock-flicker-survives-debounce-fix-2026-08-24.md section 5.