# NousResearch/hermes-agent · SSH child process cleanup on bot/profile delete

## Open now

- Nothing open on GitHub.

These items address a bug where deleting bots or profiles on desktop was not properly terminating local SSH child processes, causing process accumulation and resource leaks. The work involves fixes for killing child processes and handling a related spawn/deletion race condition.

## TL;DR

- 4 member(s): 0 open issue(s), 1 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 #118246. Verify it addresses your case.
- **Recommended:** read PR #118246 (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_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: 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

- #94959: \[Bug\]: Bots/Profiles not properly terminated on delete — python.exe process accumulation (memory/CPU leak)

## Prior & competing PRs

- **#118246: Desktop no longer starts a backend per profile: one host backend serves them all**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/electron/connection-config.test.ts`, `apps/desktop/electron/connection-config.ts`, `apps/desktop/electron/host-backend-singleton.test.ts`, `apps/desktop/electron/host-backend-singleton.ts`, `apps/desktop/electron/main.ts`, `apps/desktop/src/api/sessions.test.ts`, `apps/desktop/src/api/sessions.ts`, `apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx`, `apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts`
- **#95000: fix(desktop): tree-kill local ssh child on bot/profile delete (#94959)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
- **#95041: fix(desktop): close profile spawn deletion race**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `2fa2f42d41`, `e924615bb1`, `58eb248d08`, `#118246`

## Fix status

- Merged to main in PR #118246 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-21`.
