Gateway restart causes duplicate expired session flushes
NousResearch/hermes-agent · cluster 2506 · gateway
Data as of
Nothing open on GitHub. Fix merged in #4481. Check it covers your case.
The short answer
- Known?
- Yes. 6 related items grouped here, 2 issues already closed.
- Fix event
- A fix was merged to main in PR #4481. 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 PRs address a bug where expired sessions are re-flushed on every gateway restart. Multiple fix approaches are represented, involving persisting flush state to prevent redundant operations.
Open issues0
Open PRs0
Fixes on record
-
#4481 fix(gateway): persist memory flush state to prevent redundant re-flushes on restart
files:
cli.py,gateway/run.py,gateway/session.py,hermes_cli/runtime_provider.py,run_agent.py,tests/gateway/test_async_memory_flush.py
3 PRs closed without merging
From the close comments: done elsewhere 3
-
#2510 fix(gateway): prevent re-flushing expired sessions on restart · done elsewhere →
#4481 -
#2527 fix(gateway): remove expired session entries after flush to prevent restart re-flushing · done elsewhere →
#2510,#4481 -
#3078 fix(gateway): persist flushed-session set to DB to prevent double flush on restart · done elsewhere →
#4481
Closed issues · 2
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.36: 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 LabAt a glance
- Subsystem
- gateway
- Merged PRs
- #4481
- Closed issues
- 2
- Attempts
- 3 PRs closed without merging
- Fix link checked
- 1 Apr 2026. This confirmation is old and may be out of date (a revert or reopen would not have invalidated it here); re-verify.