Repository navigation
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. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
2 of 18 tasks
Contributor
Author
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.
Related: #196548
What Problem This Solves
macOS setup needs to ask where the assistant should run before starting a local Gateway, and make remote connection options understandable.
User Impact
Users can choose On this Mac, On another computer, or Set up later. Remote discovery and address/browser sign-in share one finder. Local setup keeps runtime preparation and live AI verification, then offers optional native reachability before finishing.
Draft only — not for merge or release. Native OpenClaw ID enrollment is not implemented on main. Its production service explicitly reports unavailable; account sign-in, recovery-kit creation, node/operator credentials and transports are not simulated as successful. The ID screenshots below use labeled fixtures. Release timing and Labs gating remain undecided. No dependency versions or live settings change.
Why This Change Was Made
Native pages reuse the existing discovery, trusted connection editor, browser-profile sign-in, runtime, and AI-verification owners. Fresh launch now enters this flow instead of automatically choosing local and handing off to the Dashboard. Completing AI verification no longer skips the optional native steps. Switching from a browser profile to the primary connection clears browser-only completion and restores AI verification. Browser-profile completion omits primary-only Channels/Skills shortcuts; the existing profile editor opens the saved Gateway instead of sending follow-up actions to another primary connection.
The new service boundary separates presentation from credential custody. Node access and operator/chat access remain two explicit approvals: the six-digit node code never grants chat or administration. A service-supplied owner Access URL can open in the local browser. The existing direct/discovered Gateway routes keep their own authentication and do not display a fabricated ID ceremony.
Native account callback custody and recovery-kit signing remain follow-up work. Apple node transport/app wiring depends on #194201/#196445; this PR is based directly on main and does not modify or stack on those drafts. Native operator identity/transport is a separate dependency.
Evidence
swift build --package-path apps/macos --build-system native --product OpenClawand--build-testspass.pnpm native:i18n:verifyandgit diff --checkpass. Localization inventory was regenerated withpnpm native:i18n:baseline.Proof limits: These are isolated page-content captures, not an end-to-end install or successful OpenClaw ID enrollment. Network, operator-home reads, Keychain and preferences-daemon access were denied. One additional migrated identity-maintenance readiness test is not locally proven: its test-owned Foundation temporary-directory creation fails with EPERM under the Studio sandbox before the changed readiness call. Disposable macOS CI remains required for that test and the full suite. Existing browser sign-in was preserved, not exercised against a live account.
Successful AI setup ending — before / after
finish()→ Dashboard opens immediately.The changed boundary is presentation after verification, not authentication or inference admission. The route identity, pending activation, live round-trip and cancellation guards remain in place. Base AI completion callbacks show the immediate
finish()calls.Capture limitation: the before/after final-page images below compare actual native page content using the same isolated renderer. Main's successful-AI path bypasses that old native final page and opens the Dashboard; the old final-page image is not a screenshot of that live Dashboard ending. No live-account Dashboard session was captured or fabricated.
Capture geometry
Ordinary pages use the production default 630×752-point content rectangle, 145-point mascot region and 535-point page area. Production vertically centers each page, so shorter pages genuinely have a larger mascot/title gap. Navigation is omitted and labeled as such; the evidence legend is outside the content rectangle. The base and candidate were recaptured with the same renderer.
OpenClaw ID screens are the actual 574-point-wide, intrinsic-height native sheet, including Close. They do not have an onboarding mascot or a fixed-height page area. Their missing enrollment dependencies remain labeled in every image and below.
Before / after — native page content, isolated preview state
New native pages and explicitly fixture-only OpenClaw ID presentations
done later
isolated preview state; no live connection.
Browser-profile ending
Synthetic saved-profile state; the existing browser sign-in implementation was not exercised against a live account. Primary-only follow-up actions are absent. The editor remains responsible for opening the saved profile.
find
isolated preview state; no live connection.
id add mac
FIXTURE — missing dependency: #194201/#196445 enrollment wiring. Enrollment is not implemented; this dependency is also named in the image label.
id chat approval
FIXTURE — missing dependency: member/operator enrollment. Enrollment is not implemented; this dependency is also named in the image label.
id claws
FIXTURE — missing dependency: native account callback and authenticated claw-list wiring. Enrollment is not implemented; this dependency is also named in the image label.
id compare code
FIXTURE — missing dependency: #194201/#196445 enrollment wiring. Enrollment is not implemented; this dependency is also named in the image label.
id connected
FIXTURE — missing dependency: #194201/#196445 enrollment wiring and member/operator enrollment. Enrollment is not implemented; this dependency is also named in the image label.
id reachable
FIXTURE — missing dependency: owner signer/kit custody and native account callback. Enrollment is not implemented; this dependency is also named in the image label.
id recovery kit
FIXTURE — missing dependency: owner signer/kit custody. Enrollment is not implemented; this dependency is also named in the image label.
id sign in
FIXTURE — missing dependency: native account callback. Enrollment is not implemented; this dependency is also named in the image label.
reach
isolated preview state; no live connection.
Implementation walkthrough and simplification
The superseded automatic-local runner, progress view, and task lifecycle were removed. Gateway readiness tests now exercise their actual readiness boundary instead of fabricated Dashboard-completion counters. Existing installer, authentication and inference gates remain owned by their current implementations. Production delta: +516 / −311 lines; net growth is the requested native ID presentation and its unavailable-service boundary, not a second transport stack.
MenuBar.swiftOnboarding.swiftOnboardingController+FirstRun.swiftOnboardingFirstRun.swiftOnboardingFirstRunProgressView.swiftOnboardingOpenClawID.swiftOnboardingOpenClawIDView.swiftOnboardingView+AISetupPage.swiftOnboardingView+Actions.swiftOnboardingView+Layout.swiftOnboardingView+Monitoring.swiftOnboardingView+Pages.swiftGatewayProcessManagerTests.swiftOnboardingAISetupTests.swiftOnboardingDashboardHandoffTests.swiftOnboardingFirstRunTests.swiftOnboardingOpenClawIDRenderTests.swiftOnboardingOpenClawIDTests.swiftOnboardingPageTests.swiftOnboardingRenderTests.swiftOnboardingViewSmokeTests.swiftapps/macos/README.mdapps/.i18n/native-source.json