fix(watchdog): don't treat idle footer's '· N shells' as active (default active_re)

The default active_re matched a bare middle-dot+number, which also matches the TUI idle footer's
'· 3 shells' / '· 1 shell still running'. Any background shell then read as ACTIVE, masking a genuine
idle from the stall detector — the agent hung at an empty/stranded prompt and never rebooted. Drop the
timer token; genuine activity is 'esc to interrupt'/'Running tool' plus the log-recently-touched grace.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UWTdUq2bsic7JZGqJp3nD6
This commit is contained in:
2026-07-07 20:02:05 +00:00
parent 234d6a054e
commit 997f73af1f

View File

@ -1262,7 +1262,7 @@ prompt_delivery = "arg"
process_name = "claude"
submit_key = "Enter"
stall_idle = 300
active_re = "esc to interrupt|Running tool|\\\\u00b7 \\\\d+"
active_re = "esc to interrupt|Running tool"
limit_re = "usage limit|limit reached|reached your .*limit"
[[agent]]