# NousResearch/hermes-agent · launchd gateway label and drain cap fixes

## Open now

- Nothing open on GitHub.

These items address bugs where the launchd drain cap was not applying because the gateway child process could not correctly resolve its launchd job label, along with related gateway installation and API fixes.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #120087. Verify it addresses your case.
- **Recommended:** read PR #120087 (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: `resolved` · deciding PR(s): `pr-120087`. 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.

## Closed / duplicate issues

- #119598: launchd drain cap never applies: gateway child sees XPC_SERVICE_NAME=0

## Prior & competing PRs

- **#120087: gateway: launchd install honours --no-start-now, drain cap sees the launchd label, /api/status ports match owned platforms, dashboard shows server error detail, email pairing/decline reach the gateway (#119948 #119598 #119918 #119991 #119923; salvage #119949 #119607 #119920 #119992 #119924)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/control_socket.py`, `gateway/restart.py`, `hermes_cli/gateway.py`, `hermes_cli/gateway_launchd.py`, `hermes_cli/gateway_setup_wizard.py`, `hermes_cli/stderr_timestamp.py`, `hermes_cli/web_server_gateway.py`, `plugins/platforms/email/adapter.py`, `tests/gateway/test_adapter_authz_secret_scope.py`, `tests/gateway/test_email.py`, `tests/gateway/test_email_secret_scope.py`, `tests/gateway/test_launchd_exit_timeout_drain_cap.py`, `tests/hermes_cli/test_launchd_install_start_now.py`, `tests/hermes_cli/test_stderr_timestamp.py`, `tests/hermes_cli/test_web_server_gateway_topology.py`, `web/src/lib/api-error.test.ts`, `web/src/lib/api-error.ts`, `website/docs/user-guide/messaging/email.md`, `website/docs/user-guide/messaging/index.md`
- **#119607: fix(gateway): resolve the launchd drain cap's job label through the wrapper**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `2e84e39393`, `#120087`

## Fix status

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