Files
hermes-agent/apps/shared
Teknium a4593d8d6d fix(shared): forget a session's replay epoch with the cursor it numbers
JsonRpcGatewayClient kept replayEpochBySession forever: an entry was
added for every session whose events carried a replay_epoch and never
removed, even when the authority answered `snapshot_required` and the
client dropped that session's cursor. A long-lived Desktop or TUI
socket that cycles through many sessions (Bot Chats, cron, sidebar
browsing) accumulated one entry per session ever observed.

The per-session epoch only qualifies its lastSeenSeq cursor, so the
snapshot_required path now drops both together; the re-resumed
session's next live frame re-establishes them. The process-epoch reset
already keyed its "keep canonical cursors" rule on this map, which is
unchanged for sessions that still hold a cursor.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5462648005
2026-10-08 19:09:48 -07:00
..