Files
hermes-agent/gateway
kshitijk4poor c133095cc5 refactor(gateway): eviction and /stop share one interrupt-and-invalidate core
_hm_evict_running_agent copied the head of _interrupt_and_clear_session
(peek → sentinel check → request_hard_interrupt → invalidate), minus the
turn-process reaper the stop path spawns — so tool subprocesses of an
evicted turn were never reaped. Extract the sync core
(_interrupt_running_turn) and call it from both; the raising-interrupt
guard now protects /stop as well.
2026-09-12 12:03:39 +05:30
..