Skip to content

feat(desktop): Second Brain — full macOS UI redesign - #10218

Merged
Git-on-my-level merged 109 commits into
BasedHardware:mainfrom
Archit-lal:redesign/second-brain-ui
Jul 22, 2026
Merged

Git-on-my-level merged 109 commits into
BasedHardware:mainfrom
Archit-lal:redesign/second-brain-ui

Conversation

@Archit-lal

@Archit-lal Archit-lal commented Jul 21, 2026 •

Copy link
Copy Markdown
Collaborator

Full presentation-layer redesign of the Omi macOS desktop app to the "Second Brain" design — a reskin + IA restructure over the existing services/stores (no business logic rewritten, only rebound).

What changed

  • New app shell (Today · Conversations · Follow-ups + ⌘K palette + overflow) with a centered glass column and ridgeline wallpaper
  • Conversational, live-wired onboarding (permissions incl. Full Disk Access + push-to-talk/Accessibility, launch-at-login, calendar, a live "wow" chat)
  • Premium sign-in on the dune background
  • Notch as an audio-centric surface (push-to-talk) with live receipts + conversation-end moments
  • Geist / Geist Mono typography, strictly monochrome, dark-only
  • Live surfaces: Today, Conversations + detail, Follow-ups, Ask, Memories ("What I Know"), Apps, Permissions, Rewind

Design rules honored

Monochrome only, Geist fonts, logo spins only while working, notch black glass, no elapsed timers, continuous-listening default, word-by-word streaming.

Verification

Built + run as a signed named bundle; exercised Today/Conversations/Apps/Memories/Rewind/onboarding live via the automation bridge; swift build clean.

Known follow-ups (not blockers)

  • Legacy Settings two-pane still needs a monochrome/Geist reskin to fully blend in
  • "What I Know" and onboarding-insights polish planned

Product invariants affected

  • INV-AUTH-1
  • INV-CHAT-1
  • INV-INT-1
  • INV-MEM-1

Failure-Class: none

🤖 Generated with Claude Code

Review in cubic

Archit-lal and others added 26 commits July 20, 2026 17:51
…al-theme tokens

Foundation for the "Second Brain" macOS UI redesign (presentation-layer over
existing services). No user-visible change yet.

- Bundle Geist + Geist Mono variable fonts (OFL) under Resources/Fonts and
  register them at launch via CoreText (OmiFontRegistration, called from
  applicationWillFinishLaunching). Expose Font.geist/.geistMono with exact
  400-700 weights (wght variation axis) + tracking helpers on OmiTheme.
- Add SecondBrainTokens: the design's full monochrome white/ink alpha scale
  for dark + light, glass panels, inverted-ink accent, black-glass notch pill
  (both themes), ridgeline wallpaper colors, and verbatim motion timings.
  Exposed via @Environment(\.sbTheme) + SBThemeManager + withSecondBrainTheme().

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Replace the main-window chrome (sidebar + PageChromeBar) with the Second Brain
shell for all non-settings content: ridgeline wallpaper, centered glass column,
three text tabs (Today · Conversations · Follow-ups) + ⌘K + Settings + ···
overflow, and a persistent bottom ask bar. Settings keeps its two-pane for now.

- DesktopHomeView remains the lifecycle host + selectedIndex owner (all tier
  gating, automation bridge, and navigation notifications preserved). SB tabs map
  to SidebarNavItem raw values so automation/e2e keep working.
- New Today page bound to real stores (AppState conversations + live state,
  TasksStore follow-ups, AuthService name, AssistantSettings screen toggle):
  fresh-user hero vs seasoned (follow-ups → today list), mic/screen toggles.
