NousResearch/hermes-agent

SQLite WAL reader leak from finished threads

Cluster 75269. Data as of

Nothing open on GitHub. Fix merged in #83406. Check it covers your case.

The short answer

0open issues
0open PRs
5items grouped
Known?
Yes. 5 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #83406. 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 WAL read connections from finished worker threads accumulate without being reclaimed, potentially exhausting file descriptor limits. The work involves safely reaping, bounding, and reusing these connections at runtime rather than waiting until shutdown.

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.

  • #83406 fix(state,desktop,runtime): EMFILE cascade — bounded WAL read pool, orphan serve reap, nofile floor

    merged to main

    files: apps/desktop/electron/backend-child.ts, apps/desktop/electron/main.ts, apps/desktop/electron/windows-child-options.test.ts, cli-config.yaml.example, contributors/emails/[redacted:email], contributors/emails/[redacted:email], contributors/emails/[redacted:email], gateway/run.py, hermes_cli/config_defaults.py, hermes_cli/dashboard_procs.py, hermes_cli/gateway.py, hermes_cli/main.py, hermes_cli/resource_limits.py, hermes_cli/web_server.py, hermes_state.py, tests/hermes_cli/test_dashboard_admin_endpoints.py, tests/hermes_cli/test_gateway_service.py, tests/hermes_cli/test_orphan_desktop_serve_reap.py, tests/test_resource_limits.py, tests/test_session_db_read_conn_pool.py (+2 more)

3 PRs closed without merging

From the close comments: done elsewhere 3

  • #75322 fix(state): reap finished-thread WAL read connections at runtime (#75269) · done elsewhere → #83406, #76700
  • #75352 fix(state): safely reclaim finished-thread WAL readers · done elsewhere → #83406, #76700
  • #81082 fix(state): bound reusable SQLite WAL readers · done elsewhere → 87aedbe
Closed issues · 1
  • Closed#75269[Bug]: SessionDB retains WAL readers from finished worker threads until shutdown, exhausting RLIMIT_NOFILE
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.40: 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

Merged PRs
#83406
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
11 Aug 2026

For your agent

The same facts, typed.