# NousResearch/hermes-agent · Gateway stale-process sweep misidentifies launchd children

## Open now

- 1 issue, 1 PR open on GitHub.
- #105938: hermes update (macOS launchd): stale-process sweep force-kills the freshly restarted --external-supervisor gateway children as "manual gateways" (double restart, interrupted cron runs)
- PR #119646: fix(gateway): count a service job's gateway descendants as service PIDs (#105938)

These items address a bug where the gateway's stale-process sweep incorrectly targets supervised children of launchd wrappers and service job gateway descendants, causing unintended force-kills and disrupted restarts under macOS launchd.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.67`: 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.

## Open related issues

- #105938: hermes update (macOS launchd): stale-process sweep force-kills the freshly restarted --external-supervisor gateway children as "manual gateways" (double restart, interrupted cron runs)

## Prior & competing PRs

- **#106053: fix(gateway): exclude launchd wrappers' supervised children from stale-process sweep**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#66913`
- **#119646: fix(gateway): count a service job's gateway descendants as service PIDs (#105938)**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#66913`
  - files: `contributors/emails/[redacted:email]`, `hermes_cli/gateway.py`, `hermes_cli/gateway_service_pids.py`, `tests/hermes_cli/test_gateway_proc_fallback.py`, `tests/hermes_cli/test_update_launchd_fleet_restart.py`

## Fix status

- No merged fix on record.
- Subsystem: `hermes_cli`
