Repository navigation
chore(llm): consolidate Luna model references behind one constant - #17284
Merged
Merged
Conversation
Future model bumps should change LUNA_MODEL, the gateway routes, and the rate card, not dozens of hardcoded copies. Co-authored-by: Cursor <[email protected]> Co-authored-by: multica-agent <[email protected]>
chat_file now imports LUNA_MODEL, and model_config pulls is_auto_lane_id from the gateway client the chat-file suites stub. Co-authored-by: Cursor <[email protected]> Co-authored-by: multica-agent <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Sep 23, 2026
#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]>
This was referenced Sep 23, 2026
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
…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.
Summary
Consolidate Luna model references so a future model bump changes a handful of files on purpose.
LUNA_MODELinbackend/utils/llm/model_config.pyis the only production Python literal. Feature defaults, file-chat models, the desktop direct-mode reasoning model, sweep/QA scripts, the smoke provider ref, and the e2e fake import it.uses_explicit_cache_and_chat_sanitizeris the shared wire predicate (GPT-5.6 prefix, plus the canonical Luna id). The six call sites areclients.py(explicit cache options),model_config.supports_cache_retention,conversation_prompt_prefix.py,proactive_notification.py, and both executor gates (cache-field strip and chat-completions sanitizer).gpt-x-luna. Backend tests importLUNA_MODEL(conftest exposes the same constant as theluna_modelfixture).model_endpoint_inventory.yamlcurrent_provider_modellines are documentation. The coverage test only asserts the field is non-empty, and the gateway config loader cites the filename as a label rather than parsing the model id. Those lines now saygpt-x-luna.#16284 is already merged and
chore/gpt-6-luna-model-renamewas deleted, so this PR targetsmain(which contains that merge). Retarget-to-main is already done.Grep proof
git grep -l gpt-6-luna: 71 files before, 21 after.Remaining files, and why the literal stays:
backend/utils/llm/model_config.pyLUNA_MODELdefinitionbackend/llm_gateway/config/generated_route_overrides.yamlbackend/llm_gateway/config/route_artifacts.yamlbackend/llm_gateway/config/cost_rate_cards.yamlbackend/charts/backend-listen/dev_omi_backend_listen_values.yamlbackend/charts/backend-listen/prod_omi_backend_listen_values.yamlbackend/deploy/runtime_env.yamlbackend/deploy/runtime_env/dev.overlay.yaml.github/workflows/jit_qa_manual_operator.ymlbackend/docs/conversation-note-style.mdbackend/testing/jit_processing/fixtures/jit_architecture_quality_cost_v2.jsonLUNA_MODELdesktop/macos/Desktop/Sources/FloatingControlBar/RealtimeHubTools.swiftdesktop/macos/Desktop/Sources/ProactiveAssistants/Core/ContextBucketRollup.swiftdesktop/macos/Desktop/Sources/ProactiveAssistants/Core/ProactiveLaneClient.swiftescalationModelalias isomi-luna-think, not the provider iddesktop/macos/Desktop/Tests/AgentRuntimeProcessTests.swiftdesktop/macos/Desktop/Tests/ContextBucketDirectorProbeTests.swiftdesktop/macos/Desktop/Tests/MessageMetadataTests.swiftdesktop/macos/Desktop/Tests/ProactiveLaneClientTests.swiftdesktop/macos/agent/tests/control-tools.test.tsdesktop/macos/agent/tests/pi-mono-adapter.test.tsdesktop/macos/pi-mono-extension/index.test.tsLeft unchanged on purpose
supports_prompt_cachestill special-casesLUNA_MODELbeside thegpt-5/gpt-4o/ o-series prefixes. That is cache-key routing, not the explicit-cache and chat-completions sanitizer.gpt-5*lane orLUNA_MODEL. Folding it into the GPT-5.6 predicate would dropgpt-5-nano.FAIR_USE_CLASSIFIER_MODELandMEMORY_DAILY_MEMORY_SWEEP_MODEL_NAMEduplicate the code default. Removing those env literals would change deploy semantics, so this PR only points the code fallback atLUNA_MODEL.Product invariants affected
The matching paths (
backend/utils/memory/daily_memory_sweep.py,backend/utils/memory/maintenance_cost.py,backend/docs/memory/belief_model_plan.md) only replace a hardcoded Luna model id or a dated rate-card phrase. Tier count, promotion authority, collections, and memory-access behavior are unchanged.Failure class
Failure-Class: none
The follow-up commit only adds
is_auto_lane_idto the chat-file gateway stub.chat_filenow importsLUNA_MODEL, andmodel_configimports that name fromgateway_client. The suites that load the real module against a stub need the name present. That is a test-harness import surface, not a product failure class.Test plan
cd backend && PYTHON=.venv/bin/python BACKEND_UNIT_TEST_FILE_LIST=... bash test.shfor the gateway config, accounting, executor, prompt-cache, QoS, and every touched unit test file (28 files). All passed.test_desktop_proactivity.pyonce exceeded the 0.30s CPU guard (0.33s) while the batch was running in parallel; rerun alone, 61 passed and the guard held.test_chat_file_gateway_stub_import_contract.py,test_chat_file_upload_picked_name.py,test_chat_file_upload_unsupported.py) passed under the same isolation runner: 2 + 6 + 17.bash test.shwas not run: the isolation runner covers ~930 files, and a saturated parallel run already tripped an unrelated CPU-time guard. The focused set is the gateway/config/accounting/executor suite plus every touched test file.No changelog fragment: no user-facing desktop change.