# NousResearch/hermes-agent · Hindsight plugin aiohttp connection leak fixes

## Open now

- Nothing open on GitHub.

Multiple issues and fixes addressing aiohttp ClientSession and connector leaks in the Hindsight plugin, including retry behavior, shutdown cleanup, and event loop handling. The fixes span several iterations as the leak persisted across attempts.

## TL;DR

- 5 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #119888. Verify it addresses your case.
- **Recommended:** read PR #119888 (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: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.34`: 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

- #11923: \[Bug\]: Hindsight still leaks aiohttp ClientSession/connector after fix #4762
- #45676: Hindsight plugin aiohttp connection leak causes Desktop "session not found"

## Prior & competing PRs

- **#119888: hindsight moves to the plugin catalog (auto-migrated on first start / hermes update)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `.github/workflows/tests-os.yml`, `.github/workflows/tests.yml`, `COMPAT_MANIFEST.md`, `CONTRIBUTING.es.md`, `CONTRIBUTING.md`, `Dockerfile`, `compat_manifest.json`, `hermes_cli/config_defaults.py`, `hermes_cli/memory_setup.py`, `hermes_cli/subcommands/memory.py`, `hermes_cli/tips.py`, `hermes_cli/update_cmd.py`, `hermes_cli/web_server_memory.py`, `nix/checks.nix`, `nix/hermes-agent.nix`, `nix/moduleCommon.nix`, `nix/packages.nix`, `plugins/AGENTS.md`, `plugins/memory/__init__.py`, `plugins/memory/hindsight/README.md` (+30 more)
- **#14109: fix(hindsight): preserve shared event loop across provider shutdowns**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#45693: fix(hindsight): close aiohttp client on retry to prevent connection leak**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `9d799e0531c`, `4cbf862abe4`, `dc75038866a3966b5bf5c82ff57c7a758bb4070a`, `4c3e5cf2d9d`, `9d799e0531c`, `#119888`, `#119888`

## Fix status

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