Files
hermes-agent/apps/shared
Austin Pickett 666b9f04c4 fix(shared): never dispatch a truncated reconnect replay tail
session.events.since reports truncated=true when the ring evicted events
between the client's watermark and its oldest retained seq. The client
ignored the flag and dispatched the retained tail as a gap-free replay,
painting responses missing their prefix, tool state or terminal event.

On truncation, skip the window up to the server's head without
dispatching it. The session's replay barrier still resolves true, so the
reconnect backstop's history read (#94779) resyncs from the stored
transcript; parked live frames newer than the head still dispatch.

Covers the client half of #100122; the server-side session-eviction
seq reset is #124587.
2026-10-01 09:36:23 -04:00
..