Expand description
Agent process watchdog: kills agent panes that exceed max-runtime or idle-output limits.
Runs every 60 seconds and inspects every running ShellController that has
is_agent_pane = true. Two independent kill conditions:
A) term:agentmaxruntimehours โ wall-clock runtime since spawn (0 = disabled)
B) term:agentidletimeoutmins โ minutes since last PTY byte (0 = disabled)
Both limits default to 0 (disabled) so the watchdog is opt-in.
Constantsยง
- WATCHDOG_
INTERVAL_ ๐SECS - Check interval for the watchdog loop.
Functionsยง
- run_
watchdog_ loop - Run the agent watchdog loop. Never returns.