Skip to content

fix(gateway): MacOS clarify launchctl GUI domain bootstrap failure#13795

Merged
vincentkoc merged 1 commit intoopenclaw:mainfrom
vincentkoc:vincentkoc-code/launchctl-install-domain-message-pr
Feb 19, 2026
Merged

fix(gateway): MacOS clarify launchctl GUI domain bootstrap failure#13795
vincentkoc merged 1 commit intoopenclaw:mainfrom
vincentkoc:vincentkoc-code/launchctl-install-domain-message-pr

Conversation

@vincentkoc
Copy link
Contributor

@vincentkoc vincentkoc commented Feb 11, 2026

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 doctor commands. This improves the mssaging and adds a targeted test for the domain-error path.

Greptile Overview

Greptile Summary

This change improves installLaunchAgent’s error reporting when launchctl bootstrap fails 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 launchctl on PATH to force the domain-error output and asserts the resulting guidance text is included in the thrown error.

Confidence Score: 4/5

  • This PR appears safe to merge; it adds targeted error messaging and a focused test without changing normal success paths.
  • The new logic is isolated to the launchctl bootstrap failure branch and only triggers on well-scoped substrings. The added test uses a PATH-stubbed launchctl consistent 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.
  • src/daemon/launchd.test.ts

Context used:

  • Context from dashboard - CLAUDE.md (source)
  • Context from dashboard - AGENTS.md (source)

@openclaw-barnacle openclaw-barnacle bot added the gateway Gateway runtime label Feb 11, 2026
@vincentkoc vincentkoc changed the title Gateway: clarify launchctl GUI domain bootstrap failure Gateway: MacOS clarify launchctl GUI domain bootstrap failure Feb 14, 2026
@vincentkoc vincentkoc changed the title Gateway: MacOS clarify launchctl GUI domain bootstrap failure fix(gateway): MacOS clarify launchctl GUI domain bootstrap failure Feb 16, 2026
@vincentkoc vincentkoc merged commit be7462a into openclaw:main Feb 19, 2026
25 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gateway install fails with launchctl bootstrap domain error LaunchAgent bootstrap fails on macOS Sequoia 15.2 (error 125)

1 participant

Comments