Preserve pending messages during shutdown or FTS failure
NousResearch/hermes-agent · cluster 72680 · gateway
Data as of
Nothing open on GitHub. Fix merged in #73331. Check it covers your case.
The short answer
- Known?
- Yes. 10 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #73331. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
unresolved. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and pull requests address data loss scenarios where pending or in-flight messages are discarded during shutdown or when full-text search corruption occurs. The work focuses on persisting or retaining unrecoverable messages before clearing internal buffers.
Open issues0
Open PRs0
Fixes on record
-
#73331 fix(gateway): flush pending messages to disk before shutdown clear (#72680)
files:
gateway/platforms/base.py,gateway/run.py,gateway/shutdown_flush.py,tests/gateway/test_shutdown_flush.py -
#82633 fix(gateway): make session identity durable so chat continuity survives crashes and restarts
files:
gateway/session.py,hermes_state.py,tests/gateway/test_session_continuity_82616.py -
#82718 fix(gateway): spool pending-queue overflow to disk instead of dropping messages
files:
gateway/session.py,gateway/shutdown_flush.py,tests/gateway/test_pending_queue_spool.py -
#82719 fix(state): keep canonical writes available when FTS is corrupt (#78182)
files:
hermes_state.py,hermes_state_common.py,hermes_state_schema.py,hermes_state_search.py,tests/state/test_fts_runtime_rebuild.py
5 PRs closed without merging
From the close comments: closed without comment 2 · merged via another change 2 · other 1
- #72704 fix(gateway): persist transcript retries across restarts · closed without comment
-
#72732 fix(state): keep canonical writes available when FTS is corrupt · merged via another change →
#82719,#78182,#82633,#82718 -
#73020 fix(gateway): flush pending messages to disk before shutdown clear (#72680) · merged via another change →
#73331 - #73171 Fix #72680: preserve unpersisted pending messages before shutdown clear (data loss) · other
- #73400 Fix #72680 (retargeted per #73171 review): preserve agent._session_messages on shutdown flush failure · closed without comment
Closed issues · 1
- Closed#72680[Bug] Gateway _pending_messages.clear() discards unrecoverable messages on shutdown - FTS corruption data loss
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.20: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the Lab