Skip to content

fix(gateway): avoid hanging launchd restarts#33020

Open
lurenxiao1998 wants to merge 1 commit into
NousResearch:mainfrom
lurenxiao1998:fix-launchd-gateway-restart
Open

fix(gateway): avoid hanging launchd restarts#33020
lurenxiao1998 wants to merge 1 commit into
NousResearch:mainfrom
lurenxiao1998:fix-launchd-gateway-restart

Conversation

@lurenxiao1998

Copy link
Copy Markdown

Summary

  • Let macOS launchd own gateway process replacement via launchctl kickstart -k instead of manually terminating and waiting on gateway PIDs.
  • Update the launchd restart regression test to assert the CLI does not wait on stale or replacement gateway PIDs.

Test plan

  • venv/bin/python -m pytest tests/hermes_cli/test_gateway_service.py::TestLaunchdServiceRecovery tests/hermes_cli/test_gateway.py::TestWaitForGatewayExit -q
  • hermes gateway restart && hermes gateway status

Note: Running venv/bin/python -m pytest tests/hermes_cli/test_gateway_service.py tests/hermes_cli/test_gateway.py -q on macOS still reports pre-existing systemd user D-Bus preflight failures in systemd-specific tests.

Made with Cursor

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard comp/gateway Gateway runner, session dispatch, delivery labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants