Repository navigation
Description
Bug type
Crash (process/app exits or hangs)
Beta release blocker
No
Summary
On macOS 26.5, the notarized macOS app (ai.openclaw.mac) launches, fully initializes, then auto-terminates ~0.5s later (clean exit 0) and never presents a menu-bar icon; reproduced on builds 2026.5.20 and 2026.5.28.
Steps to reproduce
- Install the official notarized release into
/Applications(verified:spctl -a -vvv= accepted, stapled,codesign --verify --deep --strictclean). - App configured
connectionMode = remoteagainst a self-hosted gateway over Tailscale; a separateopenclaw … run --host <gateway> --port 443 --tlsnode service (launchdai.openclaw.node) is also connected to the same gateway. open /Applications/OpenClaw.app- Observe the process exit within ~0.5s (
exit 0, no crash report) with no menu-bar icon.ps/ AppleScript confirm no GUI process remains.
Expected behavior
The menu-bar app stays resident and shows its status-bar icon after launch. Known-good reference on the same machine: a re-signed copy of 2026.5.20 stays resident with the identical config (see Additional details).
Actual behavior
The app initializes fully and then AppKit automatic termination fires ~0.5s in; the app exits cleanly (exit 0, no crash report). Unified-log trace (subsystem BEGINSWITH "ai.openclaw" OR process == "OpenClaw"):
[ai.openclaw:exec-approvals.socket] exec approvals socket listening
[ai.openclaw:audio.devices] audio device observer started
[ai.openclaw:tailscale] Tailscale app installed: true
[ai.openclaw:gateway.process] gateway stop requested
[ai.openclaw:portguard] port sweep starting (mode=remote)
[ai.openclaw:PeekabooBridge] PeekabooBridge host started at …/Application Support/OpenClaw/bridge.sock
[ai.openclaw:gateway] gateway connect auth=shared-token
[ai.openclaw:control] control channel refresh endpoint reason=endpoint changed
[ai.openclaw:control] control channel state -> connecting
[com.apple.AppKit:StatusBar] 0 terminating on removal
[com.apple.AppKit:AutomaticTermination] void _NSDisableAutomaticTerminationAndLog(NSString *) Terminating
[com.apple.AppKit:Window] window <NSStatusBarWindow> finishing close
[com.apple.CoreAnalytics:client] Entering exit handler → process exits
OpenClaw version
2026.5.28 (also reproduced on 2026.5.20)
Operating system
macOS 26.5 (Darwin 25.5.0), Apple Silicon (arm64)
Install method
Official notarized mac app (.app) copied into /Applications
Model
N/A — the app exits at launch before any agent/model is invoked.
Provider / routing chain
N/A — fails at app launch; the gateway control channel reaches connecting, then the app exits before any model/provider request is made.
Additional provider/model setup details
Not a model/provider issue — included for completeness and to ground the report:
spctl -a -vvv= accepted, stapled;codesign --verify --deep --strictclean. Not a Gatekeeper rejection.- Reproduced on both notarized 2026.5.20 and 2026.5.28.
…/Caches/ai.openclaw.mac/org.sparkle-project.Sparkle/InstallationandPersistentDownloadsare empty; clearing the Sparkle cache does not change the behavior (no staged update pending).- Booting out the
ai.openclaw.nodelaunchd service first does not change the behavior — the app still auto-terminates. - No
DYLD_INSERT_LIBRARIESset; no non-system, non-bundle dylib is loaded into the process. - Setting
NSStatusItem VisibleCC Item-0andopenclaw.showDockIconviadefaultshas no effect; the app re-writesNSStatusItem VisibleCC Item-0 = 0on each launch. - Data point (observed, not a diagnosis): a locally re-signed copy of 2026.5.20 — hardened runtime, with
com.apple.security.cs.disable-library-validationadded andSparkle.frameworkremoved during the re-sign — stays resident and shows the menu-bar icon with the identical~/.openclaw/openclaw.jsonand appdefaults. - Possibly related: [Bug]: Mac App and npm CLI both install same LaunchAgent label causing duplicate gateway processes #67631 (Mac app + npm CLI install the same LaunchAgent label) — this machine runs both the Mac app and the node-service LaunchAgent.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 1, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 4:58 AM ET / 08:58 UTC.
Summary
Keep open: current main and v2026.6.9 still carry the reported macOS remote-mode launch, status-item, PortGuardian, and control-channel path, and I found no proof that the notarized macOS 26 clean AppKit automatic-termination exit is fixed.
Reproducibility: no. high-confidence current-main reproduction is available. The reporter supplied detailed 2026.5.20 and 2026.5.28 logs, and current/v2026.6.9 source still matches the implicated launch, status-item, and remote-mode path, but latest notarized macOS 26 proof is missing.
Ways to help us reproduce this
Next step
Maintainer-run notarized macOS 26 remote-mode reproduction and signing/lifecycle diagnosis are needed before a safe fix PR can be scoped.
Review details
Best possible solution:
Keep this issue open until maintainers reproduce v2026.6.9 or current-main notarized macOS 26 remote-mode launch, then land a focused residency, status-item, signing, or packaging fix with release-package proof.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main reproduction is available. The reporter supplied detailed 2026.5.20 and 2026.5.28 logs, and current/v2026.6.9 source still matches the implicated launch, status-item, and remote-mode path, but latest notarized macOS 26 proof is missing.
Is this the best way to solve the issue?
Unclear: the adjacent duplicate status-item fix is plausible mitigation, but it is not proof of the best fix for a notarized clean AppKit automatic-termination exit. The safer path is live notarized reproduction followed by a focused lifecycle, signing, or packaging repair.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against e9b694ef9cd8.
Label changes
Label justifications:
P1: The issue reports a user-facing macOS companion app launch workflow that exits before the menu-bar UI remains available.impact:crash-loop: The affected app process terminates shortly after launch, leaving no resident menu-bar companion process.Evidence reviewed
What I checked:
AGENTS.md:11, e9b694ef9cd8)VISION.md:21, e9b694ef9cd8)docs/platforms/macos.md. (docs/platforms/macos.md:9, e9b694ef9cd8)apps/macos/Sources/OpenClaw/MenuBar.swift:57, e9b694ef9cd8)apps/macos/Sources/OpenClaw/MenuBar.swift:343, e9b694ef9cd8)apps/macos/Sources/OpenClaw/ConnectionModeCoordinator.swift:57, e9b694ef9cd8)Likely related people:
apps/macos/Sources/OpenClaw/MenuBar.swift,apps/macos/Sources/OpenClaw/ControlChannel.swift,apps/macos/Tests/OpenClawIPCTests/ControlChannelStateDebouncerTests.swift)apps/macos/Sources/OpenClaw/MenuBar.swift,apps/macos/Sources/OpenClaw/ConnectionModeCoordinator.swift,apps/macos/Sources/OpenClaw/ControlChannel.swift)apps/macos/Sources/OpenClaw/MenuBar.swift,apps/macos/Sources/OpenClaw/GatewayLaunchAgentManager.swift,apps/macos/Tests/OpenClawIPCTests/GatewayLaunchAgentManagerTests.swift)apps/macos/Sources/OpenClaw/MenuBar.swift,apps/macos/Sources/OpenClaw/ConnectionModeCoordinator.swift,apps/macos/Sources/OpenClaw/PortGuardian.swift)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.