Skip to content

fix(desktop): restore onboarding functionality dropped by Second Brain redesign - #10340

Merged
Git-on-my-level merged 6 commits into
mainfrom
fix/desktop-onboarding-parity
Jul 22, 2026
Merged

Git-on-my-level merged 6 commits into
mainfrom
fix/desktop-onboarding-parity

Conversation

@skanderkaroui

@skanderkaroui skanderkaroui commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

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:

Verification

Build/manual verification pending — depends on #10334 (restores the Package.swift/Package.resolved that a stray "fixture" commit gutted on main, 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

  • INV-INT-1

Failure class (fixes)

Failure-Class: none

Review in cubic

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.
@Git-on-my-level
Git-on-my-level merged commit 9214bb3 into main Jul 22, 2026
30 of 35 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/desktop-onboarding-parity branch July 22, 2026 20:31
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. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants