Repository navigation
fix(macos): preserve gateway auth config writes - #75953
Merged
BunsDev merged 1 commit intoMay 2, 2026
Merged
Conversation
BunsDev
force-pushed
the
meow/preserve-dashboard-auth-config
branch
from
May 2, 2026 04:42
cb75f04 to
d7fa1eb
Compare
Contributor
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(macos): preserve gateway auth config writes This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
This was referenced May 2, 2026
Closed
This was referenced Oct 29, 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
gateway.author unrelated config keys.1012 service restart.gateway.authby default, and the Tailscale auth editor opts into explicit auth mutation.config.patchor change Gateway RPC semantics.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
gateway.authbefore writing.config.set/config.patchpaths have stronger base-hash protections than the local macOS fallback path.Regression Test Plan (if applicable)
apps/macos/Tests/OpenClawIPCTests/OpenClawConfigFileTests.swiftgateway.authand unrelated config keys unless the caller explicitly edits auth.User-visible / Behavior Changes
macOS/dashboard settings writes preserve persisted Gateway auth and unrelated config by default, reducing surprise disconnect/auth drift after settings changes.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) YesYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: this hardens persisted token/auth handling by preserving existinggateway.authunless a caller explicitly opts into auth mutation.Repro + Verification
Environment
apps/macosOPENCLAW_STATE_DIRandOPENCLAW_CONFIG_PATHSteps
openclaw.jsoncontaininggateway.authand unrelated config.Expected
gateway.authis still present.Actual
Evidence
Human Verification (required)
What I personally verified (not just CI), and how:
swift test --package-path apps/macos --filter OpenClawIPCTests.OpenClawConfigFileTestsswift test --package-path apps/macos --filter OpenClawIPCTests.ConfigStoreTestsnode scripts/check-changed.mjs CHANGELOG.md apps/macos/Sources/OpenClaw/ConfigStore.swift apps/macos/Sources/OpenClaw/OpenClawConfigFile.swift apps/macos/Sources/OpenClaw/TailscaleIntegrationSection.swift apps/macos/Tests/OpenClawIPCTests/OpenClawConfigFileTests.swiftgit diff --check origin/main..HEADReview Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations
gateway.authby omission.allowGatewayAuthMutation: true; the known auth editor path does so.