Files
hermes-agent/agent
teknium1 ba135b366b fix(agent): stop the tool-activity heartbeat when the executor abandons its worker
A tool that wedges (e.g. a kernel process query that never returns) is now
abandoned by the executor deadline, but the heartbeat thread started on that
worker kept stamping "tool running: <name>" every 30 s for the rest of the run:
its stop_event is only set when the worker returns, which a wedged worker never
does. That pinned the inactivity watchdog's seconds_since_activity near zero, so
the second line of defense against a hung cron run could never fire — finding
(b) of #111922, still live after (a) landed in #112185.

The abandoning executor already raises the per-thread interrupt bit on the
worker (_interrupt_worker_tids, both sequential and concurrent paths), so the
heartbeat exits once its worker tid carries that bit. No new registry.

Part of #111922
2026-09-16 17:08:25 -07:00
..
…
…
…