Repository navigation
feat: home redesign — new tabs, chat bar, Start Recording, Memories in Settings - #7009
Conversation
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
New tabs: Home, Conversations, Tasks, Apps. Removed the floating center purple mic button and simplified BottomNavBar to a flat 4-tab bar. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…tions preview Home tab now shows an Ask Omi chat bar, Today tasks section, last 3 daily summaries with View All, and last 3 conversation groups with View All. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Tabs now: Home(0), Conversations(1), Tasks(2), Apps(3) - Removed floating phone call button and Ask Omi FAB - Removed clockRotateLeft Daily Recaps toggle from app bar - Moved app bar sync/search buttons to Conversations tab (index 1) - Moved tasks app bar buttons to index 2 - Updated deep-link routing for new tab indices - Memories now routed as full-page push instead of tab Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…menu Purple pill in the conversations section header; tap starts voice recording, long-press shows a sheet with voice vs call recording options. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Memories page moved out of the bottom nav and into the Settings drawer, accessible via a brain icon item after Permissions. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Greptile SummaryThis PR delivers a significant home screen redesign: a new 4-tab bottom nav (Home, Conversations, Tasks, Apps), a new Confidence Score: 5/5Safe to merge; only P2 l10n style findings remain after previously flagged P1s were resolved. Both previously flagged P1s (unused DefaultTabController, missing /memories deep-link case) are resolved in this diff. The only new finding is a P2 l10n violation for hardcoded strings in the chat bar placeholder, _formatDate weekday/month abbreviations, and settings search UI. P2s do not lower the confidence score. app/lib/pages/home/page.dart (chat bar placeholder), app/lib/pages/home/home_content.dart (_formatDate), app/lib/pages/settings/settings_drawer.dart (search UI strings) — all for l10n follow-up. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[HomePage] --> B[BottomNavBar]
B --> T0[Tab 0: Home]
B --> T1[Tab 1: Conversations]
B --> T2[Tab 2: Tasks]
B --> T3[Tab 3: Apps]
T0 --> HC[HomeContentPage]
HC --> CB[Chat Bar → ChatPage]
HC --> TT[TodayTasksWidget]
HC --> DR[Daily Recaps Preview]
HC --> CP[Conversations Preview]
HC --> MM[Mind Map Preview]
T1 --> CV[ConversationsPage]
CV --> SR[Start Recording pill - scaffold only]
T2 --> AI[ActionItemsPage]
T3 --> AP[AppsPage]
A --> AppBar[AppBar]
AppBar --> |selectedIndex==1| SyncSearch[Sync + Search buttons]
AppBar --> |selectedIndex==2| ExportToggle[Export + Completed Toggle]
A --> DeepLink[Deep Links]
DeepLink --> |/action-items| T2
DeepLink --> |/memories or /facts| T0
DeepLink --> |/memories or /facts| MemPush[push MemoriesPage]
DeepLink --> |/apps| T3
SD[Settings Drawer] --> Memories[Memories item → MemoriesPage]
SD --> Search[Search bar with AnimatedSwitcher]
Reviews (4): Last reviewed commit: "fix: revert env.dart to main and use l10..." | Re-trigger Greptile |
| title: Text(context.l10n.startCallRecording, style: const TextStyle(color: Colors.white)), | ||
| onTap: () { | ||
| Navigator.pop(ctx); | ||
| // Navigate to phone calls | ||
| MixpanelManager().bottomNavigationTabClicked('Phone Calls'); | ||
| }, |
There was a problem hiding this comment.
"Start Call Recording" is a non-functional stub
The onTap handler for the "Start call recording" option only fires a Mixpanel event but never actually initiates a call recording or navigates to a relevant page. Users who long-press and select this option will see no response beyond haptic feedback, making the feature appear broken.
| String _formatSummaryDate(String dateStr) { | ||
| if (dateStr.isEmpty) return ''; | ||
| try { | ||
| final date = DateTime.parse(dateStr); | ||
| final now = DateTime.now(); | ||
| final diff = now.difference(date).inDays; | ||
| if (diff == 0) return 'Today'; | ||
| if (diff == 1) return 'Yesterday'; | ||
| return '${date.month}/${date.day}'; | ||
| } catch (_) { | ||
| return dateStr; | ||
| } | ||
| } |
There was a problem hiding this comment.
Hardcoded user-facing strings bypass l10n
Three strings in this file are not using the localization system: 'No daily recaps yet' (line 218), 'Today' (line 287), and 'Yesterday' (line 288). Existing l10n keys context.l10n.today and context.l10n.yesterday are available. _formatSummaryDate would need a BuildContext parameter (or equivalent) to use them, and a new key for "No daily recaps yet" should be added to app_en.arb.
Context Used: Flutter localization - all user-facing strings mus... (source)
| 'No daily recaps yet', | ||
| style: TextStyle(color: Color(0xFF8E8E93), fontSize: 14), |
There was a problem hiding this comment.
Hardcoded "No daily recaps yet" string
This string on line 218 is not routed through l10n and will not be translated for non-English users. A new key (e.g. noDailyRecapsYet) should be added to app_en.arb and referenced via context.l10n.
Context Used: Flutter localization - all user-facing strings mus... (source)
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…yle, fix api url - Chat bar moved to Positioned above bottom nav, fully pill-shaped with voice mic button on right; removed from scroll view - Daily recap cards now match conversation list item style exactly (borderRadius 24, emoji container, headline + stats row) - api.omi.me hardcoded with trailing slash to fix api.omi.mev1 URL bug Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Fix /memories deep link: add missing 'memories' case alongside 'facts' in post-frame-callback switch so both routes push MemoriesPage - Fix dead 'Start call recording' stub: wire onTap to push PhoneCallsPage - Remove unused DefaultTabController wrapping the body; tab state is driven entirely by HomeProvider.selectedIndex via IndexedStack Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ifications rename - Daily recap cards now show a dark-theme flutter_map at the bottom when location data is available (fixed layout using Stack + Positioned for proper constraints) - Voice button in home chat bar now auto-starts voice recording when ChatPage opens (autoStartVoice param) - Fix ChatPageState.dispose crash: save MessageProvider reference in initState instead of reading from context in dispose - Apps page: rename "Notification" section to "Smart Notifications" via capabilityNotification l10n key - Hide TodayTasksWidget from Conversations page (it belongs on Home tab only) - Fix search/settings AppBar spacing in conversations tab (removed duplicate 8px gap) - Increase chat bar shadow intensity (blurRadius 40, spread 8, opacity 0.75) - Fix conversation tap crash on home page: pass date-only DateTime to ConversationListItem - Remove unused TodayTasksWidget import from conversations_page.dart - Add top margin to TodayTasksWidget task container for consistent header spacing - Regenerate l10n dart files Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
battery_info_widget, memories page AppBar, settings drawer with search, bottom_nav_bar icon change — already implemented, committing alongside new changes. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…hadow - Reduce daily recap card height to 130px, headline to 2 maxLines - Add date chip overlay at bottom-right of daily recap cards - Improve map section with 60px height, emoji removed - Add Mind Map preview widget below conversations section - Increase chat bar shadow, cast upward to avoid nav bar interference - Fix heading spacing: Today/DailyRecaps bottom gap matches Conversations - Fix daily recap bottom margin to match today tasks card - Conversations tab resets showDailySummaries on direct nav tap Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Remove the inline Start Recording button from the Conversations/Daily Recaps heading row (the top record button in app bar is sufficient). Also clean up unused methods and imports that referenced it. Increase task item vertical padding and top margin for consistent spacing. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…nd deep search - Fix Done button clipping: change Stack to Row layout in normal header - Replace underline search field with filled pill style matching conversations - Add Cancel button inline with search bar - Expand searchable items to include all sub-options from all pages: Profile (name, email, language, speech profile, etc.) Notifications (frequency, daily summary, delivery time) Permissions (microphone, bluetooth, location, background) Developer (API keys, debug, feature flags, API environment) Device (name, firmware, SD card, WiFi sync, LED, mic gain) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Change button labels across apps page and app detail page: - 'Add' → 'Enable' - 'Remove' → 'Disable' - 'Get' (popular section) → 'Enable' Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Add 'mindMap' key to all 49 locale ARB files and regenerate localization Dart files. Existing locales use English 'Mind Map' as placeholder. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Increase negative Y offset and spread radius for stronger upward shadow while keeping downward shadow minimal to avoid covering nav bar. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
@greptile-apps review |
|
@greptileai please review |
Makes the connecting lines between nodes more subtle across both the full graph page and the home page embedded preview. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
|
||
| // static String? get apiBaseUrl => 'https://omi-backend.ngrok.app/'; | ||
| static String? get apiBaseUrl => _apiBaseUrlOverride ?? _instance.apiBaseUrl; | ||
| static String get apiBaseUrl => 'https://api.omi.me/'; |
There was a problem hiding this comment.
overrideApiBaseUrl() and EnvFields.apiBaseUrl are now dead code
Env.apiBaseUrl was changed to return a hardcoded literal, so both _apiBaseUrlOverride (set by overrideApiBaseUrl()) and _instance.apiBaseUrl (set from env vars) are silently ignored. Any call site that does Env.overrideApiBaseUrl('http://localhost:8000/') for local or integration testing will see no effect — all requests still hit api.omi.me. Additionally, isUsingStagingApi (which compares apiBaseUrl to stagingApiUrl) can now never return true.
static String get apiBaseUrl => _apiBaseUrlOverride ?? _instance.apiBaseUrl ?? 'https://api.omi.me/';
| static String get apiBaseUrl => 'https://api.omi.me/'; | |
| static String get apiBaseUrl => _apiBaseUrlOverride ?? _instance.apiBaseUrl ?? 'https://api.omi.me/'; |
…y recap cards - Restore env.dart to origin/main (removes hardcoded apiBaseUrl that caused Greptile P1) - Pass BuildContext to _formatDate and use context.l10n.today/yesterday instead of hardcoded English strings (fixes Greptile P2) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
@greptileai please review |
1 similar comment
|
@greptileai please review |
…te on logout Wipes conversations, grouped/searched lists, processing queue, merge/selection sets, daily-summary flags, and pending delete maps so logging into a different account doesn't show the previous user's data. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Replaces the large hero card removed from the apps page. Sits to the left of the settings gear and only shows on the Apps tab. Same modal sheet (CreateOptionsSheet) opens on tap. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Was a full-height linear gradient before — looked persistent, tinted the entire drawer. Anchors the gradient to the lower 220px of the drawer so it reads as a soft glow that "appears" as items end / scroll out of the way, instead of bleeding everywhere. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Replaces the bottom-sheet CreateOptionsSheet with the same iOS-style PullDownButton used elsewhere (conversation menu, chat plus). Two options — Create an App, Add MCP Server — open as a dropdown anchored to the + button. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Top padding 24 → 8. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The input row was a Row with [LeftButton, Pill]; in a Row, later
children paint over earlier ones, so the pill's heavy upward shadow was
bleeding onto the plus / stop button to its left.
Restructure as Stack { Row{ placeholder, Pill }, Positioned(LeftButton) }.
The Row reserves a 56px slot on the left for the floating button so the
pill sits at the right x-position, and the actual plus / stop button is
overlaid via a Positioned so it renders AFTER the pill and stays above
its shadow.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
… nav Three related layout fixes: 1. Body restructured Column → Stack so the messages list fills the entire body and the input bar + nav bar are pinned to the bottom. The pill's heavy upward shadow now projects onto the actual chat content scrolling behind it (instead of the scaffold's black background, where it was invisible). The message ListView gets a 200px bottom padding (96 when the keyboard is open) so the last message doesn't get hidden under the floating bar; the empty-state hint gets the same 200px shift. 2. Selected files preview is now padded `left: 64, right: 8` so the strip begins flush with the chat bar's left edge — outer Padding(8) + plus button (48) + gap (8) — instead of sitting a touch further left. 3. Spacer between input bar and bottom nav goes 0 → 14 when the keyboard is hidden, matching the subtle gap the home page chat bar leaves above the nav. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…v, plus button gets shadow Two related polish changes: 1. Input bar now floats at bottom: 78 (overlapping the top 22px of the nav bar), exactly like the home page chat bar's Positioned. Input bar and nav bar are separate Stack siblings rather than stacked in a Column, so the gap below the chat bar visually matches home. Bumps to bottom: 0 when the keyboard is open. 2. Plus / Stop button picks up the same fill (0xFF1F1F25), hairline border (0xFF35343B), and three-layer upward shadow stack as the chat-bar pill, so it reads as part of the same surface instead of a flat dark dot floating beside it. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…r the pill In the body Stack, the BottomNavBar Positioned was the LAST child, which means it painted on top of the input pill — its shadow was covering the chat bar. Reorders the children so the nav bar renders first and the input pill renders last (on top), matching the home page Stack where BottomNavBar is the first child and the chat bar's Positioned is second. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ters Was using raw `convoProvider.conversations.take(3)` which ignored the user's filter preferences — discarded conversations were leaking into the home preview even though they're hidden on the conversations page. Switched to walking `groupedConversations` (which already has the provider's _filterOutConvos pipeline applied) and grabbing the 3 most recent items. Now the home preview matches what shows on the convos tab one-for-one. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Mirrors the daily-recap detail page header treatment — purple band fading down into transparent — anchored to the top 220px of the drawer so it reads as a header glow instead of an ambient bottom wash. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Bigger top-left/top-right radius on the drawer + the top purple glow now stretches across roughly the upper half of the drawer for a softer header transition. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Removes the top-anchored purple gradient. The 28px top-corner radius stays. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…g Issues" The SD Card Sync row in device settings now reads "Offline Sync" (behavior unchanged — same SyncPage / AutoSyncPage routing). Removes the dedicated "Charging Issues" row from the actions section; the leading divider that used to separate it from the Disconnect row goes with it so the Disconnect / Forget rows are flush at the top of the section. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Serial Number falls back to a normalized device id when the device doesn't expose its own serial. That made two rows show side-by-side with effectively the same value. Now we suppress the Serial Number row (and its leading divider) when it matches the device id (raw or normalized). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Was swapping the battery-level FaIcon for a plain lightning bolt while charging. Now keeps the battery icon for whatever level the device is at and stacks the bolt on top, so it visually reads as "this battery is charging" instead of just "lightning." Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Drops the battery + bolt overlay. Just swaps the battery-level icon for FontAwesomeIcons.chargingStation in green when the device is charging. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The body Stack restructure broke initial focus on chat-bar-tap-to-open and the keyboard-driven scroll-to-bottom behavior. Reverts the Column layout: Expanded(messages) above, Container(input area) + SizedBox + BottomNavBar stacked below. Side effect: chat bar's heavy upward shadow no longer projects onto chat content scrolling past it (the original behavior). The recent scroll-behind-input feature is gone with it; we'll come back to it without breaking focus/scroll. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Restores the Stack layout: messages fill the body via Positioned.fill,
the chat bar Positioned-floats at bottom: 78 over the nav bar
(matches home), nav bar Positioned at bottom: 0. Bar's heavy upward
shadow projects onto live chat content scrolling behind it ("glass
over chats" effect).
Adds autofocus: !widget.autoStartVoice to the TextField so opening the
chat from the home chat bar focuses the input immediately on first
frame — previous Stack revision broke that because the postFrame
requestFocus didn't always land in time. autofocus is layout-agnostic
so focus + keyboard scroll-to-bottom both behave reliably.
Messages ListView gets bottom padding (96 with keyboard up, 200 with
nav showing) so the last message stays clear of the floating bar.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Removes autofocus from the TextField — it was interfering with the Future.delayed(300ms) requestFocus path that was already working in the Stack-body version (and broke initial focus on home → chat tap). Also bumps bottom: 0 → 12 when the keyboard is open so the chat bar sits a few px above the keyboard instead of touching it. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Previous removal of autofocus was wrong — the Future.delayed(300ms) requestFocus on its own wasn't reliably triggering the keyboard on home → chat navigation. Restoring `autofocus: !widget.autoStartVoice` so the TextField focuses on first frame (skipped only when arriving from the home mic button, which auto-starts voice mode instead). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
iOS doesn't always show the keyboard from a programmatic
requestFocus / autofocus alone — the field gets focused but the
keyboard stays hidden until the user taps. Explicitly call
SystemChannels.textInput.invokeMethod('TextInput.show') right after
requestFocus on initial load so the keyboard pops immediately when
the user taps the home chat bar.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The single Future.delayed(300ms) wasn't reliable on home → chat — sometimes iOS swallows the programmatic focus during the route push (animation overlap, prior page's keyboard dismissal, etc.). Now schedules five idempotent attempts (0/100/250/400/600ms) — each calls requestFocus + TextInput.show, and short-circuits once the field is already focused. The first one that lands wins. Also drops the _isInitialLoad gate on the focus path. The flag is only flipped in _selectApp (in-page action) and was unnecessarily preventing focus on legitimate fresh navigations. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Reverts to the auto-focus path used in 1c086a6 (simple Future.delayed(300ms) requestFocus, gated on _isInitialLoad). Drops autofocus on the TextField and the multi-attempt retry / TextInput.show additions. That state was working — match it byte-for-byte. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
User-confirmed: focus on home → chat tap was reliable when body was a Column (Expanded(messages) + Container(input) + SizedBox + BottomNavBar). The Stack-with-floating-pill restructure repeatedly broke focus on fresh navigations regardless of autofocus / requestFocus retries. Trade glass-over-chats shadow effect for a working, predictable input focus. The chat bar is back in the standard Column position and the Future.delayed(300ms) requestFocus path is the same one that worked. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…esign # Conflicts: # app/lib/pages/chat/widgets/voice_recorder_widget.dart # app/lib/providers/voice_recorder_provider.dart
…n Settings (BasedHardware#7009) ## Summary - **Bottom nav**: 4 new tabs — Home, Conversations, Tasks, Apps (removed center purple mic button) - **Home tab**: New `HomeContentPage` with Ask Omi chat bar, Today tasks section, Daily Recaps preview (last 3 + View All), Conversations preview (last 3 + View All) - **Conversations tab**: Full `ConversationsPage` now has a purple "Start recording" pill in the header; tap = start voice recording, long-press = sheet with "Start voice recording" / "Start call recording" - **App bar**: Removed `clockRotateLeft` Daily Recaps toggle; sync/search buttons moved to Conversations tab; tasks export/toggle moved to Tasks tab (index 2) - **Home page**: Removed floating phone call button and floating Ask Omi FAB - **Settings**: Memories page added as root-level drawer item (brain icon, after Permissions) - **l10n**: Added `startVoiceRecording` and `startCallRecording` keys to all locales (English; translations pending) - **Routing**: Deep links updated — `action-items` → tab 2, `memories`/`facts` → push MemoriesPage ## Test plan - [ ] Tap each tab: Home, Conversations, Tasks, Apps — correct pages load - [ ] Home tab: chat bar taps open ChatPage; Daily Recaps "View All" switches to Conversations tab with recaps view; Conversations "View All" switches to Conversations tab - [ ] Conversations tab: "Start recording" pill visible in header; tap starts voice recording + navigates to capturing page; long-press shows bottom sheet with two options - [ ] Settings drawer: Memories item visible, taps open MemoriesPage - [ ] App bar: sync icon appears on Conversations tab; search icon appears on Conversations tab; Tasks tab shows export + completed toggle icons - [ ] No floating phone button or Ask Omi FAB visible on any tab - [ ] Deep link `/action-items` opens Tasks tab (index 2); `/memories` pushes MemoriesPage 🤖 Generated with [Claude Code](https://claude.com/claude-code)
… guard (#21517) ## What changed and why The mobile app stutters intermittently: scrolling, page transitions and taps lag, mostly while recordings sync, during long recordings, and after reopening the app. An audit found that work which grows with the user's history ran on the UI isolate, and that root proxy-provider hooks re-notified on every upstream change. This PR fixes the largest causes. It also adds a guard (INV-PERF-1) and regression tests so the same shapes fail CI instead of coming back. **Performance fixes (`app/lib`)** - **WAL index save** (`utils/wal_file_manager.dart`): - Before, every save read and `jsonDecode`d the whole old index just to validate it, then re-encoded the whole new index on the UI isolate. - Saves queued back-to-back now collapse into the newest snapshot. The final file is identical, because each caller passes a full snapshot and the last write wins either way. - When saves collapse, the newest replaced snapshot is written as the backup, which is what serial writes left. Otherwise the backup copy skips re-decoding when the file still matches what this process wrote (length + mtime), and validates as before. - Indexes of 200+ entries encode on a background isolate. - **Notify cascades:** - `CaptureController.updateExternalActions` no longer notifies when the adapter wraps the same four providers (`ProviderCaptureExternalActions ==`). - `DeviceProvider.setProviders` no longer notifies when its references are unchanged. - Previously, every chat token or conversation refresh re-notified Capture and then Device, and every transcript segment re-notified Device. - **Live transcript mirror:** - `CaptureProvider._persistLiveSegments` ran on every capture notify and built a string from the whole transcript each time. It now checks a cheap key first: list identity, length, `segmentsPhotosVersion` and owner token. - `LocalSegmentStore` hashes and encodes sessions of 150+ segments on a background isolate. The digest is unchanged, and a test pins that. - **Resume path:** - Conversation list bodies of 64 KB or more are parsed on a background isolate (`parseConversationListBody`). - The offline conversation cache is encoded in the background (`SharedPreferencesUtil.cacheConversations`), behind a generation guard. That guard is also bumped by `clear()`, so an in-flight write cannot restore a signed-out account's cache. - `LocalRecordingsProvider.refresh` lists the documents directory asynchronously instead of with `listSync`. When scans overlap, only the newest one rewrites the owners file (rechecked right before the rename) or publishes its results. - **Lists and visuals:** - The memories list filters once per build instead of once per row. - Voice dictation's 60 Hz tick drives a dedicated `waveformTick` instead of notifying the provider, so the whole chat composer no longer rebuilds 60 times a second. - **New shared helper:** `utils/off_ui_isolate.dart`. Work runs inline below a size threshold and in `Isolate.run` above it. Tests assert there is no silent fallback to the UI isolate (`offUiIsolateFallbacks == 0`). **Regression infrastructure** - `.github/scripts/check_mobile_ui_isolate.py`, wired in `checks-manifest.yaml` as `mobile-ui-isolate` plus `-tests`. It has two parts: - A per-file no-increase ratchet (the INV-UI-3 shape) on: sync `dart:io`, JSON in providers, timers faster than 100 ms, blur, network images without a decode size, and `shrinkWrap: true` lists. - A `history-json-on-ui` rule: JSON in the WAL index, live transcript, conversation list and preferences modules must sit inside `offUiIsolate`, so removing the wrapper fails CI. - An absolute check that every proxy update hook named in `app/lib/main.dart` returns early on an `identical`/`==` test before `notifyListeners()`. A hook whose declaration the check cannot read also fails. `ConversationDetailProvider.setProviders` is allowed with a reason: the open detail page derives its conversation from upstream state. - `product/invariants/mobile-ui-isolate.md` (INV-PERF-1, proposed per PRODUCT.md's seven-day rule; the guard runs in CI regardless) and `app/docs/performance.md`. The doc covers the causes, the rules, the guards, and how to measure. It also lists the known remaining candidates: the chat sheet's persistent full-screen blur (a UX-contract D1 decision), SD-card sync refreshing the WAL list per chunk, and the batch buffer's once-per-second fsync. ## Product invariants affected - INV-CAP-1: touches `services/capture/capture_controller.dart` (notify guard only) and `local_segment_store.dart` (where the hash/encode runs). Neither changes when the phone consumes pendant audio. The WAL index changes keep last-write-wins and the validated backup, so no WAL entry can be dropped from the index. Covered by the existing torn-write and recovery tests and the new save tests. - INV-MEM-1: `capture_provider.dart` matched by path. No memory tier behaviour changes. - INV-PERF-1: new invariant, introduced here as proposed. ## How it was verified All on macOS (Apple Silicon), Flutter 3.44.5 (the CI version), with hermetic inputs as in CI. - `bash test.sh` (full app suite, at the final commit): 5680 passed, 21 skipped, 0 failed - `bash scripts/analyze_ratchet.sh`: passed. - `python3 .github/scripts/test_check_mobile_ui_isolate.py`: 39 tests OK. - `check_mobile_ui_isolate.py --changed-files … --base <merge-base>`: OK, and `--graph`: OK. - `check_mobile_ux_contract.py`: OK. - Red proofs (new tests run against the unfixed code): - Repeated proxy updates notified 50 of 50 times (now 0). - 200 transcript-neutral capture notifies did 80,000 segment reads on a 400-segment transcript (now 0). - Back-to-back WAL saves did not coalesce. - A sign-out during a background cache write restored the old cache. - Host interaction harness (`tool/perf_harness.sh`, one run each on the same machine, so indicative only): | Scenario | p90 frame time, ms | jank frames | |---|---|---| | home | 30.4 → 25.6 | 47 → 26 | | detail | 49.5 → 30.0 | 64 → 33 | | memories | 15.6 → 8.7 | 9 → 6 | | chat | 53.9 → 33.9 | 7 → 4 | Host timings are machine-dependent, and two of the harness's own budgets already fail on unmodified `main` on this machine. Rebuild counts vary a few percent between runs. That is why the harness is documented as a measurement tool and not wired as a CI gate. - **Not verified:** on-device frame timing (profile build plus DevTools during a real sync). The raster-bound chat blur was not changed. ## Review follow-ups - **Codex** (3 comments, all fixed): - Collapsed saves now keep the superseded snapshot as the backup. - Braced `if (…) { return; }` guards are accepted. - Hooks without a readable declaration fail. - **Cursor Grok** (read-only review via agentctl, all fixed): - Closed the remaining recordings-scan race. - The guard now catches removed `offUiIsolate` wrappers and null-only guards. - Removed the `ResizeImage` false positive. - Strengthened the replaced-caller save test. - **Codex rounds 2–3** (all fixed): - A guard must be the `return`'s own `identical`/`==` condition on the injected values. - Comments that mention `offUiIsolate(` no longer exempt JSON calls. - A failing superseded-snapshot backup can't block the index write. - The transcript key is dropped when no capture session is active. - INV-PERF-1 is now proposed. ## Tests - `app/test/perf/notify_amplification_test.dart`: proxy hooks don't re-notify, and capture notifies don't walk the transcript. - `app/test/perf/conversation_list_off_ui_test.dart`: off-isolate parse/encode parity, stale writes, and sign-out. - `app/test/unit/wal_file_manager_save_cost_test.dart`: coalescing, off-isolate encode, backup re-validation. - `app/test/unit/voice_recorder_mic_contention_test.dart`: the waveform ticks without provider notifies. - `app/test/unit/local_segment_store_test.dart`: off-isolate digest parity. ## Line-count exceptions Line-Count-Exception: app/lib/backend/preferences.dart | 1514 -> 1538 | background conversation cache write with its generation guard (sign-out safety) Line-Count-Exception: app/lib/pages/conversation_detail/conversation_detail_provider.dart | 1514 -> 1518 | documented INV-PERF-1 allow on the one proxy hook that must notify Line-Count-Exception: app/lib/providers/conversation_provider.dart | 2119 -> 2121 | log failures of the now-async cache write Line-Count-Exception: app/lib/providers/device_provider.dart | 1594 -> 1598 | early return in the proxy update hook Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 4437 -> 4443 | early return in the proxy update hook ## UI evidence UI-Evidence: none -- no visual change; the memories list and voice waveform render the same, only their rebuild scope changed Failure-Class: none ## New guards (only when adding a check or ratchet) The ratchet would have flagged the defects fixed here when they landed: - `listSync` over the WAL directory in #7981 (`sync-file-io`). - The 60 Hz provider notify in the voice recorder, `1588ac7225` from #7009 (`fast-periodic-timer`). The provider-graph check catches the unconditional `notifyListeners()` in `updateExternalActions` / `setProviders`. It is a check, not a shared primitive, because the cost lives in how ordinary provider and file code is written. The primitive part (`offUiIsolate`) is what the check points people to. 🤖 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/21517?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="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Summary
HomeContentPagewith Ask Omi chat bar, Today tasks section, Daily Recaps preview (last 3 + View All), Conversations preview (last 3 + View All)ConversationsPagenow has a purple "Start recording" pill in the header; tap = start voice recording, long-press = sheet with "Start voice recording" / "Start call recording"clockRotateLeftDaily Recaps toggle; sync/search buttons moved to Conversations tab; tasks export/toggle moved to Tasks tab (index 2)startVoiceRecordingandstartCallRecordingkeys to all locales (English; translations pending)action-items→ tab 2,memories/facts→ push MemoriesPageTest plan
/action-itemsopens Tasks tab (index 2);/memoriespushes MemoriesPage🤖 Generated with Claude Code