NousResearch/hermes-agent

Fix file-descriptor leaks and EMFILE errors on macOS

Cluster 81547. Data as of

Nothing open on GitHub. Fix merged in #83542 on 11 Aug 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #83542. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #83542. That is separate from the fix event.
Still open
Nothing open on GitHub.

These items address 'too many open files' errors appearing after extended runtime on macOS, covering fd limit increases, scandir replacements for iterdir, gateway process cleanup, and SSH ulimit adjustments.

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/[email protected], 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)

  • #83542 fix(gateway,desktop,dashboard): EMFILE follow-up — restart-path gateway reap, shutdown cleanup, SSH ulimit, scandir

    merged to main

    files: apps/desktop/electron/remote-lifecycle.test.ts, apps/desktop/electron/remote-lifecycle.ts, contributors/emails/[redacted:email], contributors/emails/[redacted:email], hermes_cli/web_server.py, tests/hermes_cli/test_dashboard_admin_endpoints.py, tests/hermes_cli/test_spawn_gateway_restart_reap.py

1 PR closed without merging

From the close comments: merged via another change 1

  • #81619 fix(dashboard): raise fd soft limit + replace iterdir with scandir to stop fd leak · merged via another change → #83542, #83406
Closed issues · 1
  • Closed#81547dashboard fd leak: OSError [Errno 24] Too many open files after several days on macOS
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.50: 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, #83542
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
11 Aug 2026

For your agent

The same facts, typed.