Files
hermes-agent/tests
Ben Barclay 4bb139921f fix(tui_gateway): keep a detached session alive while it owns an active /loop or /heartbeat
The per-session notification poller is the only driver of a Desktop/TUI
(route-less) /loop or /heartbeat. When the client disconnects, the WS-orphan
reaper collects the idle session ~20s later and the TTL/LRU reapers can
collect it after that; either stops the poller, so the schedule freezes
(status still 'active') until a client reattaches and the overdue tick fires.

Treat an active, non-gateway-routed loop or heartbeat like live delegated
work: the orphan reap re-arms instead of popping the session, and the TTL and
session-cap reapers skip it. Gateway-routed schedules are fired by the
gateway's own scanner and do not pin the session. The exemption is bounded by
the loop's tick budget and ends on stop/pause. Memory-trim quiescence is
unchanged: an idle looping session does not block a trim.
2026-10-09 09:35:31 -04:00
..
2026-10-08 21:35:58 +02:00
2026-10-08 21:35:58 +02:00
2026-10-08 21:35:58 +02:00
2026-10-08 21:35:58 +02:00
2026-10-08 21:35:58 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 21:35:58 +02:00
…