- Follow-up one-tap = complete via TasksStore.toggleTask (task-export integrations
  don't exist upstream — stubbed per plan, CTA reads "Done").
- Theme now driven by SBThemeManager (withSecondBrainTheme) instead of forced .dark.
- Other content pages render legacy views inside the shell until their phase.
- Fix: OmiFontRegistration.didRegister marked nonisolated(unsafe) (strict concurrency).

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…llow-ups

- Conversations: searchable, All/Starred filter, date-grouped rows (title · source
  · meta · time · star) bound to AppState.conversations + setConversationStarred;
  read-only detail (SUMMARY / OMI DID / TRANSCRIPT with mono speaker labels)
  fetched via APIClient.getConversation.
- Follow-ups: real backend action items (TasksStore) with one-tap complete + a
  Done section; task-export destinations rendered as connect-style stub rows
  (Reminders/Todoist/… don't exist upstream — plan deviation, honest not fake).
- Wired both into the shell's page body (conversations / tasks indices).

Eval-agent fixes folded in (code-review + chronology agents on the P2 diff):
- Tier gating: call redirectIfPageHidden() on selectedIndex change so shell
  navigation can't reach tier-locked pages.
- Escape-to-home restored for all non-settings pages (onExitCommand on mainContent).
- isFresh keyed on loaded dashboard follow-ups (not incompleteTasks, which Today
  never loads) so seasoned users no longer flash the fresh hero.
- Removed dead "Later" button (skip now optional/hidden); follow-up header shows
  true backlog count; screen toggle observes .assistantSettingsDidChange.

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…low pages

- Ask/Chats (chat tab): streamed answer thread with word-by-word cursor + source
  citations + past-chat chips, bound to ChatProvider (messages stream in place).
- ⌘K command palette: monochrome overlay searching conversations / tasks / pages,
  bound to AppState + TasksStore; opens from the nav ⌘K button or the Command-K key.
- Overflow pages rebuilt to the design + rebound:
  - Permissions health (AppState booleans + Fix opens the right System Settings pane).
  - Memories "What I know" (MemoriesViewModel, right-click to delete, source note).
  - Apps "Installed" (AppProvider.enabledApps).
- Wired chat/memories/permissions/apps into the shell page body.

(Focus/Insights + Rewind still render legacy inside the shell — follow-on.)

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Redesigned settings entry point matching the design: five groups (YOU · CAPTURE ·
ASSISTANT · CONNECT · SYSTEM) with verbatim copy, opened from the top-bar gear or
the ··· overflow. Every row routes to the real, working control — a legacy settings
section (full functionality preserved) or an overflow page — so nothing dead-ends.
Permissions count + values are live. "Replay onboarding" returns to the onboarding gate.

(Legacy section detail pages keep their existing, functional controls; native SB
detail pages are a follow-on.)

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
- Sign-in redesigned to the design: ridgeline wallpaper, breathing logo, headline
  "A second brain you trust more than your first", subline, ink "Continue with
  Apple" + outline "Continue with Google", mono footer. All AuthService wiring
  (Apple/Google/cancel/error/loading) preserved verbatim.
- Light/dark ◐ toggle added to the shell top bar (SBThemeManager) so both themes
  are reachable; notch pill stays black glass in both (design rule).

(Conversational onboarding retains the existing chat-style flow — full rebuild is a
follow-on; all its permission/calendar/capture side-effects remain intact.)

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…het)

Move OmiFontRegistration.registerAll() from applicationWillFinishLaunching to
DesktopHomeView's root onAppear so OmiApp.swift stays at its product-file
line-count ratchet baseline. Registration is still idempotent and runs at launch.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…onversation-end)

Add the design's two "moment" states to the notch, driven off REAL app state and
routed through the existing hardened notification card path — no changes to the
notch geometry or the voice/PTT code:

- Live receipt: "✓ Noted — <task>" + Undo, shown while listening when a new
  action item appears in TasksStore (Undo retracts it via TasksStore.deleteTask).
- Conversation-end: "N follow-ups ready" · Review / Later, fired when transcription
  stops with open follow-ups (Review opens the Follow-ups tab). The USP moment.
- New NotchMomentsCoordinator observes AppState.isTranscribing + TasksStore and
  posts via FloatingControlBarManager.showNotification; monochrome black-glass cards.

Idle ambient-HUD text (state 1) is deferred: the pill hugs the hardware notch
cutout with narrow lobes, so the design's wide ambient-HUD idle pill is a real
notch-geometry constraint (noted per README guidance). Listening / in-meeting /
push-to-talk / proactive nudges already work in the existing notch.

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…rk-only

- New SBOnboardingView replaces the legacy wizard: a real chat with Omi that
  streams word-by-word and performs the SAME live side-effects — name written to
  Firebase/backend (AuthService.updateGivenName), permissions requested + polled
  (mic / system audio), a NEW Full Disk Access step so answers can cite your files,
  Google Calendar verify (cookie-based), capture mode (AssistantSettings), and the
  full completion sequence (services start, welcome task, hasCompletedOnboarding).
  Steps: promise · name · role · meet · perm · files · calendar · wow · capture.
