Skip to content

feat(desktop): Home redesign — chat-with-history as home, 2nd-brain greeting hub - #10184

Merged
kodjima33 merged 8 commits into
mainfrom
kodjima33/homepage-redesign
Jul 21, 2026
Merged

kodjima33 merged 8 commits into
mainfrom
kodjima33/homepage-redesign

Conversation

@kodjima33

@kodjima33 kodjima33 commented Jul 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Redesign of the desktop Home page (iterated live with Nik):

  • Chat with history is the Home surface: auto-opens when history exists, borderless, and not exitable via click-outside/Esc (connect tray collapses back to chat). The automation bridge's home_close_panel keeps the hub jump for e2e determinism.
  • 2nd-brain greeting hub for empty-history accounts: "Your 2nd brain is ready, {name}." + "Here's what it already knows to do:" with up to three rows — a task (session-dismissable), an insight (absorbs the What-matters-now cards incl. dismiss-reason feedback and a Later context action), and suggested questions (HomeKnowsListComposer, unit-tested).
  • Header: inline stats strip (conversations / tasks / memories / screenshots) + Capture/Listening controls, inset to the same 900px column as the chat and ask bar.
  • Quieter chat timeline (ChatBubble/ChatMessagesView): omi replies left-aligned, user messages right-aligned, both content-hugging with a 640px cap; no default assistant avatar (app personas keep theirs); no user person icon; subtle bubble surfaces; message actions/timestamps on hover only; Home passes horizontalContentPadding: 0 so bubble edges align exactly with the ask bar's verticals.
  • Neutral styling: purple stageGlow/tileHover removed from HomePalette (INV-UI-1 ratchet down).
  • DashboardPage line-count baseline raised 4448 → 4543 with justification (component split tracked as follow-up).

Product invariants

  • INV-CHAT-1 — display-only changes to the shared chat timeline (ChatBubble, ChatMessagesView layout/padding). No write-path, provider, projection, or identity changes; ChatTimelineContinuityTests, AgentPillLifecycleTests, and the INV-6 tripwires pass unchanged.

Failure-Class: none

Verification

  • Built and ran named bundle omi-home-redesign through every iteration; exercised the real paths: chat auto-open with real history, Esc/click-outside no-exit (real key events + bridge state assertions), connect toggle round-trip back to chat, knows rows with live tasks/questions, header stats live counts, bubble alignment against the ask bar verticals (screenshots in session).
  • Suites: HomeKnowsComposerTests (7 new), DashboardCaptureStateTests, ChatTimelineContinuityTests, AgentPillLifecycleTests, HomeSuggestionsStoreTests, HomeStatusStoreTests — all pass (re-run after rebase onto main).
  • python3 scripts/check-e2e-flow-coverage.py --strict → Uncovered: 0 (HomeKnowsComposer.swift added to home-stage.yaml covers; flow's S2 now collapses to hub first since chat auto-opens).
  • make preflight green with this body.
  • Changelog fragment added.

🤖 Generated with Claude Code

Review in cubic

kodjima33 and others added 8 commits July 21, 2026 01:55
…-brain greeting hub

Home hub redesigned to the '2nd brain' direction with neutral grey styling:
- Inline header stats strip (conversations / tasks / memories / screenshots)
- Centered 'Your 2nd brain is ready, {name}.' greeting with task/insight/question
  knows-list rows (task ○ session-dismiss, insight 💡 with feedback-reason
  dismiss + Later context menu, question ↗ asks)
- Chat with existing history IS the home surface: auto-opens, borderless,
  900px readable column, no click-outside/Esc exit (connect still collapses
  back to chat)
- Quieter chat timeline: no default assistant avatar, subtle bubble surfaces,
  hover-only message actions/timestamps
- HomePalette purple stageGlow/tileHover neutralized (INV-UI-1 ratchet down)
- What-matters-now cards folded into insight rows; goals surfaces unchanged

Verification: built and ran named bundle omi-home-redesign; exercised hub →
chat auto-open with real history, Esc/click-outside no-exit, connect toggle
Esc → chat, knows rows with live tasks/questions, header stats live counts.
Unit: HomeKnowsComposerTests (7) + DashboardCaptureStateTests +
ChatTimelineContinuityTests + AgentPillLifecycleTests all pass.
e2e home-stage.yaml updated for deterministic hub baseline.

Co-Authored-By: Claude Fable 5 <[email protected]>
…r avatar

Message bubbles cap at 640px and align by sender instead of spanning the
full column; the person-icon user avatar is removed for a quieter timeline.

Verification: rebuilt + relaunched omi-home-redesign, real chat history
renders left/right aligned content-hugging bubbles (screenshot evidence);
ChatTimelineContinuityTests / AgentPillLifecycleTests /
DashboardCaptureStateTests pass.

Co-Authored-By: Claude Fable 5 <[email protected]>
The chat message column now matches the ask bar's width exactly (shared
horizontalContentPadding seam on ChatMessagesView, 0 on Home) so omi bubbles
start at the bar's left vertical and user bubbles end at its right vertical.

