Desktop gateway orphan cleanup and reaping fixes

NousResearch/hermes-agent · cluster 77276

Data as of

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

The short answer

0open issues
0open PRs
7items grouped
Known?
Yes. 7 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 resolved, deciding PR #83542. That is separate from the fix event.
Still open
Nothing open on GitHub.

Multiple fixes addressing orphaned gateway processes left behind during Desktop app restarts and shutdowns. Changes cover startup reaping, backend shutdown cleanup, and related EMFILE/ulimit follow-ups.

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)

  • #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

4 PRs closed without merging

From the close comments: merged via another change 4

  • #77297 fix(desktop): stop app-managed gateway on backend shutdown · merged via another change → #83542, #83406
  • #77721 fix(gateway): reap orphaned gateways before spawning restart (#77276) · merged via another change → #83542, #83406
  • #78002 fix(desktop): reap stale gateway orphans on Desktop backend startup · merged via another change → #78312, #83406, #83542
  • #78312 fix(desktop): reap orphan gateways at startup · merged via another change → #83406, #76700, #77587, #73066, #78873, #78312
Closed issues · 1
  • Closed#77276[Bug]: Desktop app restart leaves orphan gateway (app-managed spawn path not covered by #75936 fix)
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.29: 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
4 PRs closed without merging
Fix link checked
11 Aug 2026

For your agent

The same facts, typed.