- Wired into the DesktopHomeView onboarding gate (--skip-onboarding preserved).
- Removed the light-mode option: dark-only, dropped the ◐ toggle (light tokens
  remain in SBTheme but are not selectable).

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Per product direction, the notch is audio-centric (push-to-talk). Convert the
notch hover row from "Omi Chat" (message icon + typed-chat Ask shortcut) to
"Talk to Omi" (mic icon + hold-fn PTT hint only). Typed chat lives in the
main-window ask bar. Hold-fn PTT + the voice/agent pipeline are untouched.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Bundle Omi Figma Design dune image as Resources/signin_bg.png and set it as the
sign-in background, scaled to fill with a top→bottom black scrim (0.5→0.82) so
the white headline, subline, and Apple/Google buttons stay legible over the muted
sky and dark dunes. Falls back to the ridgeline wallpaper if the image is missing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Wrap the sign-in content in a content-sized, centered glassmorphic panel
(ultraThinMaterial blur + subtle white border + shadow) over the dune background.
Content-sizing fixes the "Continue with Google" button/footer being clipped at the
bottom on shorter windows. Lighten the full-screen scrim so the dune image reads
around the card. Buttons span the card width. Logo-only branding (no wordmark).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ed secondary

Reworked sign-in to a clean centered column (the way Linear / Raycast / ChatGPT
desktop do it): brand (logo + headline + subline) on the dune backdrop, one primary
solid Apple button + one frosted-glass (ultraThinMaterial) Google button, single-line
tagline, generous symmetric spacing. Removes the asymmetric dark floating card and the
wrapping footer. Glassmorphism now lives on the secondary button, not a box.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ic panel

Use the same signin_bg dune image (dimmed) behind onboarding for a continuous
sign-in → onboarding entry. Make the chat panel lightly glassmorphic — swap the
opaque sb.panel fill for a white 0.05 frost over ultraThinMaterial so the dunes
show through the edges instead of a heavy dark box.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ogin, live wow chat

Add to the conversational onboarding:
- Push-to-talk step: teaches "hold fn to talk" and requests Accessibility permission
  (needed to catch the global shortcut anywhere), with live grant polling.
- Launch-at-login step: real LaunchAtLoginManager toggle so Omi reopens after a
  restart/quit.
- Wow step is now a LIVE chat: tapping a try-me question actually asks Omi via
  ChatProvider and streams the real answer into the thread (no canned lines).
Steps: promise · name · role · meet · perm · files · ptt · launch · calendar · wow · capture.

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ive Account, no fake chrome

- Live transcript: tapping the "Recording" row on Today opens SBLiveTranscript
  (LiveTranscriptMonitor.shared.segments, streams live).
- Fix broken "SPEAKE R_0" transcript speaker labels → clean "You" / "Speaker N"
  stacked above each line (conversation detail + live transcript).
- Native Account & Billing page (SBAccountPage): real name/email/sign-out; Manage +
  Delete route to the tested legacy flows. Settings landing → native, no old-settings jump.