Verification: rebuilt + relaunched omi-home-redesign; screenshot shows
bubble edges flush with the ask bar pill on both sides.

Co-Authored-By: Claude Fable 5 <[email protected]>
…sure

Ask bar and chat column now share homeChatColumnMaxWidth (900) in chat mode,
edges aligned. HomeKnowsComposer.swift added to home-stage.yaml covers
(check-e2e-flow-coverage.py --strict now passes, uncovered: 0).

Verification: rebuilt + relaunched omi-home-redesign; screenshot shows the
narrower centered column with bubbles flush to the bar's verticals.

Co-Authored-By: Claude Fable 5 <[email protected]>
Stats strip and Capture/Listening controls now inset to the same 900px
measure as the chat column and ask bar.

Verification: rebuilt + relaunched omi-home-redesign; screenshot shows
header, messages, and ask bar sharing the same verticals.

Co-Authored-By: Claude Fable 5 <[email protected]>
@kodjima33
kodjima33 merged commit b54ad85 into main Jul 21, 2026
9 of 10 checks passed
@kodjima33
kodjima33 deleted the kodjima33/homepage-redesign branch July 21, 2026 06:03
Archit-lal added a commit to Archit-lal/omi that referenced this pull request Jul 21, 2026
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]>
skanderkaroui pushed a commit that referenced this pull request Jul 22, 2026
…hover-only actions, Continue-in-Omi landing, knows-list dedup)

