fix(launchd): fallback to 'load -w' when 'bootstrap' fails with exit 5#11368
Open
asdzxc252 wants to merge 2 commits into
Open
fix(launchd): fallback to 'load -w' when 'bootstrap' fails with exit 5#11368asdzxc252 wants to merge 2 commits into
asdzxc252 wants to merge 2 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11323