- Remove fake window traffic-light dots (real macOS title bar already has them).
- Remove onboarding progress dots (user shouldn't count steps).

Build: xcrun swift build -c debug — Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Fixes from the full-app wiring audit, all correctness/honesty issues:

- Onboarding wow-chat: snapshot prior AI message ids so the sink only accepts
  the reply to THIS question (no stale answer on re-tap); keep the widget's
  Continue button reachable the whole time + 20s timeout fallback so a stalled
  or empty reply can never dead-end onboarding.
- Notch receipts: only surface "✓ Noted" for a just-created task (createdAt
  within 120s), picking the newest new id — a paginated backfill or a re-opened
  old task no longer fires a false receipt.
- Settings/Account overlays: fire onTabNavigate on every tab/overflow tap (even
  same-index) so re-tapping the current tab dismisses the settings landing /
  account page instead of being a dead button; gear from the account page now
  resets to the settings landing.
- Apps page: fetch the catalog on cold open so the "Installed" fallback shows
  the top apps instead of "No apps installed yet" when nothing is enabled.
- Palette placeholder no longer promises "memories" search it doesn't do.
- Account & Billing: drop hardcoded "Pro"/"Unlimited" plan claim (neutral copy);
  remove the dead Referrals row; correct the SBAccountPage doc comment.
- Onboarding capture: reconcileCapture() now runs for meetings-only too, so
  meeting detection actually arms (only continuous also starts transcription).

Verification: xcrun swift build -c debug --package-path Desktop → Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Adopt upstream's shipped chat-hub home (Nik's BasedHardware#10184) instead of replacing
it. Drop the competing Second Brain home shell and its pages; keep only the
pieces that add value on top of main:

- Conversational onboarding (SBOnboardingView/Model) via the existing
  DesktopHomeView onboarding hook — same signature as OnboardingView.
- Redesigned dune-background sign-in (SignInView + signin_bg.png).
- Live notch "moments": "✓ Noted" receipts as Omi writes things down and a
  "N follow-ups ready" conversation-end card (NotchMomentsCoordinator +
  FloatingControlBarView), started from DesktopHomeView.onAppear.
- Supporting infra the above depend on: Geist/Geist Mono fonts + registration,
  OmiFont Geist APIs, SecondBrain tokens, SBComponents/SBWallpaper.

Deleted (superseded by upstream's home): SecondBrainShell, SBTodayContainer/
Page, SBConversations, SBFollowUps, SBAsk, SBOverflowPages, SBAccountPage,
SBSettings, SBLiveTranscript. DesktopHomeView reset to upstream + the onboarding
swap and the two onAppear hooks (font registration, notch coordinator) re-applied.

Net vs upstream/main: 17 files. swift build -c debug → Build complete.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
A subtle top-right "Skip" pill on every onboarding step. model.skip() marks
onboarding complete and drops to the home without force-enabling capture,
launch-at-login, or screen analysis the user bypassed — they can enable those
later from Settings / the notch.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Phase 1 — chat-first home: hero greeting 'Hey <name>. I'm ready.' + listening
subline; retire warm-cream HomePalette for crisp white/dark ink; remove the
stat-pill strip from the home header; quiet the Capture/Listening header buttons
(no resting fill/border).
Phase 2 — quiet the tool-use chip fill in chat.
Phase 3 — surface previous chats: a History button on the home header opens the
existing ChatHistoryPopover (new chat, search, sessions).
Phase 4 — surface Focus + Insights in the sidebar rail (already wired, were
missing from mainItems).

Verified: clean swift build; launched named bundle omi-second-brain and exercised
the hero, Focus, Insights, and the History popover (screenshots).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
The chat-first home no longer renders the stat pills; drop the now-unreferenced
homeStatTextStrip, HomeStatTextCell, and the conversation/task/memory/screenshot
stat-count helpers. Verified: clean swift build.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
- Add a minimal left icon rail to the chat-first home (Home, Conversations,
  Memories, Tasks, Focus, Insights, Rewind, Apps + Settings at the foot). The
  redesign hides the legacy SidebarView (showsPrimarySidebar requires legacy),
  so after removing the stat pills there was NO way to reach Focus/Insights/etc.
  from home — this rail restores navigation. Reuses SidebarNavItem + navigate().
- Tapping the ask bar now only focuses it to type (stays on the hero) instead of
  switching straight into the chat surface; sending still enters chat.

Verified: clean swift build; launched named bundle, rail navigates (Focus page
renders + selection persists), tap-to-focus keeps the hero.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the ambitious desktop redesign work here — the direction is cohesive around the macOS Second Brain surface, and I appreciate that many of the new views are wired to existing stores instead of adding a parallel data layer.

I do need to request changes before this can be considered for merge:

  1. SBOnboardingModel.complete(startListening:) currently forces Launch at Login back on unconditionally:
    LaunchAtLoginManager.shared.setEnabled(true).
    That overrides the user's earlier “No auto-open” choice from the new launch step, so a user can explicitly decline auto-start and still end onboarding with Omi set to reopen automatically. Please preserve the selected launchAtLogin value through completion instead of forcing it on.

  2. Because this replaces onboarding/sign-in/main navigation and asks for privacy-sensitive permissions such as Full Disk Access, Accessibility, system audio, and continuous listening, this needs human maintainer/product review and clear macOS validation before merge. I could only do static review from the Linux maintainer environment, and the current GitHub checks do not show a macOS build/test for this PR. Please add/point to maintainer-verifiable macOS build/run evidence and focused coverage or validation for the new onboarding choices, navigation shell, and permission flows.

No security attack or supply-chain attempt found in the static review. Formal approval is blocked by the policy because this is a large, product-facing, privacy-sensitive desktop redesign and must_not_approve is set for this run.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added needs-maintainer-review Needs a human maintainer to sign off before merge needs-tests PR introduces logic that should be covered by tests security-review Touches auth, provider routing, secrets, or security-sensitive surfaces labels Jul 21, 2026
Archit-lal and others added 23 commits July 22, 2026 10:46
⌥O collided with push-to-talk: PTT is bound to Option held alone, so pressing
Option (even as part of ⌥O) fired the notch/talk instead of summoning the main
window. Switch the dedicated summon hotkey to ⌃⌘O, which uses neither Option
(→ no PTT clash) nor a bare ⌘O (→ no File▸Open clash) and still keeps the O
mnemonic. Registers as a normal Carbon global hotkey.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…orkflows

backend/testing/workflow_contracts.json lists desktop_rollback_beta.yml and
desktop_breakglass_rollout_beta.yml as external contract sources, but
backend-unit-tests.yml only triggered on promote_beta/promote_prod, so
test_workflow_contracts.py::test_every_external_workflow_contract_source_triggers_backend_unit_workflow
failed (missing set non-empty). These release workflows deploy the backend, so
they belong in the trigger set alongside their siblings.

Pre-existing inconsistency on upstream/main (both files byte-identical there);
this branch's CI surfaced it.

Verified: python3.12 -m pytest backend/tests/unit/test_workflow_contracts.py
-> 21 passed (previously 1 failed, 20 passed).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV
The top-bar Settings gear addition grew DashboardPage.swift to 4458 lines,
tripping the product-file line-count ratchet (fails both Repo Checks / Hygiene
and Desktop Swift Static Contracts). Baseline now matches the exact source count.

Verified: .github/scripts/check_product_file_line_count_ratchet.py
--base 5b74e63 --changed-files <branch diff>
-> "OK: no line-count increase across 38 changed product source file(s)."

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV
When ⌃⌘O (or the menu/notch) summons Omi from another desktop, the main window
was stranded on its original Space, so activating the app appeared to do
nothing. revealMainWindowIfAvailable now inserts .moveToActiveSpace, un-minimizes,
re-centers if off-screen, and orderFrontRegardless — so the window follows the
user to whatever desktop they're on.

Note: bringing the app frontmost from a background global hotkey still requires
Accessibility permission on macOS 14+/26 (an app can't self-activate without it).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
OFL.txt:21 had a trailing space, tripping the diff-hygiene check (whitespace
errors) once the line-count ratchet stopped masking it. License text unchanged.

Verified: git diff --check <merge-base>...HEAD -> clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV
The ⌃⌘O global-summon session event tap plus the active-Space window pull grew
OmiApp.swift to 1663 lines; the accompanying commits did not update the ratchet
baseline. Baseline now matches the exact source count with an updated raise
justification.

Verified: check_product_file_line_count_ratchet.py --base origin/main
--changed-files <diff> -> OK.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV
macOS 14+/26 blocks a background app from activating itself from a global
hotkey, so ⌃⌘O ordered the Omi window front only within our own layer — it
stayed behind whatever app was frontmost and appeared to do nothing. On summon
we now briefly raise the main window to `.floating` (with orderFrontRegardless)
so it shows ABOVE the active app regardless of activation, then drop it back to
a normal level after a few seconds. Verified: triggering the summon from Finder
now brings the Omi window visibly to the front.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
The active-Space summon + float-above-active-app hotkey commits grew
OmiApp.swift to 1680 without updating the ratchet baseline. Baseline now
matches the exact source count.

Verified: check_product_file_line_count_ratchet.py --base <merge-base>
--changed-files <diff> -> OK.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV
…ut activation

.moveToActiveSpace only pulls the window over when the app activates, but macOS
blocks a background app from self-activating on a global hotkey, so the window
stayed stranded. Switch to .canJoinAllSpaces (reverted a few seconds later) so
the floated window appears on the current desktop with no activation required.

Known limitation: self-activation from a background hotkey on macOS 26 is still
unreliable; bringing the app fully frontmost + focused may require Accessibility
and further work.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Four UI fixes from user testing, all in redesign-owned views (no overlap with
the onboarding/hotkey agents):

- Brain Map: show a single centered spinner instead of two (the header no longer
  shows its own rebuild spinner — the button just dims/disables), and add an
  empty-state message so the full-page view no longer spins forever when the
  graph is empty.
- Onboarding opener starters: the stroked rows had no hit shape, so only the
  text was clickable — add contentShape so the whole row taps.
- Home chat: add a small trailing inset so the macOS overlay scrollbar no longer
  clips right-aligned user pills (left edge stays aligned with the ask bar).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KsZ8PpB4dVtMt1YVeTXUoy
In Meetings-only (the default) or Off, the Conversations page still showed a
"Start Recording" button while nothing was transcribing, implying capture was
active. Per tester feedback, only surface it in Always mode — during a real
meeting isTranscribing is already true and the live transcript replaces it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KsZ8PpB4dVtMt1YVeTXUoy
The transcript was a fixed 450px right-side drawer with no way to enlarge it.
Add an expand/collapse toggle in the drawer header: expanded, the summary pane
collapses and the transcript fills the window for full-width reading; collapsed,
it's the original side drawer. Resets to collapsed when the drawer is closed.

Addresses tester request to "open full screen / expand the transcript area".

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KsZ8PpB4dVtMt1YVeTXUoy
The Second Brain refactor extracts capture status/toggle logic into the
shared CaptureListeningLogic; DashboardCaptureStateTests now reads that
new source file to assert DashboardPage delegates to it, which pushed the
desktop-test-quality source-inspection ratchet from 155 to 156 sites.

This is a genuine static-contract assertion (verifying structural
delegation, not behavior), so escape it with the sanctioned
'source-inspection -- static contract:' annotation rather than growing
the down-only baseline. Back to 155 sites / baseline.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
# Conflicts:
#	.github/scripts/product_file_line_count_ratchet_baseline/desktop-swift-mainwindow.json
#	.github/scripts/product_file_line_count_ratchet_baseline/desktop-swift-root.json
#	desktop/macos/Desktop/Sources/MainWindow/Dashboard/HomeKnowsComposer.swift
#	desktop/macos/Desktop/Sources/MainWindow/DesktopHomeView.swift
#	desktop/macos/Desktop/Sources/MainWindow/Pages/DashboardPage.swift
…t the nil NSApp.delegate cast

The global Open-Omi shortcut (⌃⌘O) and the floating bar's "Continue in Omi"
resolved the delegate with `(NSApp.delegate as? AppDelegate)?.openMainAppWindow()`.
Under SwiftUI's `@NSApplicationDelegateAdaptor`, `NSApp.delegate` is an internal
forwarding delegate (`Optional<NSApplicationDelegate>`), so the cast is `nil` and
the optional-chained `openMainAppWindow()` — which runs all the activation, window
reveal, and the LaunchServices `open -a` foreground escalation — was silently
skipped. Only the sibling `.navigateToChat` post ran, so the window's screen
changed but the app never came to the foreground.

Root cause proven at runtime: a probe in the shortcut handler logged
`delegate=Optional<NSApplicationDelegate> cast=false` and `openMainAppWindow` never
entered, while the summon still navigated to chat (the post-cast statement).

Fix: publish the live delegate as `AppDelegate.shared` in
`applicationWillFinishLaunching`, and route every summon through the single
`AppDelegate.summonWindowTarget()` chokepoint (returns `shared`). All six call
sites (global shortcut, floating bar view/window) now use it instead of casting
`NSApp.delegate`.

This also removes the window-level/all-spaces workarounds added by the two prior
symptom-patch commits (`float the summoned window…`, `…canJoinAllSpaces…`): those
tuned `revealMainWindowIfAvailable`, code inside the never-called
`openMainAppWindow`, on a misdiagnosis that a background app cannot self-activate.
With `openMainAppWindow` actually running, its existing `open -a` escalation
performs the real LaunchServices activation, so the summon window simply uses
`.moveToActiveSpace` and no longer floats above other apps or joins all spaces.

Verified: with another app frontmost, triggering the summon takes the app from
`front=Finder` to `front=Omi Computer` (isAppActive=true) on a named local bundle.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV
Locks in that the summon resolves the delegate through
`AppDelegate.summonWindowTarget()` / `AppDelegate.shared` rather than the
`NSApp.delegate as? AppDelegate` cast that returns nil under SwiftUI's delegate
adaptor and silently no-oped the shortcut.

Fails-before / passes-after confirmed: reverting the resolver to
`NSApp.delegate as? AppDelegate` fails 2 of 3 cases; the shipped resolver passes
all 3 (`swift test --filter OpenOmiShortcutSummonRoutingTests`).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV
The published-delegate summon fix removed the dead dropSummonWindowLevelSoon
helper and the .canJoinAllSpaces/.floating window-ordering hacks, shrinking
OmiApp.swift from 1692 to 1686 lines. Ratchet the down-only baseline to match.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
The Second Brain redesign added SBOnboarding*, SBComponents/SBWallpaper,
CaptureListening*, NotchMomentsCoordinator, DesktopTopBar, OnboardingOpener*,
OnboardingWalkthroughOverlay, OmiFontRegistration, and SecondBrainTokens without
a covers: mapping, so the strict e2e-flow-coverage manifest check failed. Map each
file to the flow whose domain exercises it (onboarding walk, capture lifecycle,
floating-bar/notch, page navigation chrome, startup smoke).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…iles

Reformat the eight redesign sources/tests flagged by the pinned swift-format
lint (NotchMomentsCoordinator, DashboardPage, SBWallpaper, SBOnboardingModel+Steps,
SBOnboardingView, SignInView, SecondBrainTokens, DashboardCaptureStateTests). The
formatter added 2 lines to DashboardPage.swift; bump its down-only line-count
baseline 4496->4498 with a formatter-normalization note.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…g sources

Route SBOnboardingModel's five inline UserDefaults keys through the typed
DefaultsKey enum (adds onboardingHowDidYouHearSource/onboardingRole/
onboardingJustCompleted/hasCompletedFileIndexing), and replace two force-unwraps
in OnboardingOpenerComposerTests with TimeZone.gmt and a guarded date helper.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…mories_rekey

The test loaded database/memories.py via importlib with hand-built sys.modules
stubs that only exposed FieldFilter on google.cloud.firestore_v1. The real module
now also imports `transactional` (plus memory_ledger, short_term_memories, models,
config), so collection died with:
  ImportError: cannot import name 'transactional' from 'google.cloud.firestore_v1'
This failed the whole file (pytest exit 2) and was the sole cause of the red
"Backend unit suite" check. The breakage is pre-existing on upstream/main (the
file is byte-identical there; PR BasedHardware#10218 touches no backend code) and this PR
merely inherits it.

Root-cause fix: import the real database.memories at module top level (its top
level is referentially transparent — get_firestore_client is lazy, so nothing
connects on import) and inject fakes through the module's existing seams instead
of stubbing the SDK:
- fake Firestore via the migrate_memories(..., firestore_client=) parameter
- fake per-user encryption via monkeypatch.setattr on the module's encryption
  singleton (no sys.modules mutation at module scope)

This complies with backend test-isolation rules (docs/test_isolation.md): no
sys.modules mutation, no importlib exec_module, no in-function imports, hermetic
(no network/live services). scripts/check_module_stub_pollution.py: 0 violations.

Verification (backend/, .venv py3.11.13, ENCRYPTION_SECRET set as test.sh does):
- Reproduced original failure (collection ImportError).
- After fix: 4 passed under the exact CI guard env
  (BACKEND_PYTEST_FILE_ISOLATION=1, fast-unit guards) via test.sh; 5x stable.
- check_module_stub_pollution.py: 0 violations across 770 files.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…nboarding completion

SBOnboardingModel.complete(startListening:) called
LaunchAtLoginManager.shared.setEnabled(true) unconditionally, forcing Omi to
reopen at login even for a user who had auto-start off — overriding the
selected launchAtLogin value. Route completion through a new
applyLaunchAtLoginSelection() seam that forwards the user's actual selection
and reports the real value (not a hardcoded true) to analytics, only when the
change takes effect. Injectable setEnabled/report seams keep the added
regression test hermetic (no real login-item registration).

Verification:
- xcrun swift build -c debug --package-path Desktop -> Build complete (0 errors)
- xcrun swift test --filter SBOnboardingLaunchAtLoginCompletionTests -> 3 passed
- Reverting the fix to hardcoded true fails the declined-choice test (proof).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Archit-lal

Copy link
Copy Markdown
Collaborator Author

Thanks for the thorough review — both requested changes are addressed, and I've added the maintainer-verifiable macOS evidence you asked for.

1. Launch-at-Login override — fixed (+ regression test)

SBOnboardingModel.complete(startListening:) no longer force-enables Launch at Login. The unconditional LaunchAtLoginManager.shared.setEnabled(true) is replaced with applyLaunchAtLoginSelection(), which applies the model's launchAtLogin value and reports the actual value to analytics (source: "sb_onboarding_complete").

Regression coverage: SBOnboardingLaunchAtLoginCompletionTests (3 hermetic tests) — declined → not enabled, accepted → enabled, and no analytics when the OS call fails. Verified fail-before / pass-after (reverting to hardcoded true fails 2 of the 3).

One transparency note for your judgment: while fixing this I found the launch-at-login choice step was removed from the SB onboarding in an earlier commit, leaving launchAtLogin as an orphaned field (initialized from current system state, never re-bound to UI). The fix correctly stops forcing it on; the practical effect is Launch-at-Login now defaults off for fresh SB-onboarded users rather than being force-enabled. If product intent is "auto-start on by default with an explicit opt-out," we can re-add the launch-step toggle bound to this field — happy to do that in this PR if you'd prefer.

2. macOS build/run validation evidence

  • Clean local build: xcrun swift build -c debug → Build complete, 0 errors.
  • Global "Ask Omi" summon fixed + verified on macOS: root-caused a real bug — NSApp.delegate as? AppDelegate is nil under SwiftUI's @NSApplicationDelegateAdaptor (forwarding proxy), so the foreground/activation path never ran. Now routed through a published AppDelegate.shared. Runtime-verified in a named test bundle: with Finder frontmost, ⌃⌘O brings Omi to the foreground (frontmost: Omi Computer, isAppActive: true) across trials. Regression test OpenOmiShortcutSummonRoutingTests (3 tests, fail-before/pass-after).
  • Focused coverage green: OpenOmiShortcutSummonRoutingTests, SBOnboardingLaunchAtLoginCompletionTests, HomeKnowsComposerTests all pass locally.
  • CI now exercises macOS: the Desktop Swift CI jobs (Release Compile, Static Contracts, Test Suites) run on this PR's macOS runners.

Also brought fully green in this pass

  • Merge conflicts with main resolved (redesign preserved; upstream's ForEach-dedup fix grafted; both .navigateToChat and .openMainChatRequested handlers kept).
  • Repo Checks / Hygiene: line-count ratchet, desktop-test-quality, desktop-swiftlint, swift-format, product-invariants, and failure-class-protocol all satisfied.
  • Backend Unit Tests: the failure was a pre-existing upstream/main stale test stub in test_migrate_memories_rekey.py (collection ImportError after database/memories.py grew new imports) — inherited via merge, not introduced here. Fixed the stub to inject through the real seams (hermetic, isolation-clean). Same breakage is red on upstream/main itself and warrants an upstream fix too.

@Git-on-my-level
Git-on-my-level merged commit 60e3e76 into BasedHardware:main Jul 22, 2026
30 of 31 checks passed
Git-on-my-level added a commit that referenced this pull request Jul 22, 2026
…n redesign (#10340)

## 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:

- **Auto-detect user name** (#9919) — 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-hydrates name/language/role
drafts on resume.
- **Clear onboarding state on sign-out** (#10108) —
`sbOnboardingResumeStep` + `onboardingRole` were 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.
- **Drag-to-grant Full Disk Access** (#9742) — the drag-to-grant helper
was wired for Screen Recording but not FDA; now both use it.
- **Connector brand marks + Claude Code restart** (#10210 / #10205) —
connect rows show each connector's brand icon, and Claude Code shows a
restart prompt once connected so running sessions reload the new MCP
config.
- **Remove post-onboarding walkthrough** — the coach-mark tour that ran
after onboarding (spotlighting each nav pill) is deleted; a
just-onboarded user lands straight on Home.
- **Pin the drag-to-grant card under System Settings** — the permission
drag card was pinned to the screen's bottom quarter; it now anchors
directly beneath the live Settings window (flipping above it when
there's no room below) so it follows the window and never covers the
drop target.

## 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


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10340?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
…0218)

Full presentation-layer redesign of the Omi macOS desktop app to the
"Second Brain" design — a reskin + IA restructure over the existing
services/stores (no business logic rewritten, only rebound).

## What changed
- New app shell (Today · Conversations · Follow-ups + ⌘K palette +
overflow) with a centered glass column and ridgeline wallpaper
- Conversational, live-wired onboarding (permissions incl. Full Disk
Access + push-to-talk/Accessibility, launch-at-login, calendar, a live
"wow" chat)
- Premium sign-in on the dune background
- Notch as an audio-centric surface (push-to-talk) with live receipts +
conversation-end moments
- Geist / Geist Mono typography, strictly monochrome, dark-only
- Live surfaces: Today, Conversations + detail, Follow-ups, Ask,
Memories ("What I Know"), Apps, Permissions, Rewind

## Design rules honored
Monochrome only, Geist fonts, logo spins only while working, notch black
glass, no elapsed timers, continuous-listening default, word-by-word
streaming.

## Verification
Built + run as a signed named bundle; exercised
Today/Conversations/Apps/Memories/Rewind/onboarding live via the
automation bridge; `swift build` clean.

## Known follow-ups (not blockers)
- Legacy Settings two-pane still needs a monochrome/Geist reskin to
fully blend in
- "What I Know" and onboarding-insights polish planned

## Product invariants affected

- INV-AUTH-1
- INV-CHAT-1
- INV-INT-1
- INV-MEM-1

Failure-Class: none

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10218?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

needs-maintainer-review Needs a human maintainer to sign off before merge needs-tests PR introduces logic that should be covered by tests security-review Touches auth, provider routing, secrets, or security-sensitive surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants