Repository navigation
fix(backend): link cross-device overlaps without discarding captures - #14370
Merged
Git-on-my-level merged 1 commit intoSep 19, 2026
Conversation
Reuse the duplicate capture pointer with advisory overlap measurements. Link only the shorter completed cross-source capture after persistence, rechecking both records transactionally. Preserve content and discard decisions; share the policy between sync/REST and durable finalization. Validation: focused backend/test.sh selection passed 156 tests across 8 files. Focused pyright on the four changed production files: 0 errors, 28 warnings. Live device/HTTP acceptance was not run. Failure-Class: FC-same-speech-captured-twice-surfaces-twice
kodjima33
approved these changes
Sep 18, 2026
kodjima33
left a comment
Collaborator
There was a problem hiding this comment.
Backend cross-device overlap linking fix, no abuse signal (AGENTS.md 'credentials' mention is doc prose, not code); approve-only per standing account flag.
This was referenced Sep 19, 2026
This was referenced Sep 19, 2026
Git-on-my-level
added a commit
that referenced
this pull request
Sep 19, 2026
Git-on-my-level
added a commit
that referenced
this pull request
Sep 19, 2026
…14370) (#14850) ## Failure-Class Failure-Class: FC-fixture-mock-signature-drift ## Summary Another #14370 fixture casualty: the test monkeypatched the removed `_detect_duplicate_capture` symbol; production now calls `link_duplicate_captures(uid, completed)` (same module import). Updated the mock to the new symbol — same neutralization intent (no-op the dedup side effect). CI evidence: Backend unit shard 4/4 red on PR #14846 (run 35432379290). ## Product invariants affected - INV-DATA-1 Preserved: test-only change. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/14850?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. -->
Git-on-my-level
added a commit
that referenced
this pull request
Sep 24, 2026
…es (#17281) * feat(conversations): group one event's recordings across capture surfaces 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]> * fix(conversations): fence capture-group joins on transcript and deletion, 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]> * test(desktop): map ConversationListView to the conversation-folders flow Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(backend): satisfy pyright in capture_groups Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(desktop): show an event's recordings on the conversation page and 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]> * feat(desktop): compact the conversation header to two rows 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]> * test(harness): keep the offline LLM fake free of backend runtime imports #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]> * chore(checks): follow the conversation page split in task and selection 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]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Sep 24, 2026
… on mobile (#17297) * feat(conversations): group one event's recordings across capture surfaces 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]> * fix(conversations): fence capture-group joins on transcript and deletion, 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]> * test(desktop): map ConversationListView to the conversation-folders flow Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(backend): satisfy pyright in capture_groups Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(desktop): show an event's recordings on the conversation page and 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]> * feat(desktop): compact the conversation header to two rows 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]> * test(harness): keep the offline LLM fake free of backend runtime imports #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]> * feat(app): show one row per recorded event in the conversation list Decode the additive capture_group field and collapse loaded rows the way desktop does (#17281): the loaded primary represents its event, else the first loaded member; a lone loaded member is never hidden, and paging still counts server rows. Rows name the devices that recorded the event, and a row hidden behind its event leaves the merge selection. Adds the shared capture_group_collapse parity fixture with the Flutter adapter and the backend structural check. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(app): compact conversation page with the event's recordings The conversation page gets one header shared by Summary, Transcript and Action items: emoji and title, one line of facts (day, time range, duration, category, and the device when only one recorded it), then the event's recordings, who spoke ("You, Dana +2"), folder and visibility. An event several devices recorded shows a device stack; its sheet lists each recording with its time range, opens it (fetching it when the list has not loaded it) and separates it after a confirmation, then reloads the page and the list. Rename and Move to folder join the overflow menu. Strings are localized in every locale. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Sep 24, 2026
…cross the macOS app (INV-UI-2) (#17286) * feat(conversations): group one event's recordings across capture surfaces 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]> * fix(conversations): fence capture-group joins on transcript and deletion, 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]> * test(desktop): map ConversationListView to the conversation-folders flow Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(backend): satisfy pyright in capture_groups Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(desktop): one navigation, dismissal, delete and copy vocabulary across 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]> * fix(desktop): Activity reports content duration; speaker sheet, labels 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]> * chore(desktop): keep oversized files from growing Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(desktop): keep the prompt bar's enlarged dismiss target; follow Title Case in a pinned label Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(desktop): fit the audio-mode names in the Settings segmented control Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(desktop): e2e flow covers for the shared UX components; drop deleted views Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(desktop): swift-format the changed files Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(desktop): no force unwraps in the UX contract tests Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(desktop): show an event's recordings on the conversation page and 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]> * fix(desktop): one loading, error and empty state; OmiButtonStyle on page 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]> * fix(desktop): quieter conversation summary, neutral More menus, speaker 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]> * fix(desktop): onboarding progress, drill-in navigation, ⌘F/⌘N, page headers, 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]> * feat(desktop): find in transcript; live and saved transcripts share one 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]> * fix(desktop): neutral selection in Settings, quiet window reset, one 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]> * fix(desktop): one notice policy and close control for the floating bar; 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]> * feat(desktop): compact the conversation header to two rows 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]> * test(desktop): e2e flow covers for round-2 components Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(desktop): transcript find claims ⌘F through the shared router at detail priority Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ci): make the scaled-progress-view pattern linear (CodeQL py/redos) Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(harness): keep the offline LLM fake free of backend runtime imports #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]> * fix(desktop): the top-bar microphone opens a mode menu instead of cycling 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]> * refactor(desktop): remove the Multiple Chat Sessions toggle and multi-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]> * refactor(desktop): drop ChatProvider.reinitialize, whose only caller was the multi-chat observer Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(desktop): e2e cover for the chat harness reset Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(checks): follow the conversation page split in task and selection 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]> * fix(desktop): make segmentCountLabel and NotchDismissButton.diameter 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. * fix(desktop): inline spinner on suggested app cards uses controlSize, not scaleEffect Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(desktop): automation can raise the detail's own prompts and Separate 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]> * fix(desktop): drop the duplicate collapsedAwayConversationIds the main merge re-added Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(desktop): the Omi pendant's capture label reads "Pendant" 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]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A pendant synced through iOS and a desktop in the same room can create two backend conversations for one meeting. The supplied redacted incident has a roughly 41-minute pendant capture and a 30-minute desktop capture with near-total overlap of the shorter window; another day showed the same pattern. No account identifiers, document identifiers, or account transcript content are included here.
Current main already contains #13703's content-similarity detector, which auto-discards one capture. This change implements the requested additive, non-destructive overlap contract instead: both conversations remain available and the shorter receives an advisory link.
Approach
external_data.duplicate_capture_of, addingcross_device_duplicatewith primary ID, method, overlap seconds, and overlap ratio. Processing IDs and meeting-treatment receipts retain their existing meanings.Validation
The documented focused
backend/test.shselection passed, exit 0: 156 tests across 8 files.Real output excerpts:
The other six files passed 2, 2, 2, 8, 3, and 3 tests. Warnings are existing Pydantic/audioop deprecations. This host was heavily loaded during the run.
Focused type check (from
backend/):The optional full-repository typecheck was interrupted under host load; the changed production files were checked as above.
make setupcompleted.make preflightpassed the 52-test manifest contract, then exposed an AGENTS.md byte-budget violation, which is fixed. All 31 selected manifest checks passed across the initial and resumed runs. The resumed runner reportedManifest checks passed: 29 check(s).; the 52-test manifest contract and line-count gate had already passed. The committed line-count gate andscripts/pr-preflight --pr-body-file /tmp/omi-cross-device-pr.md --metadata-onlyalso passed on9217f9eadf(4 metadata checks). Only the preexisting untracked task handoff and desktop dependency-seeding directory were excluded from local diff selection.The behavioral regression executes the production durable finalizer, matching policy, and transaction writer with synthetic captures and StrictFirestore. Provider work and candidate discovery are controlled. The sync processor also runs through successful and fenced persistence. The former auto-discard tests are replaced because the explicit task's additive metadata contract supersedes that behavior; #13703 documents the old semantics. This is an incident-specific behavioral guard for #3244/#13703, using the existing transaction fixture rather than adding a parallel shared framework.
A live device-to-backend capture and HTTP endpoint smoke were not run. Hermetic finalization is not production acceptance.
Follow-ups and limits
Failure-Class: FC-same-speech-captured-twice-surfaces-twice
Product invariants: INV-MEM-4, INV-TASK-2. This metadata link does not grant memory promotion or task-creation authority.
Line-Count-Exception: backend/database/conversations.py | 2375 -> 2409 | Keep the small transactional metadata writer beside the existing candidate query and conversation persistence boundary; no unrelated file split.
Push-time duplicate execution of preflight, backend tests, and the full typecheck is skipped using the documented hook switches, reusing the results above; other push checks remain enabled.