Module watchdog

Module watchdog 

Source
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.