Desktop app orphaned backend process cleanup

NousResearch/hermes-agent · cluster 58619 · apps/desktop

Data as of

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

The short answer

0open issues
0open PRs
9items grouped
Known?
Yes. 9 related items grouped here, 3 issues 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.

A cluster of bug reports and fixes addressing the desktop app's failure to terminate old or orphaned backend/serve processes on reconnection, restart, or quit. Multiple fixes were made to reap stale processes and prevent unbounded accumulation.

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)

5 PRs closed without merging

From the close comments: done elsewhere 2 · stale or abandoned 1 · other 2

  • #58624 fix(desktop): reap dying pool backends before spawning replacements · other → c071712, 768e5c2, #58619
  • #59066 fix(desktop): kill orphaned backend before spawning replacement · stale or abandoned
  • #61364 fix(serve): exit desktop backend when its parent process dies · done elsewhere → #83406, #73066
  • #67408 fix(desktop): reap stale profile backends on spawn (#67026) · other → #67026
  • #75500 fix(desktop): retain SSH backend ownership across launcher replacement · done elsewhere → #75500
Closed issues · 3
  • Closed#58619[Bug]: Hermes Desktop spawns unbounded serve processes on reconnection — old processes not cleaned up
  • Closed#61349[Bug]: Desktop app leaves orphaned processes after quit (macOS, ~330MB each)
  • Closed#67026[Bug]: Desktop app accumulates zombie profile serve processes on restart — 47 orphan processes found
How this cluster was grouped
  • Link evidence (partly structural links): 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.19: 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

Subsystem
apps/desktop
Merged PRs
#83406
Closed issues
3
Attempts
5 PRs closed without merging
Fix link checked
11 Aug 2026

For your agent

The same facts, typed.