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

0open issues
0open PRs
10items grouped
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

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #73331 fix(gateway): flush pending messages to disk before shutdown clear (#72680)

    merged to main

    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

    merged to main

    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

    merged to main

    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)

    merged to main

    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.00 means 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

At a glance

Subsystem
gateway
Merged PRs
#73331, #82633, #82718, #82719
Closed issues
1
Attempts
5 PRs closed without merging
Fix link checked
9 Aug 2026

For your agent

The same facts, typed.