# NousResearch/hermes-agent · Gateway cache eviction leaving memory providers running

## Open now

- 1 issue, 1 PR open on GitHub.
- #64278: \[Bug\]: Gateway soft agent-cache eviction leaves memory providers running and leaks threads/HTTP clients
- PR #64284: fix: clean up evicted memory providers (salvage of #63703 + review fixes)

The three members all concern memory providers in the gateway not being shut down or cleaned up when an agent is softly evicted from the cache. One is a bug report mentioning leaked threads and HTTP clients, and the other two are fix or salvage pull requests addressing it.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member 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.

## Open related issues

- #64278: \[Bug\]: Gateway soft agent-cache eviction leaves memory providers running and leaks threads/HTTP clients

## Prior & competing PRs

- **#64284: fix: clean up evicted memory providers (salvage of #63703 + review fixes)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `gateway/run.py`, `plugins/memory/__init__.py`, `plugins/memory/hindsight/__init__.py`, `run_agent.py`, `tests/agent/test_memory_provider.py`, `tests/gateway/test_agent_cache.py`, `tests/plugins/memory/test_hindsight_provider.py`, `tests/run_agent/test_shutdown_memory_provider_finalize_session.py`
- **#64644: fix(gateway): shut down memory provider on soft cache eviction (#64278)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#64284`, `#64278`, `#64644`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