Four bugs introduced by the Home redesign (#10184) and floating-bar typing
removal (#10181):

- Hub click/Esc trap: the collapse catchers mounted whenever
  homeMode != homeRestingMode, which with chat history present put them OVER
  the hub — a stray click or Esc then *opened* the chat. Catchers now mount
  only over a non-resting panel, never the hub
  (HomeStageMode.collapseCatcherActive). Also corrected the
  autoOpenChatForExistingHistoryIfNeeded comment, which described an
  'Esc back to the hub' that cannot exist once history is present.
- Chat message actions/timestamps were opacity-gated on pointer hover only,
  leaving Tab / Full Keyboard Access focused on invisible buttons. The
  metadata row now also reveals while any of its controls holds keyboard
  focus (shared FocusState + ChatBubbleMetadataReveal).
- 'Continue in Omi' only called openMainAppWindow(), landing the user on
  whatever tab the main window last showed. Both floating-bar affordances now
  route through openMainAppChat(): a one-shot MainChatNavigationRequestStore
  request switches DesktopHomeView to the Home tab and DashboardPage opens
  the chat panel on mount or in place.
- HomeKnowsListComposer derives question-row IDs from text; duplicate
  suggestions produced colliding ForEach IDs. Questions are deduped.

Failure-Class: none

Verification:
- xcrun swift build -c debug --package-path Desktop — clean.
- xcrun swift test --filter 'HomeKnowsComposerTests|HomeStageCollapseCatcherTests|MainChatNavigationRequestStoreTests|ChatBubbleMetadataRevealTests' — 15/15 pass (new regression tests for all four fixes).
- Guard suites ChatTimelineContinuityTests, DashboardCaptureStateTests, HomeSuggestionsStoreTests, HomeStatusStoreTests — pass.
- desktop-core-harness.sh --self-check and check-e2e-flow-coverage.py --strict — pass (MainChatNavigationRequest.swift covered by home-stage.yaml).
- Live named-bundle exercise was attempted but is blocked on this machine:
  no signed-in session to seed, no redis/docker for the hermetic T2 stack,
  and the Auth-emulator local profile launch wedges in SecItemAdd under the
  console-user launch path. The behavior changes are covered by the unit
  regression tests above; the real user-facing paths were NOT exercised
  end-to-end.
skanderkaroui added a commit that referenced this pull request Jul 22, 2026
…, keyboard-invisible chat actions, Continue-in-Omi landing) (#10211)

## Summary

Fixes four UI regressions introduced by the Home redesign (#10184) and
the floating-bar typing removal (#10181), plus repairs three
`AgentPillLifecycleTests` tripwires that have been red on `main` since
#10181 merged.

- **Hub click/Esc trap**: the click-outside/Esc collapse catchers
mounted whenever `homeMode != homeRestingMode`, which with chat history
present put them *over the hub* — a stray click or Esc then **opened**
the chat (Esc entering a screen). Catchers now mount only over a
non-resting panel, never the hub (`HomeStageMode.collapseCatcherActive`,
unit-tested). Also corrected the
`autoOpenChatForExistingHistoryIfNeeded` comment that described an "Esc
back to the hub" which cannot exist once history is present (its real
purpose is not overriding the bridge's `home_close_panel`).
- **Keyboard-invisible message actions**: the redesigned quiet timeline
gated the per-message actions/timestamp row on pointer hover only, so
Tab / Full Keyboard Access landed on invisible buttons. The row now also
reveals while any of its controls holds keyboard focus (shared
`FocusState` + `ChatBubbleMetadataReveal`, unit-tested).
- **"Continue in Omi" lands on the chat**: both floating-bar affordances
called `openMainAppWindow()` only, dropping the user on whatever tab the
main window last showed. They now route through `openMainAppChat()`: a
one-shot `MainChatNavigationRequestStore` request switches
`DesktopHomeView` to the Home tab and `DashboardPage` opens the chat
panel on mount or in place. The deliberately-relabeled "Open Omi"
shortcut/button are unchanged.
- **Knows-list duplicate IDs**: `HomeKnowsListComposer` derives
question-row IDs from text; duplicate suggestions produced colliding
`ForEach` IDs. Questions are now deduped (unit-tested).
- **Tripwire repair (separate commit)**:
`testProviderRequestsStayInTheModelLoop`,
`testSubagentComposerOnlyContinuesItsCanonicalSession`, and
`testTypedSendDelegatesResponseSizingToWindow` still pinned the typed
composer #10181 deleted — reproduced all three failing on clean `main`
at 476feab. They now pin the replacement contract (composer routes
via `openMainAppChat()`; archive owned by the window's query paths).

## Product invariants

- INV-CHAT-1 — display-only change to the shared chat timeline:
`ChatBubble` metadata-row reveal adds keyboard focus as a reveal
trigger. No write-path, provider, projection, or identity changes;
`ChatTimelineContinuityTests` and `AgentPillLifecycleTests` pass.
- INV-AUTH-1 — `OmiApp.swift` is touched only to add `openMainAppChat()`
(window reveal + navigation request); no session/auth lifecycle changes.
`desktop-auth-session-ratchet` passes.

Failure-Class: none

## Verification

- `xcrun swift build -c debug --package-path Desktop` — clean.
- `xcrun swift test --filter
'HomeKnowsComposerTests|HomeStageCollapseCatcherTests|MainChatNavigationRequestStoreTests|ChatBubbleMetadataRevealTests'`
— 15/15 pass (new regression tests covering all four fixes).
- Guard suites `ChatTimelineContinuityTests`,
`DashboardCaptureStateTests`, `HomeSuggestionsStoreTests`,
`HomeStatusStoreTests` — pass.
- `AgentPillLifecycleTests` — 75/75 pass (72/75 on clean `main`; the 3
failures reproduce there without this branch).
- `./scripts/desktop-core-harness.sh --self-check` — pass (56 flows, 132
actions).
- `python3 scripts/check-e2e-flow-coverage.py --strict` — Uncovered: 0
(`MainChatNavigationRequest.swift` covered by `home-stage.yaml`).
- `make preflight` — green with this body.
- **Not exercised end-to-end**: live signed-in named-bundle verification
is currently blocked on this machine (no seedable session; no
redis/docker for hermetic T2; Auth-emulator local-profile launch wedges
in `SecItemAdd` under the console-user launch path). A manual pass on a
signed-in machine before merge is recommended: (1) with chat history,
bridge `home_close_panel` then stray-click/Esc must stay on the hub; (2)
floating-bar "Continue in Omi" from a non-Home tab must land on the Home
chat; (3) Tab through a chat message must reveal its action row.


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

## Summary

Redesign of the desktop Home page (iterated live with Nik):

- **Chat with history is the Home surface**: auto-opens when history
exists, borderless, and not exitable via click-outside/Esc (connect tray
collapses back to chat). The automation bridge's `home_close_panel`
keeps the hub jump for e2e determinism.
- **2nd-brain greeting hub** for empty-history accounts: "Your 2nd brain
is ready, {name}." + "Here's what it already knows to do:" with up to
three rows — a task (session-dismissable), an insight (absorbs the
What-matters-now cards incl. dismiss-reason feedback and a Later context
action), and suggested questions (`HomeKnowsListComposer`, unit-tested).
- **Header**: inline stats strip (conversations / tasks / memories /
screenshots) + Capture/Listening controls, inset to the same 900px
column as the chat and ask bar.
- **Quieter chat timeline** (`ChatBubble`/`ChatMessagesView`): omi
replies left-aligned, user messages right-aligned, both content-hugging
with a 640px cap; no default assistant avatar (app personas keep
theirs); no user person icon; subtle bubble surfaces; message
actions/timestamps on hover only; Home passes `horizontalContentPadding:
0` so bubble edges align exactly with the ask bar's verticals.
- **Neutral styling**: purple `stageGlow`/`tileHover` removed from
`HomePalette` (INV-UI-1 ratchet down).
- DashboardPage line-count baseline raised 4448 → 4543 with
justification (component split tracked as follow-up).

## Product invariants

- INV-CHAT-1 — display-only changes to the shared chat timeline
(`ChatBubble`, `ChatMessagesView` layout/padding). No write-path,
provider, projection, or identity changes;
`ChatTimelineContinuityTests`, `AgentPillLifecycleTests`, and the INV-6
tripwires pass unchanged.

Failure-Class: none

## Verification

- Built and ran named bundle `omi-home-redesign` through every
iteration; exercised the real paths: chat auto-open with real history,
Esc/click-outside no-exit (real key events + bridge state assertions),
connect toggle round-trip back to chat, knows rows with live
tasks/questions, header stats live counts, bubble alignment against the
ask bar verticals (screenshots in session).
- Suites: `HomeKnowsComposerTests` (7 new),
`DashboardCaptureStateTests`, `ChatTimelineContinuityTests`,
`AgentPillLifecycleTests`, `HomeSuggestionsStoreTests`,
`HomeStatusStoreTests` — all pass (re-run after rebase onto main).
- `python3 scripts/check-e2e-flow-coverage.py --strict` → Uncovered: 0
(`HomeKnowsComposer.swift` added to `home-stage.yaml` covers; flow's S2
now collapses to hub first since chat auto-opens).
- `make preflight` green with this body.
- Changelog fragment added.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…, keyboard-invisible chat actions, Continue-in-Omi landing) (BasedHardware#10211)

## Summary

Fixes four UI regressions introduced by the Home redesign (BasedHardware#10184) and
the floating-bar typing removal (BasedHardware#10181), plus repairs three
`AgentPillLifecycleTests` tripwires that have been red on `main` since
BasedHardware#10181 merged.

- **Hub click/Esc trap**: the click-outside/Esc collapse catchers
mounted whenever `homeMode != homeRestingMode`, which with chat history
present put them *over the hub* — a stray click or Esc then **opened**
the chat (Esc entering a screen). Catchers now mount only over a
non-resting panel, never the hub (`HomeStageMode.collapseCatcherActive`,
unit-tested). Also corrected the
`autoOpenChatForExistingHistoryIfNeeded` comment that described an "Esc
back to the hub" which cannot exist once history is present (its real
purpose is not overriding the bridge's `home_close_panel`).
- **Keyboard-invisible message actions**: the redesigned quiet timeline
gated the per-message actions/timestamp row on pointer hover only, so
Tab / Full Keyboard Access landed on invisible buttons. The row now also
reveals while any of its controls holds keyboard focus (shared
`FocusState` + `ChatBubbleMetadataReveal`, unit-tested).
- **"Continue in Omi" lands on the chat**: both floating-bar affordances
called `openMainAppWindow()` only, dropping the user on whatever tab the
main window last showed. They now route through `openMainAppChat()`: a
one-shot `MainChatNavigationRequestStore` request switches
`DesktopHomeView` to the Home tab and `DashboardPage` opens the chat
panel on mount or in place. The deliberately-relabeled "Open Omi"
shortcut/button are unchanged.
- **Knows-list duplicate IDs**: `HomeKnowsListComposer` derives
question-row IDs from text; duplicate suggestions produced colliding
`ForEach` IDs. Questions are now deduped (unit-tested).
- **Tripwire repair (separate commit)**:
`testProviderRequestsStayInTheModelLoop`,
`testSubagentComposerOnlyContinuesItsCanonicalSession`, and
`testTypedSendDelegatesResponseSizingToWindow` still pinned the typed
composer BasedHardware#10181 deleted — reproduced all three failing on clean `main`
at 476feab. They now pin the replacement contract (composer routes
via `openMainAppChat()`; archive owned by the window's query paths).

## Product invariants

- INV-CHAT-1 — display-only change to the shared chat timeline:
`ChatBubble` metadata-row reveal adds keyboard focus as a reveal
trigger. No write-path, provider, projection, or identity changes;
`ChatTimelineContinuityTests` and `AgentPillLifecycleTests` pass.
- INV-AUTH-1 — `OmiApp.swift` is touched only to add `openMainAppChat()`
(window reveal + navigation request); no session/auth lifecycle changes.
`desktop-auth-session-ratchet` passes.

Failure-Class: none

## Verification

- `xcrun swift build -c debug --package-path Desktop` — clean.
- `xcrun swift test --filter
'HomeKnowsComposerTests|HomeStageCollapseCatcherTests|MainChatNavigationRequestStoreTests|ChatBubbleMetadataRevealTests'`
— 15/15 pass (new regression tests covering all four fixes).
- Guard suites `ChatTimelineContinuityTests`,
`DashboardCaptureStateTests`, `HomeSuggestionsStoreTests`,
`HomeStatusStoreTests` — pass.
- `AgentPillLifecycleTests` — 75/75 pass (72/75 on clean `main`; the 3
failures reproduce there without this branch).
- `./scripts/desktop-core-harness.sh --self-check` — pass (56 flows, 132
actions).
- `python3 scripts/check-e2e-flow-coverage.py --strict` — Uncovered: 0
(`MainChatNavigationRequest.swift` covered by `home-stage.yaml`).
- `make preflight` — green with this body.
- **Not exercised end-to-end**: live signed-in named-bundle verification
is currently blocked on this machine (no seedable session; no
redis/docker for hermetic T2; Auth-emulator local-profile launch wedges
in `SecItemAdd` under the console-user launch path). A manual pass on a
signed-in machine before merge is recommended: (1) with chat history,
bridge `home_close_panel` then stray-click/Esc must stay on the hub; (2)
floating-bar "Continue in Omi" from a non-Home tab must land on the Home
chat; (3) Tab through a chat message must reveal its action row.


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

1 participant