fix: repair stale packaged gateway entrypoint#625
Merged
artemgetmann merged 1 commit intoMay 8, 2026
Conversation
- what changed: make packaged gateway entrypoint repair independent from runtime-env ownership and cover stale source LaunchAgent regression - why: first app launch could attach to a healthy source-owned gateway and skip the packaged LaunchAgent repair - behavior/risk: replacement installs now reinstall the canonical gateway when ProgramArguments still point at old source code; targeted macOS launchd tests cover the path
artemgetmann
added a commit
that referenced
this pull request
May 8, 2026
- what changed: mark #625 and real Telegram behavioral proof in the consolidation plan and divergence tracker - why: stale docs still treated merged gateway repair work, Telegram proof, and Sparkle ownership as open in this lane - behavior/risk: docs-only; Sparkle/notarized rebuild stays explicitly owned by the separate release lane and GUI Channels-tab smoke remains unclaimed Co-authored-by: Codex <codex@openai.invalid>
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.
Review Fast Path
/Applications/OpenClaw.appover a source-ownedai.openclaw.gatewaynow repairs the LaunchAgent to the packaged runtime on first app launch.OpenClawGitCommit=fe05c860a8; stale source plist/Users/user/Programming_Projects/openclaw/dist/index.jsmigrated to/Applications/OpenClaw.app/Contents/Resources/OpenClawRuntime/openclaw/dist/index.js;/healthzreturned{"ok":true,"status":"live"}for 18 checks over 90s.SKIP_NOTARIZE=1and Gatekeeper correctly reportsUnnotarized Developer ID.Why This Matters
/healthzwas green, but the loaded service still ran old source code. That is fake success.Scope Boundary
Verification
swift test --filter GatewayProcessManagerTestsswift test --filter GatewayLaunchAgentManagerTestsgit diff --checkSKIP_NOTARIZE=1 ALLOW_DEFAULT_SPARKLE_KEY_FOR_CONSUMER_SMOKE=1 bash scripts/package-openclaw-mac-dist.shdist/OpenClaw.app/Contents/Info.plistOpenClawGitCommit=fe05c860a8OpenClawRuntime/manifest.jsongitCommit=fe05c860a8,nodeVersion=22.22.1,uvVersion=0.9.21codesign --verify --deep --strict --verbose=2 dist/OpenClaw.apppassedhdiutil verify dist/OpenClaw.dmgvalid checksumProgramArguments[1]=/Users/user/Programming_Projects/openclaw/dist/index.jsdist/OpenClaw.dmgand launched/Applications/OpenClaw.appProgramArguments[1]=/Applications/OpenClaw.app/Contents/Resources/OpenClawRuntime/openclaw/dist/index.js/Applications/OpenClaw.app/Contents/Resources/OpenClawRuntime/openclaw/dist/index.js, state runningCould not find service "ai.openclaw.gateway-watchdog" in domain for user gui: 501/healthzreturned{"ok":true,"status":"live"}for 18 checks over 90sAI Assistance