Files
junction/tests
Hermes Agent e6db2f61af junction: heartbeats while the model thinks, not just while it queues
A streaming caller already heard ': junction: waiting for a free slot' while queued.
Once it had a slot and the upstream went quiet, the stream was silent again — the
silence a proxy with a 60 s read timeout kills. Every 10 s of upstream silence now
produces ': junction: model is still working (Ns)'; the reader's poll is woken by the
connection's heartbeat_s instead of waiting out idle_timeout.

Bounded by queue_timeout and timeout (a streamer then gets an error event + [DONE]),
and a failed comment write means the client is gone, so the router stops waiting.

tests: a stub that thinks 13 s proves heartbeats appear, the answer still arrives, and
a non-streaming caller still receives nothing injected. 49 checks PASS.
2026-10-29 15:26:44 +00:00
..