Commit 315ca31
fix: reset idle timer on stderr activity, not just stdout
The idle timer was only resetting on stdout (user-facing results). The
agent-runner logs all activity — tool calls, task notifications, SDK messages
— to stderr. This meant the idle timer tracked 'time since last result sent'
rather than 'time since any agent activity', causing false stall timeouts
during legitimate long-running work like Task sub-agent research.
Now any stderr output resets the idle timer. The absolute timeout (45min)
remains as the hard ceiling. A genuine stall (frozen process, hung MCP server)
still produces no stderr and is correctly caught by the idle timeout.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 71a1fc9 commit 315ca31
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
| |||
0 commit comments