Skip to content

Harden macOS gateway service recovery - #13553

Closed
developer1-ckkccom wants to merge 1 commit into
NousResearch:mainfrom
developer1-ckkccom:fix/macos-gateway-service-hardening
Closed

developer1-ckkccom wants to merge 1 commit into
NousResearch:mainfrom
developer1-ckkccom:fix/macos-gateway-service-hardening

Conversation

@developer1-ckkccom

Copy link
Copy Markdown

Summary

  • harden macOS launchd_start() recovery by selecting the correct launchd domain for background sessions and re-bootstrapping unloaded jobs before kickstart
  • add hermes doctor guidance for macOS LaunchAgent installs under non-console users, which is the failure mode behind headless/service-account deployments
  • document the difference between macOS LaunchAgents and LaunchDaemons, including the recommended fallback for headless installs
  • make the Termux doctor path consistently treat Docker as unavailable instead of respecting ambient TERMINAL_ENV=docker

Testing

  • venv/bin/python -m pytest tests/hermes_cli/test_gateway_service.py tests/hermes_cli/test_update_gateway_restart.py tests/hermes_cli/test_doctor.py -q

Context

This packages the macOS gateway outage/recovery work after reproducing a broken launchd topology on a non-console account. The code fix handles unloaded jobs and background launchd domains; the doctor/docs changes make the unsupported service topology explicit instead of silently failing at runtime.

@developer1-ckkccom
developer1-ckkccom deleted the fix/macos-gateway-service-hardening branch April 21, 2026 14:10
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists labels Apr 21, 2026
@alt-glitch

Copy link
Copy Markdown
Contributor

Likely duplicate of #13560 — same macOS launchd recovery hardening work, #13560 is the open version.

@alt-glitch

Copy link
Copy Markdown
Contributor

Likely duplicate of #13560 — same macOS launchd recovery hardening work, #13560 is the open version.

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 duplicate This issue or pull request already exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants