Skip to content

fix(launchd): fallback to 'load -w' when 'bootstrap' fails with exit 5#11368

Open
asdzxc252 wants to merge 2 commits into
NousResearch:mainfrom
asdzxc252:fix/launchd-v2
Open

fix(launchd): fallback to 'load -w' when 'bootstrap' fails with exit 5#11368
asdzxc252 wants to merge 2 commits into
NousResearch:mainfrom
asdzxc252:fix/launchd-v2

Conversation

@asdzxc252

Copy link
Copy Markdown

Fixes #11323

asdzxc252 added 2 commits April 17, 2026 11:20
- Filter api_disabled against CLI-enabled toolsets before appending
  the 'missing API keys' summary issue, so disabled/default-off
  toolsets (e.g. 'rl') no longer cause false-positive warnings.
- Fix: unavailable entries use 'env_vars' as the key, not
  'missing_vars' (the fallback already handled it, but clarify intent).
- Add regression tests for the three scenarios:
  disabled-only, enabled-only, and mixed enabled+disabled.
On newer macOS versions, 'launchctl bootstrap' can fail with exit
status 5 (Input/output error) even when the plist is valid.
Wrap the three bootstrap calls that use check=True with a try/except
that falls back to 'launchctl load -w <plist>', which is more
reliable on macOS 15+.

Fixes NousResearch#11323
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery labels Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

[Bug]: hermes gateway start/install fails on macOS with launchctl bootstrap exit status 5 (Input/output error)

2 participants