Skip to content

fix(desktop): one navigation, dismissal, delete and copy vocabulary across the macOS app (INV-UI-2) - #17286

Merged
Git-on-my-level merged 47 commits into
mainfrom
fix/macos-ux-consistency
Sep 24, 2026
Merged

Git-on-my-level merged 47 commits into
mainfrom
fix/macos-ux-consistency

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Status (2026-09-24): merged as ba1f71d03c after reconciliation onto #17281 (8d8984bac8). CI on head f8041ec774: 31 pass / 11 skipped. Not in a desktop release yet.

Summary

A UI/UX consistency pass over the shipped macOS app, plus the infrastructure that keeps it from drifting back.

The audit found the same interaction built many different ways. The worst cases:

  • about 11 back controls and 6 close buttons, including an xmark on the Transcript (which replaces the page) beside a "‹ Back" on the page it replaced;
  • Esc jumping straight to Chat from inside a conversation, memory or transcript;
  • four delete policies, one of them an undo toast whose X deleted immediately;
  • nine date formats, none of them locale-aware;
  • raw SPEAKER_00 labels in the Participants line;
  • Activity and Conversations showing different durations for the same conversation.

This PR adds one shared component per interaction, migrates callers onto them, writes the rules down, and locks them with a ratchet.

Design infrastructure (so the next change doesn't reinvent this)

  • Contract: desktop/macos/docs/ux-contract.md. It gives each rule and the component that implements it: leaving a surface, Esc, controls, destructive actions, feedback timing, dates, speakers, type/radius, words, page chrome. The root AGENTS.md routes macOS UI work to it.

  • Shared components (MainWindow/Components/):

    • navigation and dismissal: BackChip, DismissButton (moved out of AppsPage.swift), ClearFieldButton
    • controls: OmiIconButton, OmiIconMenu, CopyButton, OmiClipboard
    • feedback and prompts: UndoToast, OmiToastCenter, TextPromptSheet, ConversationRowPrompts
    • formatting: OmiDateFormat, SpeakerLabelFormatter
    • pointer: pointingHandOnHover
  • Guard — INV-UI-2 (product/invariants/desktop-ux-contract.md). .github/scripts/check_desktop_ux_contract.py is a per-file, no-increase ratchet against the merge base. It covers 10 rules:

    • hand-rolled back/close glyphs
    • .alert
    • raw pasteboard writes
    • raw NSCursor pushes
    • dateFormat strings
    • .system(size:) fonts
    • literal font sizes
    • literal corner radii
    • "..." in UI copy

    Existing debt may stay; a file may not grow more, and new files start at zero. Deliberate exceptions carry // omi-ux-allow: <rule> -- <reason>. test_check_desktop_ux_contract.py proves each rule fails on the defect it was written for. Both are wired into checks-manifest.yaml. The PR rule does not require naming INV-UI-2 in routine UI PRs.

  • Tests: DesktopUXContractTests covers:

    • date styles, pinned to a calendar and locale
    • 1-based speaker labels, matching mobile, with no raw labels in participants or copies
    • Settings Back and Esc returning to the page that opened Settings
    • the empty-copy guard
    • the icon-button fill ladder
    • Activity/list duration parity
    • a tripwire that every Settings search result has a card to scroll to

Fixes, by area

Leaving a surface and Esc

  • The Transcript leaves with ‹ Summary on the leading edge and keeps the conversation title in its header. The count badge says "388 segments".
  • Esc removes the innermost layer first on Conversations (transcript → detail → multi-select → search), Memories (panel → search), Tasks (edit → detail → chat panel), Apps ("See more" → search) and Brain Map. Brain Map no longer switches sub-tabs.
  • Back returns to where you came from:
    • a conversation opened from Activity or a memory shows ‹ Activity / ‹ Memories, and the memory panel stays open;
    • Settings shows ‹ <origin> and Esc does the same;
    • Daily Recap names its origin.
  • Clicking the active Memories chip returns that page to its root.
  • While a detail is open, the search bar above it is hidden, so typing no longer silently closes the detail.
  • Every remaining back/close control now uses BackChip / DismissButton / ClearFieldButton:
    • Rewind's "⌃ Back to Rewind" and its chevron-in-a-circle
    • Apps "See more"
    • Daily Recap
    • Task chat panel
    • Brain Map inspector
    • Settings and in-chat sheets
    • banners and popups
  • Unused views carrying the old styles are deleted: ActivityBackButton, GoalsHistoryPage, CanonicalMemoryAtlasPage, CategoryAppsSheet, RewindTimelinePlayerView.

Destructive actions: one policy — undo when the delete can be deferred, a shell-drawn confirmation when it can't, never neither.

  • These now use .shellConfirmation instead of .alert or NSAlert:
    • conversation delete (detail and row)
    • merge
    • bulk task delete
    • Delete Default Memories
    • Delete Account
    • persona and screenshot delete
    • Rescan Files
    • "Make Public"
  • These had no confirmation and now ask first:
    • Clear Chat
    • live note delete
    • AI profile delete
    • integration-suggestion reset
    • the status-bar "Reset Onboarding…"
  • Memories and Tasks share one UndoToast, which shows the item name and has no X. The Memories X that committed the delete is gone.
  • ⌘D deleted whatever task the pointer was over. Delete is now ⌘⌫, acting on the keyboard selection only.
  • The Apps "disable" button is a labeled secondary button instead of a red trash can.

Headers and controls

  • The conversation header uses one control language:
    • labeled actions in OmiButtonStyle
    • icon actions as 28 pt OmiIconButtons
    • the folder menu without its stray chevron
    • a red delete glyph
  • Icon-only buttons that had no tooltip or label now have both.
  • Sign Out is secondary.
  • Memories' "More" is a menu, not a popover, and sits in [More] [New Memory] order.

Copy

  • Every copy confirms, via a checkmark or the shared toast.
  • A row's "Copy Transcript" fetches the detail when the list omitted segments, and honors the lock.
  • Copies never report success on an empty string.

Conversations and transcript

  • Participants use real names or "Speaker N".
  • Bubble, copy and participant labels agree and are 1-based, matching mobile.
  • The timestamp sits in the speaker's name row; recordings over an hour read 1:02:05 instead of 62:05.
  • The speaker label shows "Change speaker…" on hover even once a speaker is named.
  • The speaker sheet preselects the current assignment and responds to Return/Esc.
  • A soft top fade and a divider stop labels being sliced under the header.
  • Rows group by the date they display, and show only the time inside a day group.
  • Row menus: the hover "…" menu and the right-click menu are now one list, with consistent casing and ellipses.
  • Title and date:
    • truncated titles carry a tooltip
    • the detail header reads "Sep 23, 2026, 10:17 – 11:19 AM" in the user's locale
    • the source label reads "Omi" / "Apple Watch"
    • the Summary icon is no longer the Starred star.

Activity

  • Duration now comes from the conversation's content, the same number the list shows. It previously used the capture-socket window (FC-capture-session-window-read-as-content-duration).
  • Activity uses displayTitle, the neutral waveform tile instead of 💬, and the shared day-header style instead of British date order.

Floating bar

  • Esc closes and keeps the conversation. It used to clear it, cancelling any answer still streaming.
  • Clearing is an explicit "Clear" control.
  • Esc dismisses a notch card.
  • The header shows an xmark when it closes and a chevron only when it goes back.

Onboarding and popups

  • Onboarding:
    • Back is on the leading edge.
    • The header action reads "Skip Setup".
    • Arrow-only buttons have spoken labels.
    • Permission reasons use one voice and macOS naming.
    • ⌘Q keeps working on the shortcut steps.
  • The first-use popup no longer vanishes forever on a stray click on the dim, and closes with Esc.
  • The Cloud Connector card no longer dismisses when clicked.
  • What's New pauses while hovered.

Menus and shortcuts

  • ⌘1–⌘4 mirror the top bar (Chat, Memories, Tasks, Apps). The Memories chip row is under "Go to in Memories" as ⌥⌘1–5.
  • The status-bar menu:
    • drops a ⌘O that only worked while the menu was open
    • gains "Settings…"
    • confirms "Reset Onboarding…"
  • Settings lists ⌃⌘O, which onboarding recommends, so it never reads as "Custom". Onboarding offers push-to-talk keys in Settings' order.
  • Settings search:
    • "Ask omi" and "Rewind" pointed at cards that don't exist
    • the duplicate "Report an Issue" entry is removed
    • a test now pins every search result to a card
  • The Settings audio-mode names match the toolbar ("Always On", "Only Meetings").
  • A click on the audio control while transcription is blocked opens Settings, as its tooltip already promised.
  • The chat plan-limit prompt opens Settings → Plan and Usage instead of a hard-coded "$199/month" web page.

Words

  • Omi (not omi) in UI copy; "…" instead of "..." in UI strings.
  • One retry verb ("Try Again") and one snooze verb ("Not Now").
  • Title Case buttons and menu items.
  • Search placeholders name what they search, with no trailing ellipsis.

Round 2: follow-up improvements

Done by six parallel agents, each on its own branch cut from this PR (ux2/*), then merged here.

  • Settings: neutral selection.
    • The selected sidebar row uses the top bar's neutral pill fill, not a solid blue slab.
    • The on track of OmiToggleStyle switches is Ink.primary, app-wide.
    • Sliders, stepped sliders, the tier picker, the Transcription mode cards and the Shortcut chips are neutral. Ink.accent stays only on focus rings, status colors and the one actionable link.
  • Settings: window reset. "Reset Window Size" has its own quiet Window Size card; it's no longer a black primary button inside Font Size. Search points at it.
  • Prompt editors. The three prompt editors share one AssistantPromptEditor:
    • edits are a draft, saved with Save (⌘↩) or discarded with Cancel (Esc)
    • Reset asks first
    • Reset clears the saved prompt instead of writing the default as if the user had typed it
  • Conversation summary.
    • The redundant "Conversation Details" card is gone.
    • Action items show "Add to Tasks" / "Transcript" on hover or focus. The space is reserved so rows don't reflow, and added, in-flight and failed states stay visible. A failed add now shows "Try Again".
  • More menus. They're neutral everywhere through a new PageMoreMenu. A new guard rule, hand-rolled-more-menu, stops the blue label coming back.
  • Speaker unassign. The speaker sheet offers "Unassign", backed end to end: API assign_type: "person_id" with no value, backend, then SQLite. "Also tag other segments" now includes the tapped segment when you're the speaker.
  • Find in transcript.
    • ⌘F opens a find field in the transcript.
    • Matching ignores case and diacritics, highlights matches, and shows "N of M".
    • ⌘G / ⇧⌘G and Return / ⇧Return step between matches.
    • Esc closes find, then the transcript.
  • Live and saved transcripts render through one bubble component: same name · time row, colors, avatar, and 1-based speaker names.
  • ⌘F and ⌘N everywhere. FindCommandRouter sends ⌘F to the visible page's search field on every page. ⌘N opens New Memory.
  • Page states.
    • One GlassEmptyState / GlassErrorState / GlassLoadingState, used by Conversations, Tasks, Memories, Apps, Persona, Goals, Rewind and the chat sessions sidebar.
    • Page buttons are on OmiButtonStyle, and Apps has one Open/Install size.
    • A new guard rule, scaled-progress-view, catches spinners resized with .scaleEffect.
  • Floating bar.
    • One notice policy (FloatingBarNoticePolicy): confirmations 1.5 s, informational cards 8 s and paused while hovered, trial cards until dismissed.
    • One 24 pt NotchDismissButton, replacing five 18 pt ones.
    • The reach-error card says "Dismiss" instead of "Skip".
    • The menu bar has "Show / Hide Floating Bar".
  • Onboarding. Back returns to the last step actually shown. The progress dots count only steps that will be shown and advance one per answer. Skip is always offered on the screen demo.
  • Navigation.
    • Goals no longer lights the Chat pill, and has a Back chip and Esc to its origin.
    • Daily Recap lights its origin's pill.
    • A task's screen evidence opens Rewind with ‹ Tasks.
  • Headers and motion.
    • One page-header rule, with Goals and Recap on GlassPageHeader.
    • Motion tokens (quick, standard, emphasized) behind one Reduce-Motion gate.
    • The floating bar's springs are gathered into named FloatingBarMotion constants.

The contract doc gains §10 Page states, §11 Page headers, §12 Keyboard and §13 Motion.

Round 3: David's rulings

  • The audio control opens a mode menu instead of cycling on each click.

    • The menu lists Off / Always On / Only Meetings, each with what it records, plus "Audio Settings…". It's keyboard- and VoiceOver-reachable.
    • The icon stays a microphone in every mode; Only Meetings adds a handset badge.
    • "Armed, waiting for a call" gets its own ring dot, so green only means recording now.
    • Choosing a mode that needs the mic without permission asks for it and doesn't change the mode.
    • ShellListeningCycleTests becomes ShellListeningModeMenuTests, and the legibility tests measure the new dot and badge.
  • Multiple Chat Sessions is removed, along with its dead code (~1,400 lines):

    • the toggle and its search entry
    • ChatSessionsSidebar
    • the ChatProvider session APIs and state
    • the multi-chat bridge snapshot fields
    • six analytics events that only this path fired

    Every path now behaves as the default toggle-off setting did. INV-CHAT-1 still holds: agent-logic-harness.sh --swift-only passes 680 tests, including the INV-6 continuity suites, and check-single-chat-shell.py passes. Desktop no longer calls GET/POST /v2/chat-sessions, PATCH /v2/chat-sessions/{id}, /v2/chat/initial-message or /v2/chat/generate-title. The web app still uses them, so the backend keeps them.

    What upgraders see: a user who had the toggle on lands in the main chat, as they already did at every launch. Their other sessions stay in storage but can't be reached from desktop; the session list was already unmounted, so nothing visible changes.

Rulings (David, 2026-09-23)

  • Top-bar "Memories" vs the "Memories" sub-tab: leave as is. The 2026-08-28 rename (7ea1efa6bc) stands.
  • Default Ask-Omi shortcut: keep ⌘O. ⌃⌘O is offered first in both onboarding and Settings, and saved bindings are not migrated.
  • Audio control: a click opens a mode menu instead of cycling. See "Round 3" above.
  • "Multiple Chat Sessions": remove the toggle and all dead multi-chat code. See "Round 3" above.

Reconciled with #17281 (capture groups), 2026-09-24

#17281 merged first. Both PRs edited the same 8 files under desktop/macos/Desktop/, so this branch merges it by hand and keeps both behaviour sets. Nothing was transplanted from the pre-#17281 page.

  • Conversation page. feat(conversations): one row per recorded event across capture surfaces #17281's split stays: ConversationDetailHeader, ConversationDetailSections and ConversationCaptureRecordings. This PR's behaviour moves into that structure:
    • The header's back control is BackChip with the origin's name ("‹ Conversations", "‹ Memories").
    • The emoji falls back to the waveform, and the status badge no longer wraps.
    • Star, Discuss and "…" use the shared icon-button chrome (OmiIconButton / OmiIconMenu).
    • Esc peels one layer at a time: find, then the recordings list, then the transcript, then the page.
    • Find in transcript (⌘F, highlights, "N of M") sits beside the transcript's re-sync button.
    • Delete uses shellConfirmation, and rename uses TextPromptSheet.
    • Copy Transcript goes through OmiToastCenter with SpeakerLabelFormatter.
  • Action items use ConversationActionItemRow inside feat(conversations): one row per recorded event across capture surfaces #17281's grouped card. Controls appear on hover or focus, and every state works: linked, adding, added, failed ("Try Again") and add. The row no longer draws its own card.
  • Speaker labels. The header's participants now use SpeakerLabelFormatter, so they match the bubbles: SPEAKER_01 is "Speaker 2". feat(conversations): one row per recorded event across capture surfaces #17281's test is updated to match.
  • Recordings list. The Separate confirmation moves from a system .alert to shellConfirmation, which INV-UI-2 requires. Esc goes through onEscapeKey(.modal) instead of onExitCommand.
  • Pendant label (coordinator ruling, 2026-09-24, delegated by David). The Omi pendant's capture label reads "Pendant" in the row badge's tooltip and accessibility label, the detail header and the recordings list. Mobile makes the same change. Desktop, Phone and Apple Watch are unchanged.
  • List. The group collapse runs inside this PR's date buckets, which are keyed by the displayed startedAt and labelled with OmiDateFormat. The row keeps feat(conversations): one row per recorded event across capture surfaces #17281's device badges, and the source-label switch this PR had reworded stays deleted, because nothing read it.
  • Conversations page. A merge acts only on visible rows (mergeableSelectedIds), so a member hidden behind its event's row can never reach a merge. This holds even when the member was selected before its group collapsed. The confirmation's count uses the same set.
  • Automation (non-production only).
    • conversation_detail_recording action=request_separate raises the real Separate confirmation.
    • conversation_detail_prompt prompt=rename|delete|add_task raises the page's own rename or delete prompt, or presses an action item's task control.
    • Both go through the production handlers, not around them.
  • Also fixed: the suggested-app spinner uses controlSize(.small) instead of scaleEffect. It had moved into a new file, where the ratchet counted it as new.

Not changed

  • Typography, radius and colour debt (124 .system(size:) fonts, 174 literal sizes, 110 literal radii, mostly in the dark notch bar and onboarding illustrations) is held by the ratchet rather than rewritten here. Nearest-rung migration changes rendered sizes and needs its own visual pass.

Verification

  • xcrun swift build -c debug is clean. Local toolchain is Xcode 27.0; CI pins 26.6, which isn't installed here, so the pinned run-swift-ci.sh --test result will come from CI.
  • Full scripts/swift-test-suites.sh with the local toolchain:
    • It found two regressions from this branch, both fixed: the prompt bar's enlarged dismiss target, and a label a test pins.
    • Two suites still fail, CaptureArchiveTests (AVPlayer playback timing) and FloatingBarSurfaceFloorTests.testAStateChangeAloneRaisesTheFrameToTheSurfaceItRequires. Both fail identically on an untouched checkout of the merge base on this machine, so they come from the environment, not this change.
  • After rebasing onto current main, 450 tests across the 19 affected suites (including the new DesktopUXContractTests) pass.
  • python3 .github/scripts/test_check_desktop_ux_contract.py: 13 pass. The guard on this branch reports no increase across 111 changed desktop files.
  • check_desktop_test_quality.py, check_agents_md_lean.py, check_product_invariants.py, swift-format lint: pass. No line-count exceptions are needed.
  • Real app (named bundle omi-ux-consistency, dev backend, test account, driven through the automation bridge, with window captures):
    • The conversation detail shows ‹ Conversations, has no search bar above it, and uses one icon-button style.
    • The Transcript shows ‹ Summary, keeps the title, and reads "214 segments", with the timestamp in the speaker row and 1-based speaker numbers.
    • Esc ×3 goes transcript → summary → list (with search back) → Chat. The list's day header reads "Monday, Sep 21", and rows show time only.
    • Settings opened from Tasks shows ‹ Tasks, and Esc returns to Tasks.
    • The audio-mode segments fit "Always On" / "Only Meetings". This check caught a truncation, which is fixed.

Verification after the #17281 reconciliation (2026-09-24)

  • Build and tests: xcrun swift build --build-tests is clean. 244 tests pass across the affected suites (Xcode 27 locally; CI's pinned 26.6 is authoritative). The suites are capture groups, recordings, conversation detail, summary UX, merge selection, repository, search filter, share link, projection, display state, decoding, DesktopUXContractTests, EscapeKeyDispatchTests, GlassContentChromeTests, TranscriptSearchModelTests, ChatFirstDrillInNavigationTests, ShellListeningModeMenuTests, ShortcutSettingsTests and FindCommand*.
  • Guard: check_desktop_ux_contract.py reports no increase against the merge base.
  • Real app. Named bundle omi-lane1-ux, built from this head against the offline local harness (Firestore emulator, synthetic user alice; nothing touched dev or prod). Captures were grouped by the production hook. Checked through the automation bridge, with window captures:
    • List: one row per event with device badges, under a "Today" bucket.
    • Detail: ‹ Conversations, and no search bar above the page. The header reads "You, Speaker 2", matching the bubbles, and shows "2 recordings".
    • Action item controls are hidden until hover. Add to Tasks → "✓ Added", and the task appears in Tasks.
    • Transcript: ⌘F opens find. Typing "factory" highlights the match with "1 of 1".
    • Esc ×3 goes find → summary → list, with the search bar back.
    • Recordings list: opens, and Esc closes only the list.
    • Recordings list after the Pendant ruling: "Desktop" and "Pendant", each with its time window.
    • Separate: request_separate shows the in-window "Separate This Recording?" dialog, and Esc cancels only the dialog.
    • Delete prompt: the in-window "Delete Conversation?" dialog renders, and Esc cancels it.
    • Rename sheet: renders prefilled.
    • ⌘N on Tasks opens the inline new task.
    • Onboarding (after reset_onboarding): the first screen renders.
  • Could not verify headless. None of these can be driven without a real pointer or key window:
    • Clicking a dialog's confirm button. Confirm buttons deliberately have no Return shortcut, and the agent session has no Accessibility grant. Separation itself was verified on feat(conversations): one row per recorded event across capture surfaces #17281 through the same handler.
    • Typing into the rename sheet. It ignores synthetic key events.
    • ⌘N on Memories. A SwiftUI keyboardShortcut needs a key window, and a background-launched app has none.
    • The mic-mode menu and the menu-bar "Show / Hide Floating Bar" item. Both are system menus.
    • Notch card timing.
    • The onboarding flow past its first screen.

Product invariants affected

  • INV-UI-2 — new; this PR introduces and locks it.
  • INV-UI-1 — no hue introduced; every new component draws from Ink.
  • INV-NAV-1 — no destination loses a way in. Settings Back and Esc now return to their origin, and the menu shortcuts map onto the same four pills plus the Memories chip row.
  • INV-CHAT-1 — the transcript is untouched. The floating bar's Esc now closes instead of clearing (clearing is an explicit control), and the chat copy/clear actions are presentation only.
  • INV-CHAT-2 — ChatMessagesView changes only an ellipsis in a status string.
  • INV-AUTH-1 — SessionRecoveryView changes a button label only; the status-bar Settings item and the Reset Onboarding confirmation do not touch session state.
  • INV-BETA-1 — copy casing only in SettingsContentView+Controls.
  • INV-MEM-1 — Brain Map close/clear controls and Esc fall-through only; tiers untouched.
  • INV-MEM-4 — presentation only.
  • INV-INT-1 — copy and the integration-suggestion reset now confirm before running.
  • INV-TASK-1 — Tasks presentation, keyboard and confirmation only; bucket paging untouched.
  • INV-TASK-2 — presentation only. The desktop manual task writer (TasksStore.createTask from an action item's own control) stays in ConversationDetailSections.swift, where feat(conversations): one row per recorded event across capture surfaces #17281 registered its anchor; it adds a failed/retry state and nothing else.

Failure class

Failure-Class: FC-capture-session-window-read-as-content-duration

🤖 Generated with Claude Code

Git-on-my-level and others added 27 commits September 23, 2026 12:54
…aces

A pendant and the Mac in the same room each produce a full conversation for
one meeting. The backend already linked overlapping captures by wall clock
(#14370), but nothing read the link and window overlap alone is weak
evidence. Confirm window matches with shared speech (word-trigram containment
of the smaller transcript), group confirmed captures under an event id that
is independent of any member, and render one desktop row per group with every
recording still reachable and a sticky "Separate" action.

Grouping is presentation metadata only: transcripts, summaries, discard state,
and derived effects stay per capture.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion, prune stale members, keep desktop selection/search consistent

Addresses an adversarial review of the capture-group change:
- a deleted capture is closed in the same transaction that removes it, so a
  racing finalizer cannot regroup it;
- joins prune members that were deleted, absorbed by sync, or moved, even when
  both captures are already grouped;
- shared-speech confirmation reads both transcripts fresh and the join
  transaction re-checks a stored-transcript fingerprint;
- desktop drops selections that become hidden behind a group's row, refreshes
  search after a separation, and preserves membership through optimistic
  mutations and transcript resync.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cross the macOS app

Adds the shared components (BackChip, DismissButton, ClearFieldButton,
OmiIconButton/OmiIconMenu, CopyButton, UndoToast, OmiToastCenter,
TextPromptSheet, OmiDateFormat, SpeakerLabelFormatter, pointingHandOnHover),
migrates the main window, floating bar and onboarding onto them, writes the
contract down (desktop/macos/docs/ux-contract.md) and locks it with INV-UI-2,
a no-increase ratchet over hand-rolled UX in changed desktop files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s and copy confirmations

Activity measured the capture window, so one conversation showed two lengths
(FC-capture-session-window-read-as-content-duration). Also: the speaker sheet
preselects the current assignment and answers Return/Esc, icon-only controls
carry labels, remaining copies confirm, and ⌘Q survives the onboarding
shortcut steps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…itle Case in a pinned label

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d tidy its layout

The conversation detail now lists every device that recorded the event in a
"Recorded on" row under the title (device, time window, current recording
marked). Another recording opens from its chip, including members the list has
not loaded (fetched by id through ConversationRepository.detail(id:)), and a
recording separates through a quiet "Separate…" menu or the chip's context
menu behind a confirmation. After a separation the detail re-reads its own
membership and AppState refreshes the list, so the row splits. The row's
"Captured by N recordings" submenu is removed; the device badge stays as the
list-level hint.

Layout: one header shared by both panes (back, emoji, title, status, a single
date/time/duration/device/category/folder line, people and place), Summary /
Transcript tabs with the pane's own tools, and star/share/copy plus an
overflow menu (rename, move to folder, delete). The card-in-card and its
"Conversation Details" bar, the metadata chip row, the transcript pane's own
header, and the empty "Try with Apps" slab are gone; sections own their top
spacing so an empty one leaves no gap. Starring from the page is new; every
other capability is kept.

ConversationDetailView.swift drops from 1835 to 1171 lines: header, sections,
and capture-recording UI move to ConversationDetailHeader.swift,
ConversationDetailSections.swift, and ConversationCaptureRecordings.swift.
A conversation_detail_recording bridge action (list/open/separate) drives the
same handlers the chips use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…age buttons

Page states had about seven variants each: glyph sizes 28-48, three error
glyphs, two title weights, and seven styles of "Try Again". Add
GlassPageStates.swift (GlassLoadingState, GlassErrorState, GlassEmptyState,
with .page/.scrolling/.panel placement) and migrate Conversations, Tasks,
Memories, Apps, Persona, Goals (drops ContentUnavailableView), the chat
sessions sidebar and Rewind onto it.

Hand-built filled buttons on those pages move to OmiButtonStyle; Apps'
SmallAppButton and AppActionButton become one compact AppActionButton, and
the connector action labels draw OmiButtonStyle's compact capsule.
Scaled spinners become controlSize(.small), and INV-UI-2 gains a
scaled-progress-view rule so ProgressView().scaleEffect cannot come back.
ux-contract.md gets a Page states section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er unassign

- Action-item rows show Add to Tasks / Transcript on hover or keyboard focus in
  reserved space; added, in-flight, failed (new Try Again) and linked states stay
  visible; both controls are VoiceOver actions on the row (ConversationActionItemRow).
- Conversation detail summary sits on the page: drop the Conversation Details
  header bar and glassCard wrapper; header time range no longer wraps, status
  badge no longer wraps at minimum width.
- PageMoreMenu sets the neutral tint on the Menu; Conversations, Tasks, Apps,
  Memories, Rewind and Brain Map migrate to it; INV-UI-2 rule
  hand-rolled-more-menu keeps a blue More from coming back.
- Name Speaker sheet offers Unassign for a named or You speaker (personId nil,
  isUser false; backend assign-bulk and local SQLite both support it), and You
  segments now group with their You siblings so the tapped segment is saved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eaders, motion tokens

Onboarding (12): Back pops a history of steps actually shown instead of
rawValue - 1, so it never lands on a permission step that was skipped as
already granted. The progress band counts shown steps plus the steps still
ahead that will not be skipped, so it moves one dot per answer. A resumed run
seeds the history from the predicted shown steps. The screen-demo step always
offers Skip for now until Omi has answered.

Navigation (14): Goals records the primary page it was opened from; a
leading BackChip and Esc return there. The top bar lights no pill for Goals
and the origin's pill for a daily recap, never Chat by default. Rewind opened
from a task's evidence (or a Chat citation) shows BackChip(origin) through a
DrillInBack environment value; Esc already returned via closeMorePage.

Keyboard (8b): FindCommandRouter gives ⌘F to the mounted page's search field
from the shared components (QuerySearchBar, OmiSearchField, the Rewind bar,
the Settings sidebar), window-scoped, with a .detail priority for the
transcript's find. ⌘N on Memories' New Memory.

Headers (16a): one page-header rule; GlassPageHeader is subheading semibold
over a caption and is used by Goals and Daily recap.

Motion (16b): OmiMotion tokens quick / standard / emphasized behind one
Reduce-Motion gate shared with InkReduceMotion; ungated onboarding and
post-onboarding calls migrated.

docs/ux-contract.md: sections 10 (page headers), 11 (keyboard), 12 (motion).

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

# Conflicts:
#	.github/scripts/check_desktop_ux_contract.py
#	.github/scripts/test_check_desktop_ux_contract.py
…ne bubble

Transcript pane: a find field in the header (TranscriptFindField). Cmd-F opens
and focuses it, Cmd-G / Shift-Cmd-G and Return / Shift-Return step through
matches with wraparound and scroll each into view, an "N of M" count shows
position, and Esc (at .editing priority) clears and closes find before the
pane's own Esc leaves the transcript. Matching and stepping live in the pure
TranscriptSearchModel (case- and diacritic-insensitive, across speakers);
only bubbles that contain a match build an AttributedString.

LiveTranscriptView now renders each turn through SpeakerBubbleView (new
init(liveSegment:)), so a capture keeps its layout once saved: name · time in
the name row, the user's bubble in Ink.rowFillHover, other speakers in their
PageGlass tint, the same avatar, and SpeakerLabelFormatter's 1-based naming
(live used to say "Speaker 0" and swap the colors). LiveSegmentView is gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…prompt editor

- Selection and on-state are neutral ink: the Settings sidebar uses the top
  bar's pill ladder, OmiToggleStyle's on track is Ink.primary (app-wide),
  option tiles, shortcut chips, stepped sliders and sliders use
  SettingsSelection. Ink.accent stays reserved for the one actionable link.
- Reset Window Size moves out of the Font Size card into its own Window
  card (secondary compact button); the search index points at general.window.
  The font and transparency Resets are secondary too.
- Insight, Task and Memory prompt editors share AssistantPromptEditorView:
  a draft saved only on Save (Cmd-Return), Cancel (Esc), Reset to Default
  bottom-left behind .shellConfirmation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r; menu-bar Show/Hide

- FloatingBarNoticePolicy: one timing table for notch cards. Timed cards pause
  while the bar is hovered on both Interject paths (flag-off is now
  OmiFeedbackTiming.informational, 8 s, not a fixed unpausable 6 s); trial
  cards and isPersistent cards stay until acted on, dismissed or Esc.
- NotchDismissButton / .notchDismissOverlay: DismissButton's NotchGlass
  variant, 24 pt target, "Dismiss (Esc)"; replaces five 18 pt hand-drawn
  xmarks (one unlabeled). Reach-error "Skip" is now "Dismiss".
- Confirmations (share, copy, rating, meeting-share sent) use
  OmiFeedbackTiming.confirmation; copy goes through OmiClipboard.
- Status-bar menu gains "Show Floating Bar" / "Hide Floating Bar", driving the
  same show()/hide() as the Settings switch (FloatingBarMenuBarItem.swift;
  OmiApp.swift net zero lines). Notch Hide tooltip points at it.
- FloatingBarMotion: named springs/durations for the bar pending OmiMotion tokens.

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

# Conflicts:
#	desktop/macos/docs/ux-contract.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Row one: icon back, emoji, one-line title (full title on hover), a
Summary/Transcript segmented switch, and Discuss (when available), star,
share and the overflow menu, which now also holds Copy Transcript. Row two:
one secondary line of date, time, duration, people ("You, Dana +2"),
category, folder and place, dropping category and then people/place when it
is short of room, ending in a device stack ("3 recordings") for an event more
than one device recorded, and the transcript re-sync button on the right.

The "Recorded on" chip row becomes an in-window panel hung from the device
stack: each recording with its device, time range and a check on the open
one; a row opens its recording and Separate… keeps the confirmation. The
panel is drawn in the window rather than as an NSPopover so window captures
and the automation bridge can see it; conversation_detail_recording gains
show/hide.

The header drops from about 168pt to about 82pt, and content now starts
about 100pt below the hub chips instead of 183pt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level and others added 10 commits September 23, 2026 16:41
#17284 made backend/testing/e2e/fakes/llm.py import utils.llm.model_config
for its canned response's model name. The dev harness loads that fake by
path in its own interpreter without the backend package on sys.path, so
offline provider preflight (make dev-up/dev-check) and 10 dev-harness unit
tests fail with ModuleNotFoundError: utils. The model field of a canned
fake response is cosmetic; use a clearly fake model id instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ling

Clicking the mic used to step Off -> Always On -> Only Meetings with no
menu or confirmation, so a stray click could turn on always-on room
recording. It now opens a popover (ShellListeningModeMenu) that lists the
three modes with a line under each saying what it records, checks the
current one, and has an "Audio Settings..." item that opens Settings ->
Transcription. Arrow keys plus Return choose a mode, Esc closes it, and
each row is a Button that VoiceOver can reach.

- CaptureListeningLogic.cycleListening/nextAudioRecordingMode are replaced
  by selectListeningMode(_:), which uses the same permission, persistence
  and analytics path as the old cycle. Its effects are injectable so tests
  run the production path without the TCC prompt.
- The glyph is `mic` in every mode. Only Meetings adds a small handset
  badge in place of the person.2.fill swap, which read as a People button.
- HomeStatusState gains .armed (Only Meetings waiting for a call). Its dot
  is a green ring with a hollow centre, so filled green always means
  recording now.
- The tooltip promises the menu, not a next mode. The 4 s Only Meetings
  hint is removed.
- ux-contract: a control that changes what Omi records opens a menu naming
  the choices and never cycles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-session code

David's ruling (2026-09-23): the toggle and every multi-session path go. The
session sidebar was no longer mounted anywhere, so the only product behavior
is the one shared main-chat timeline (INV-CHAT-1), which is what every path
did with multiChatEnabled == false.

- Settings: drop the Advanced > Preferences toggle card, its search entry and
  its @AppStorage. ChatProvider.init clears the stale defaults value once per
  launch; the DefaultsKey case stays only for that removal.
- ChatProvider: drop ChatSession, sessions/currentSession/isInDefaultChat,
  fetch/select/create/delete/star/rename sessions, the greeting and title
  generation, sidebar grouping and the multiChatEnabled observer. Send,
  clear, selectApp, auth reload, harness reset and the legacy importer now
  take the default-chat branch unconditionally.
- Delete ChatSessionsSidebar.swift and its ViewExporter entry, the
  FileIndexingView new-session branch, and the bridge multi_chat_enabled /
  chat_session_id snapshot fields.
- Drop the desktop client calls only the session path used: GET/POST
  v2/chat-sessions, PATCH v2/chat-sessions/{id}, POST v2/chat/initial-message,
  POST v2/chat/generate-title, GET v2/desktop/messages?session_id=, plus
  their analytics events. deleteChatSession stays (kernel backend sync).
- Tests: delete the selected-session harness-reset and greeting/routing tests,
  retarget the mid-flight revocation test at selectApp, update source
  tripwires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…was the multi-chat observer

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on guards

The detail-page split moved the manual task writer and the summary markdown
into ConversationDetailSections.swift. Point the task-intelligence writer
anchor at its new file, and extend the chat selection-overlay ban to the new
header and sections files so the moved summary keeps its protection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nonisolated

The two UX-contract test call sites (DesktopUXContractTests,
FloatingBarNoticePolicyTests) call these members from synchronous
nonisolated test methods, so default-MainActor isolation made both
Desktop Swift CI lanes fail to compile. Both members are pure (an
Int->String label and a 24pt constant), matching the nonisolated
precedent this PR already set for BackChip.helpText.
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Fixed the Desktop Swift CI failures on this PR (monitor run).

Root cause: both failing lanes (Static & Test Contracts, Release Compile — Build & Tests only mirrored them) were compile errors under Swift 6 default-MainActor isolation, in the UX-contract test call sites this PR adds:

  • DesktopUXContractTests.swift:138/139 called main actor-isolated ConversationDetailView.segmentCountLabel from a synchronous nonisolated test method.
  • FloatingBarNoticePolicyTests.swift:63 referenced main actor-isolated NotchDismissButton.diameter from a nonisolated autoclosure.

Fix (d74bcae): marked both members nonisolated — they are a pure Int -> String label and a 24 pt constant — matching the precedent this PR already set for BackChip.helpText and the existing nonisolated static let/func pattern elsewhere in the desktop target. No behavior change; 2-line diff.

Verification: full repo pre-push gate passed locally (swift-format, SwiftLint, UX-contract ratchet over 152 changed files, desktop test scripts). No --no-verify bypass. On the pushed head both Desktop Swift lanes now pass, and a flaked Android Compile Smoke (Gradle plugin artifact resolution — unrelated to this desktop-only diff) was rerun green; all checks on the PR are green. No unresolved review threads; nothing merged.

Git-on-my-level and others added 6 commits September 24, 2026 09:45
Reconciles fix/macos-ux-consistency with feat/cross-surface-capture-groups
(merged main included). Both behaviour sets are kept:

- ConversationDetailView keeps #17281's split (Header / Sections /
  CaptureRecordings) and gains #17286's Back chip with the origin's name,
  layered Esc (find, recordings list, transcript, page), transcript find
  with highlights, shellConfirmation delete, TextPromptSheet rename,
  toast-confirmed transcript copy via SpeakerLabelFormatter, and the
  shared icon-button chrome.
- Action items use ConversationActionItemRow (hover-only controls,
  linked / adding / added / failed states) inside #17281's grouped card.
- Header participants use SpeakerLabelFormatter (1-based "Speaker N").
- The recordings list's Separate confirmation moves from a system alert to
  shellConfirmation (INV-UI-2), and its Esc goes through onEscapeKey.
- ConversationListView keeps the group collapse inside #17286's
  startedAt / OmiDateFormat date buckets.
- ConversationRowView keeps #17281's device badges; the dead source-label
  switch stays removed; "Omi" is capitalised in the capture label.
- ConversationsPage merges only visible rows: a member hidden behind its
  event's row can never reach a merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rate confirmation

conversation_detail_recording gains request_separate, which raises the
same in-window confirmation a recording's Separate… raises. A new
conversation_detail_prompt action raises the page's rename sheet or delete
confirmation, or presses an action item's task control (add_task), so
harness QA exercises the production handlers instead of bypassing them.
Both are non-production only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch already carried #17281's head (db2aa79) through the earlier
reconciliation merge; the squash's copies of the seven overlapping files are
byte-identical to that head, so the reconciled versions are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Coordinator ruling (2026-09-24, delegated by David): the capture-source
label for the Omi pendant reads "Pendant" on desktop, as it will on mobile.
Desktop, Phone and Apple Watch are unchanged. The label feeds the row's
device-badge tooltip and accessibility label, the detail header and the
recordings list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit ba1f71d into main Sep 24, 2026
42 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/macos-ux-consistency branch September 24, 2026 04:51
mvanhorn added a commit to mvanhorn/omi that referenced this pull request Sep 27, 2026
Conflicts:
- DefaultsKey.swift: keep transcriptionPaused/shortcut keys alongside
  main's callAppAudioDailyLedger.
- CaptureListeningLogic.swift: take main's armed/active split in
  listeningStatus; keep the pause overlay and ConversationListeningPill.
- ShellListeningCycleTests.swift: take main's deletion (BasedHardware#17286 replaced
  the cycle with a mode menu); port the pause-overlay test into
  ShellListeningModeMenuTests.

Annotate the two AppStateListeningTests shared-defaults sites as an
integration boundary so the test-quality gate stays at main's baseline.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01NKrCf3fm1rFrX2sQqS1gif
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