You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixes
Dual agent timeout replaces the old single 30-min timer:
Idle timeout (10 min default, `AGENT_IDLE_TIMEOUT` env var): reset on any stdout activity. An agent that produces no output for 10 minutes is considered stuck and killed. This catches the "hung waiting on API" case that was causing 30-40 min hangs.
Absolute ceiling (45 min default, `AGENT_ABSOLUTE_TIMEOUT` env var): never resets, regardless of any activity. Hard cap for runaway agents producing garbage output.
Both timeouts log their reason (`idle` vs `absolute`) to make post-mortems easier.
Timeout always resolves as error (even with partial streaming output) so callers get the correct signal.
One-shot kill guard prevents double-fire if both timers trigger simultaneously.