Repository navigation
fix(mac): keep node service aligned with the latest connection mode - #127732
Merged
steipete merged 1 commit intoAug 22, 2026
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
steipete
deleted the
codex/mac-node-service-operation-ownership-20260821
branch
August 22, 2026 01:17
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 22, 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.
What Problem This Solves
Fixes an issue where macOS users who switch between local and remote Gateway modes, or receive an app update during a mode change, can end up with the Mac node service running in local mode or stopped in remote mode. An older node start, stop, or update-triggered restart can finish after the newer requested action and silently leave the persistent service in the wrong state.
Why This Change Was Made
Connection-mode generation guards protect their callers after each await, but cannot undo an already launched independent service-management subprocess. Make the node-service owner serialize all three mutating operations through one predecessor-task lifecycle actor, matching existing native coordinator patterns. Fold the previously duplicated action execution, timeout, error, and profile policy into that owner. Read-only status polling remains independent; production decreases by one line.
User Impact
The Mac node now ends in the state requested by the latest local/remote mode transition or app update, even when a previous service command is slow. Named-profile behavior, existing action-specific timeouts, not-loaded handling, and status checks remain unchanged.
Evidence
NodeServiceManagerTests,ConnectionModeCoordinatorTests,GatewayProcessManagerTests,GatewayEndpointStoreTests,DashboardWindowSmokeTests, andMenuContentSmokeTests; the three real fake-CLI subprocess orderings all end in the correct state.launchdservice is touched. Native dashboard smoke tests additionally exercise actual macOS windows.git diff --check, and independent Codex review all pass. Production: +29/-30 (net -1); tests: +74/-0.