Repository navigation
feat(conversations): one row per recorded event across capture surfaces - #17281
Merged
Merged
Conversation
…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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…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]>
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]>
#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]>
…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]>
Git-on-my-level
added a commit
that referenced
this pull request
Sep 23, 2026
…#17302) ## Bug The local dev-harness desktop profile (`scripts/dev-harness/dev_harness/desktop_profile.py`) set `OMI_PYTHON_API_URL` and `OMI_DESKTOP_API_URL` but not `OMI_AUTH_API_URL`. The macOS app's `DesktopBackendEnvironment.authBaseURL()` therefore fell back to the production API for auth-scoped calls (`GET /v2/desktop/prompts`, `GET /v1/csat/config`). A local named bundle sent its Firebase Auth emulator token to production, got 401, and `AuthSessionCoordinator` treated the post-refresh 401 as a dead session (`invalidateSession reason=postRefreshHTTP401`) — so every local desktop profile signed itself out about a second after signing in. ## Fix Set `OMI_AUTH_API_URL` to the local python backend (same value as `OMI_PYTHON_API_URL`) so auth-scoped calls stay on the loopback backend instead of silently defaulting to production. ## Verification - `python -m pytest -q scripts/dev-harness/tests/test_desktop_profile.py` → `5 passed in 0.02s` (interpreter selected the way `scripts/dev-harness/run-tests.sh` selects it). - `bash scripts/dev-harness/run-tests.sh` → `550 passed, 6 skipped, 20 xfailed, 23 subtests passed in 100.35s`, run with the documented local setup: `backend/.venv` provisioned by `scripts/dev-harness/lane-backend.sh`, `PYTHONPATH=<repo>/backend`, and a non-symlinked `TMPDIR` (macOS `/tmp`→`/private/tmp` breaks three `test_native_probe_builds` path tests locally; CI's Linux runners are unaffected). - Live behavior, verified in the session that developed the fix: after the fix a local named bundle stays signed in, and `GET /v2/desktop/prompts` and `GET /v1/csat/config` return 200 from the local backend. Found while validating #17281. ## Note on the dev-harness-unit-tests check (pre-existing on main, unrelated to this diff) #17284 (current `main` HEAD) added `from utils.llm.model_config import LUNA_MODEL` to the shared fake `backend/testing/e2e/fakes/llm.py`, which this lane loads by file path. In the lean interpreter environments the lane runs under (no backend package on `sys.path`, no `openai`/`langchain-openai` deps — exactly CI's Repo Checks Hygiene job), that import chain fails with `ModuleNotFoundError: No module named 'utils'`, taking ~12 tests red. Reproduced on **clean `origin/main`** (268e04e) with this branch's change stashed: the same tests fail identically. No PR since #17284 has selected this check (backend-only paths don't trigger it), so CI has not surfaced it yet. This PR's two-file diff doesn't touch the fake or the loader; the failure is expected to track main until #17284's collateral is fixed upstream. ## Product invariants affected none ## Failure class (fixes) Failure-Class: FC-hermetic-suite-points-at-remote-api The violated contract — a local development context must not send its traffic to a non-loopback API — is the same shape here: an unset auth endpoint let the desktop profile silently fall back to the production API, like the leftover remote `API_BASE_URL` that class was minted for. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/17302?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
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]>
Git-on-my-level
added a commit
that referenced
this pull request
Sep 24, 2026
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]>
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]>
This branch was successfully deployed
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.
Why
When the Omi pendant and the Mac both hear a meeting, each surface produces its own conversation. Each one gets its own summary, memories and tasks. On 2026-09-23 David's desktop list showed one 62-minute meeting four times: the desktop recording plus three pendant fragments. The backend had already linked all three (
duplicate_capture_of, #14370), but no client reads that link.Production baseline, read-only, 14 days:
Full record:
omi-knowledge-base/projects/cross-surface-continuity/.This is the first shippable slice of that project: one row per recorded event, built on evidence strong enough to trust.
What changes
Backend
utils/conversations/shared_speech.py(new) confirms a wall-clock match from content. It uses word-trigram containment against the smaller transcript. Confirmation needs:All three thresholds are env-tunable. The stored evidence is numeric only.
database/capture_groups.py(new) is the only writer ofcapture_group,capture_group_exclusionsandcapture_group_closed.idis minted independently, so the primary (the longest capture) can move without changing the event's identity.duplicate_capture.link_duplicate_captureskeeps writing the existing advisory link unchanged. It then checks at most 6 window matches for shared speech and groups the confirmed ones. It never blocks finalization: a failure recordsduplicate_capture_check → separate_captures.Conversation.capture_groupis a new additive response field. The two whole-document processing writers strip it, so a stale in-memory copy cannot clobber membership.Deleting a conversation leaves its group and closes it in one transaction, so a finalizer racing the delete cannot regroup it.
POST /v1/conversations/{id}/capture-group/separateis sticky: the conversation is never regrouped with the members it left. It is idempotent, and a pair dissolves when one member leaves.New metric:
omi_product_event_total{event="capture_group_joined", outcome=applied|none|conflict}.Desktop (macOS)
CaptureGroupPresentationcollapses each group to one row, preferring the primary, using only the rows already loaded.captureGroupJson, additive migration), so a cached list collapses the same way before the server answers.Desktop conversation page (reworked in this PR)
Two-row header (about 168 pt → about 82 pt):
Recordings list: clicking the device stack lists every recording of the event, with the current one checked. Clicking one opens it, fetched by id if it isn't loaded. Each has "Separate…" with a confirmation. After separating, the page, the list and any open search refresh.
Removed or condensed:
Nothing users rely on was removed.
ConversationDetailView.swiftwent from 1835 to 1155 lines, split into header, sections and recordings views.Row menu: the row's "Captured by N recordings" submenu is gone; the page owns that now.
Automation: a new automation action,
conversation_detail_recording(list / open / separate / show / hide), drives the same code paths for harness QA.Grouping is presentation metadata only. Transcripts, summaries, the keep/discard decision and derived memories/tasks stay per capture. Merging those is the next project phase and needs an event revision protocol first.
Review
Before this PR was opened, Codex (
gpt-6-astra, high) reviewed the first commit read-only. It found six P2 defects, all fixed in the second commit, each with a regression test:closefence.Validation
tests/unit/test_capture_groups.py, plus the existing duplicate-capture and product-metric suites, pass viabackend/test.sh. They cover:StrictFirestore: found, join, idempotence, no bridging, fencing, cap, sticky separation, dissolve;database/conversations.pychanged) found one real regression, which is fixed: a router stub harness lackeddatabase.capture_groups, so the route now calls throughconversations_db. The remaining failures were CPU-duration guards tripped while a Swift build shared the machine, plus two environment gaps (fakerediswithout Lua, resolved by syncing the venv frompylock.macos.toml). On the final commit, all 1,243 files pass in pytest. The 8 files flagged only by the CPU-duration guard during the parallel run also pass that guard when rerun serially (BACKEND_PYTEST_WORKERS=1, exit 0).PROVIDER_MODE=offline make dev-up, isolated instance, restarted on the final commit). Captures were written through the production writer, so they are encrypted at rest (enhanced), and grouped by the production hook. Results, observed over HTTP:unchanged;enhancedaccounts only; aggregates only). This ran the exactshared_speech.pyin this PR:CaptureGroupPresentationTestspass together with the reconciliation, record, projection-persistence and discoverability suites under localxcrun swift test(Xcode 27). The 7 tests cover decode, collapse order, unloaded primary, lone member, cache round-trip, migration, and an optimistic mutation keeping membership. The pinned CI toolchain is authoritative.ConversationCaptureRecordingsTestsand 3 newConversationRepositoryTestsfor load-by-id. SwiftLint shows 0 violations; swift-format, test-quality, the text-selection check and e2e flow coverage--strictall pass.alice:OMI_AUTH_API_URLin the local desktop profile), which is not part of this PR.Dev click-through (2026-09-24, lane 1)
Merged current
maininto the branch (merge commit, no rebase). Local named bundleomi-lane1-groupsbuilt from the merged head, against the offline local harness (instancelane1, Firestore emulator, synthetic useralice). Captures written through the production writer and grouped by the production hook (a desktop capture plus three pendant pieces of the same speech, and one unrelated capture).structuredand action items; the group record now has 2 members..alert, which neither the in-app capture nor an agent shell (no Accessibility grant) can reach; separation was driven throughconversation_detail_recording action=separate, which calls the sameseparateRecordingpath. fix(desktop): one navigation, dismissal, delete and copy vocabulary across the macOS app (INV-UI-2) #17286 moves this confirmation to the in-windowshellConfirmation.Rollout notes and known limits
david-account-conversation-auditKB project, issue 8). This is also why about 30% of eligible pairs are missing the existing link today. Un-stalling the pusher is tracked there, not in this PR.capture_group(ids, sources, windows; no text).main. It includes a small unrelated fix: chore(llm): consolidate Luna model references behind one constant #17284 made the hermeticbackend/testing/e2e/fakes/llm.pyimportutils.llm.model_config. The dev harness loads that fake in its own interpreter, somake dev-upoffline preflight and 10 dev-harness unit tests failed withNo module named 'utils'. The fake now uses a clearly fake model id.test_native_probe_buildstests fail under the defaultTMPDIRbecause of the/var→/private/varsymlink. This is also the case onmain, and they pass with a real temp dir. It's unrelated to this PR.How to try it on dev
Once this is deployed to dev and the desktop build is on Beta:
Product invariants affected
AppStatepath glob only. The newseparateConversationFromCaptureGroupaction uses the existing authenticatedAPIClient.postand does not touch session ownership, token handling or sign-out.Chat/ChatPrompts.swiftgained a column annotation for the new cache column. Chat transcript ownership and continuity are unchanged.backend/config/task_intelligence_sources_v1.jsonchanges only the file path of the existingdesktop_manualwriter anchor, fromConversationDetailView.swifttoConversationDetailSections.swift, because the page split moved the explicit "add task" gesture there. Its policy class staysdirect_command. No capture path writes a task, and proposing capture still never accepts or creates one (check_task_capture_authoritypasses).ConversationsPagestill routes to the same feature-complete conversation destination. Grouping only collapses duplicate rows within that list, and every member stays reachable from the row's menu.Failure-Class: FC-same-speech-captured-twice-surfaces-twice
Line-Count-Exception: backend/database/conversations.py | 3027 -> 3054 | strip capture_group from the two whole-document processing writers, close/detach on delete, and read a transcript fingerprint from one snapshot; the group logic itself lives in the new database/capture_groups.py
Line-Count-Exception: backend/routers/conversations.py | 2133 -> 2148 | one new route (capture-group separate) beside its conversation routes
Line-Count-Exception: desktop/macos/Desktop/Sources/Rewind/Core/RewindDatabase.swift | 3657 -> 3665 | one additive migration registered with its siblings
Line-Count-Exception: desktop/macos/Desktop/Sources/DesktopAutomationBridge.swift | 5072 -> 5073 | registers conversation_detail_recording (action body lives in Automation/)
🤖 Generated with Claude Code