Repository navigation
feat(macos): OpenClaw ID primary connection + dashboard proxy - #197585
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
jalehman
force-pushed
the
feat/ocid-mac-ocid-connection
branch
from
November 12, 2026 06:12
b9889c5 to
92649f3
Compare
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
jalehman
force-pushed
the
openclaw-e3b/macos-live-ocid
branch
from
November 12, 2026 08:13
1ac9f29 to
d7ca1ae
Compare
jalehman
force-pushed
the
feat/ocid-mac-ocid-connection
branch
from
November 12, 2026 08:14
92649f3 to
b64a0ad
Compare
jalehman
force-pushed
the
openclaw-e3b/macos-live-ocid
branch
from
November 12, 2026 09:17
d7ca1ae to
4c31d47
Compare
jalehman
force-pushed
the
feat/ocid-mac-ocid-connection
branch
from
November 12, 2026 10:01
b64a0ad to
989fb2e
Compare
2 of 18 tasks
jalehman
force-pushed
the
openclaw-e3b/macos-live-ocid
branch
from
November 12, 2026 11:45
4c31d47 to
08cb4a1
Compare
jalehman
force-pushed
the
feat/ocid-mac-ocid-connection
branch
5 times, most recently
from
November 12, 2026 13:45
44f9a99 to
cdd5423
Compare
…d dashboard proxy The primary Gateway connection to a claw named by this Mac's OpenClaw ID enrollment now runs over that enrollment's in-process owner or member key, and never carries saved Gateway tokens or passwords. The dashboard reaches the claw through a loopback proxy gated by exact Host, Origin and a per-launch cookie kept in its own nonpersistent store. Join completion closes setup before switching the primary, a joined claw skips AI setup, pairing polls and the post-update wake follow advertised scopes, and a superseded dashboard open reads as reconnecting.
…ingress auth Dashboard construction resolved a joined claw through the saved config shortcut, so its route never matched the tunnel endpoint. Ingress issues no device token, so the dashboard's signed challenge now carries no credential for remote-ingress, and the proxied Control UI always dials the Gateway root.
jalehman
force-pushed
the
feat/ocid-mac-ocid-connection
branch
from
November 12, 2026 14:29
cdd5423 to
8ea6a69
Compare
jalehman
marked this pull request as ready for review
November 13, 2026 20:48
Resolve the published proxy for ready-state notifications, which omit the native session marker. Keep its URL and cookie together and await installation in the isolated WebKit store before navigation. Refs: openclaw-cba.1
jalehman
enabled auto-merge (squash)
November 13, 2026 21:27
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 14, 2026
…aw#197585) * feat(macos): connect to an OpenClaw ID claw over a human-key route and dashboard proxy The primary Gateway connection to a claw named by this Mac's OpenClaw ID enrollment now runs over that enrollment's in-process owner or member key, and never carries saved Gateway tokens or passwords. The dashboard reaches the claw through a loopback proxy gated by exact Host, Origin and a per-launch cookie kept in its own nonpersistent store. Join completion closes setup before switching the primary, a joined claw skips AI setup, pairing polls and the post-update wake follow advertised scopes, and a superseded dashboard open reads as reconnecting. * fix(macos): open the OpenClaw ID dashboard on the tunnel's route and ingress auth Dashboard construction resolved a joined claw through the saved config shortcut, so its route never matched the tunnel endpoint. Ingress issues no device token, so the dashboard's signed challenge now carries no credential for remote-ingress, and the proxied Control UI always dials the Gateway root. * style(macos): keep the OpenClaw ID route within Swift lint limits * style(macos): keep the dashboard manager within the file length limit * fix(macos): drop the OpenClaw ID dashboard proxy's unused logger * fix(macos): prepare operator cookies on dashboard reconnect Resolve the published proxy for ready-state notifications, which omit the native session marker. Keep its URL and cookie together and await installation in the isolated WebKit store before navigation. Refs: openclaw-cba.1
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
Lets the macOS app use OpenClaw ID as its primary connection to a claw, with the dashboard served through an app-owned loopback proxy. This is the base for the sign-in-first Mac enrollment PRs. It extracts the reusable parts of draft #197421 and keys them to a generic in-process OpenClaw ID human peer key, owner or member, plus a claw hostname. A future enrollment owner supplies both through
MacOpenClawIDOperatorRoute.shared.enrollment. Nothing on this branch sets it yet, so the route stays inert until the stacked enrollment PR lands.Stacking
Stacked on #196759 (
openclaw-e3b/macos-live-ocid, headd7ca1ae95d11), which sits on #196445 and #194201. This PR's base branch isopenclaw-e3b/macos-live-ocid, so the diff shows only these four commits.mainhas no Swift OpenClaw ID code; the tunnel, WebSocket session, worker bridge and node-invite path all come from that stack. #196759's node-invite path is kept unchanged as the headless path.Why This Change Was Made
Josh approved sign-in-first Mac enrollment. A Mac signs in with OpenClaw ID and becomes an owner or member device, so it doesn't join as a node with a separate operator key (W_op). #197421 built the connection, proxy and onboarding fixes on top of the superseded node-invite plus W_op flow. This PR keeps those fixes and drops the enrollment they were tied to.
Changes
MacOpenClawIDOperatorRoute: tunnel over a supplied human key, plus the dashboard proxy. It re-verifies the claw before each dial, and a relay move invalidates the route.GatewayEndpointStorepublishes the OpenClaw ID session with a nil token and password, so saved Gateway secrets never reach the claw.MacOpenClawIDDashboardProxy, the loopback proxy, enforces:WKWebsiteDataStore/, and the Control UI always dials the Gateway root./__openclaw__/worker.remote-ingresshello signs the dashboard challenge with no credential. Ingress never issues a reusable device token, so this case used to throw.MacOpenClawIDJoinCompletionsets the order: mark setup complete, close onboarding, switch the primary, refresh the endpoint, then open the dashboard.GatewayConnection.grantsScope:operator.pairing.operator.admin.Dropped from #197421
These parts are superseded by sign-in-first enrollment:
OpenClawIDNodeIdentityKeychainStore(operatorKey:)) andoperator_peer_keyredemptionnodePeerKeysopenclaw-node://joinURL scheme and deep linkBecause the OpenClaw ID onboarding sheet isn't on
main, the onboarding-view guard that ignored a mode change after a finished join isn't carried either. Completion now closes onboarding before it switches the primary, so that guard isn't needed.Evidence
All runs were on a macOS Studio in a separate checkout, with
OPENCLAW_IROH_NATIVE=1:swift build --package-path apps/macos --build-testsswift build --package-path apps/shared/OpenClawKit --build-testsFocused tests at the rebased head
92649f3a2ba8ran in the sandboxed runner (sandbox-exec, network denied except Unix sockets):remote-ingressdashboard signingPostUpdateBundledRuntimeTests(1 issue)OnboardingViewSmokeTestsremote page order, from feat(macos): enroll Mac nodes through OpenClaw ID invitations, with native hosting onboarding #196759's onboarding (1 issue)EPERMissues on loopback TCP fixtures inDashboardGatewaysTests,DashboardTokenlessRouteTestsandGatewayConnectionMediaAuthorityTestsGatewayNodeSessionDashboardAuthTestsfailed, on sandboxEPERM.scripts/format-swift.sh macosandscripts/lint-swift.sh macosare clean.Native i18n baseline regenerated with
pnpm native:i18n:baseline.Gaps:
immediateDashboardEndpointexclusion have no unit test. Both need a live route or isolated config.