Skip to main content

Module scan

Module scan 

Source
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_subagents retries 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_STATUS ping, scoped to this pane’s own block id. No-op if self.broker was never wired (tests, or a SubagentWatcher built via bare new()) – see the broker field’s own doc comment in mod.rs. See docs/retro/retro-activity-dock-flicker-survives-debounce-fix-2026-08-24.md section 5.