# NousResearch/hermes-agent · Gateway thread and file descriptor growth reclamation

## Open now

- Nothing open on GitHub.

These members all concern the gateway accumulating threads (and, in one case, file descriptors) over time, including memory-provider threads tied to agent-cache churn and lingering daemon or background workers. They describe proposed or discussed reclamation of these resources at runtime; the titles alone do not show whether any change was completed or is effective.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #137156. Verify it addresses your case.
- **Recommended:** read PR #137156 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-137156`. 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.

## Closed / duplicate issues

- #128969: perf(gateway): daemon threads accumulate without runtime reclamation — only restart clears them

## Prior & competing PRs

- **#137156: Gateway: stop memory-provider threads and fds from growing with agent-cache churn (salvage #126359, #131357)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `acp_adapter/commands.py`, `acp_adapter/server.py`, `agent/agent_init.py`, `agent/memory_manager.py`, `agent/memory_manager_tools.py`, `agent/system_prompt.py`, `gateway/run_shutdown.py`, `run_agent.py`, `tests/agent/test_builtin_memory_disabled_surface.py`, `tests/agent/test_memory_provider.py`, `tests/agent/test_memory_stalled_background_call.py`, `tests/gateway/test_agent_cache_memory_lifecycle.py`, `tools/mcp_tool_agent.py`
- **#130979: perf(gateway): reclaim completed background threads and lingering workers (#128969)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

- Merged to main in PR #137156 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-19`.
- Subsystem: `agent`
