fix(gateway): MacOS clarify launchctl GUI domain bootstrap failure#13795
Merged
vincentkoc merged 1 commit intoopenclaw:mainfrom Feb 19, 2026
Merged
Conversation
This was referenced Feb 11, 2026
bfc1ccb to
f92900f
Compare
anschmieg
pushed a commit
to anschmieg/openclaw
that referenced
this pull request
Feb 19, 2026
yneth-ray-openclaw
pushed a commit
to yneth-ray-openclaw/openclaw
that referenced
this pull request
Feb 19, 2026
vignesh07
pushed a commit
to pahdo/openclaw
that referenced
this pull request
Feb 20, 2026
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.
Summary
Detect launchctl bootstrap domain errors ("Domain does not support specified action" / code 125) and show actionable install guidance. This clarifies that LaunchAgent install needs a logged-in GUI session and often fails under SSH/headless or wrong-user contexts.
Current baseline implementation has no clear guidance for users and is often quite confusing in
openclaw doctorcommands. This improves the mssaging and adds a targeted test for the domain-error path.lobster-biscuit
Greptile Overview
Greptile Summary
This change improves
installLaunchAgent’s error reporting whenlaunchctl bootstrapfails due to an unsupported GUI domain (e.g., headless/SSH sessions or wrong-user contexts), by detecting the specific launchctl failure text/code and throwing a more actionable message with next steps.It also adds a focused unit test that stubs
launchctlonPATHto force the domain-error output and asserts the resulting guidance text is included in the thrown error.Confidence Score: 4/5
launchctl bootstrapfailure branch and only triggers on well-scoped substrings. The added test uses a PATH-stubbedlaunchctlconsistent with existing patterns in this test file. I couldn’t execute the test suite in this environment (no node/pnpm available), so confidence is slightly reduced.Context used:
dashboard- CLAUDE.md (source)dashboard- AGENTS.md (source)