Repository navigation
fix(desktop): restore onboarding functionality dropped by Second Brain redesign - #10340
Merged
Merged
Conversation
The Second Brain onboarding added sbOnboardingResumeStep and onboardingRole but left them out of OnboardingFlow.persistedStateKeys, so a mid-onboarding sign-out leaked the prior user's resume point and role to the next account on the same Mac. Add both to the shared clearing list.
Require sbOnboardingResumeStep and onboardingRole in the shared clearing list so the cross-account leak can't recur silently.
Seed the name field from the known givenName, kick a backend name fetch, and adopt an async name arrival (Apple sends the name only on first auth) so onboarding greets by name instead of a generic placeholder. Also re-hydrate the name/language/role drafts on resume so revisiting shows the prior answer.
Show the drag-to-grant helper card when requesting Full Disk Access (matching Screen Recording), and map each connector row to its brand mark for the connect-row icons.
…n SB onboarding Show each connector's brand icon on its connect row, and surface the Claude Code restart prompt once connected so running sessions reload the new MCP config.
kodjima33
added a commit
that referenced
this pull request
Jul 22, 2026
…ettings (#10343) ## Summary Two desktop onboarding follow-ups that missed the #10340 merge window (they were pushed to that branch after it merged, so they never reached `main`). Each is its own commit: - **Remove the post-onboarding coach-mark walkthrough** — the tour that ran after onboarding (dimming the window and spotlighting each top-bar nav pill + the Capture control) is deleted: the overlay, its 5-step copy in `DesktopHomeView`, and the `SidebarCoachAnchorKey` frame-publishing in `DesktopTopBar`/`SidebarView`. A just-onboarded user still lands on Home with the sidebar collapsed (that logic lives in the `onboardingJustCompleted` trigger, not the walkthrough), so they now go straight to chat with no coach-marks. - **Pin the permission drag-to-grant card under System Settings** — the card was x-centered on the Settings window but vertically pinned to the screen's bottom quarter, so it drifted far from the window. It now anchors a fixed gap beneath the live Settings window's bottom edge (flipping to just above the window when Settings sits too low to fit the card below), so it follows the window as it moves and never covers the drop target. Adds unit tests for the under/above/no-anchor placement cases. - **Ratchet** the `desktop-swift-mainwindow` line-count baseline down for the 2 lines the walkthrough removal drops from `SidebarView.swift`. ## Verification Unit tests added for `dragCardFrame` (`ScreenRecordingPermissionPolicyTests`). I could not exercise the change on a live build in this environment, so the drag-card repositioning is covered by those tests, not a runtime run — flagging that explicitly. ## Product invariants affected - INV-INT-1 ## Failure class (fixes) Failure-Class: none <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10343?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…ettings (BasedHardware#10343) ## Summary Two desktop onboarding follow-ups that missed the BasedHardware#10340 merge window (they were pushed to that branch after it merged, so they never reached `main`). Each is its own commit: - **Remove the post-onboarding coach-mark walkthrough** — the tour that ran after onboarding (dimming the window and spotlighting each top-bar nav pill + the Capture control) is deleted: the overlay, its 5-step copy in `DesktopHomeView`, and the `SidebarCoachAnchorKey` frame-publishing in `DesktopTopBar`/`SidebarView`. A just-onboarded user still lands on Home with the sidebar collapsed (that logic lives in the `onboardingJustCompleted` trigger, not the walkthrough), so they now go straight to chat with no coach-marks. - **Pin the permission drag-to-grant card under System Settings** — the card was x-centered on the Settings window but vertically pinned to the screen's bottom quarter, so it drifted far from the window. It now anchors a fixed gap beneath the live Settings window's bottom edge (flipping to just above the window when Settings sits too low to fit the card below), so it follows the window as it moves and never covers the drop target. Adds unit tests for the under/above/no-anchor placement cases. - **Ratchet** the `desktop-swift-mainwindow` line-count baseline down for the 2 lines the walkthrough removal drops from `SidebarView.swift`. ## Verification Unit tests added for `dragCardFrame` (`ScreenRecordingPermissionPolicyTests`). I could not exercise the change on a live build in this environment, so the drag-card repositioning is covered by those tests, not a runtime run — flagging that explicitly. ## Product invariants affected - INV-INT-1 ## Failure class (fixes) Failure-Class: none <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10343?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
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
Restores onboarding functionality that the Second Brain redesign (#10218) dropped, re-implemented on top of the new conversational design (no old UI brought back). Each fix is its own commit:
givenName, kick a backend name fetch, and adopt an async name arrival (Apple sends the name only on first auth), so onboarding greets by name instead of a generic placeholder. Also re-hydrates name/language/role drafts on resume.sbOnboardingResumeStep+onboardingRolewere added by the redesign but left out of the shared clearing list, leaking the prior user's resume step + role to the next account on the same Mac. Added both, plus a regression test.Verification
Build/manual verification pending — depends on #10334 (restores the
Package.swift/Package.resolvedthat a stray "fixture" commit gutted onmain, which currently breaks the desktop Swift build). This PR carries no Package changes; once #10334 lands and this rebases, it builds on the repaired manifest.Product invariants affected
Failure class (fixes)
Failure-Class: none