Repository navigation
fix(app): v3 Home pages on server has-more and cursor; live tile shows speech span and End - #25725
Conversation
…e shows speech span and an End action Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
…egenerates from the test Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
The background refresh used the body length as its offset advance and as its full-page test, so a refresh that crossed a run of hidden rows re-read rows on the next page and dropped older loaded rows. Use the server's storage count for both (#25721 review F3). Failure-Class: FC-raw-page-limit-before-visibility-filter Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
… v3 window; day view hides what Home hides (#25721) ## Summary A v3 smell audit (2026-11-18, prod at 9c88e7f, read-only, counts only) found that Home stops early for **48 of 648 v3-active owners (7.4%)**, leaving **37,540 visible rows** unreachable. It also found a stale legacy row showing as a live tile, and a day view that shows rows Home hides. This PR fixes all three on the server, for the TestFlight builds already shipped, without an app release. ### F1: Home stops at a run of hidden rows - **Cause, server side:** the indexed Home query (`discarded == False`) still matches `home_hidden` v3 windows and recordings, and readers drop them. Each page read at most 50 + `_RULE_DISCARD_PAGE_SKIP_CAP` = 64 rows. The cap counted every refill read, not only hidden rows. So a run of 64 or more hidden rows returned a short page. - **Cause, app side:** the app treats a page with fewer than 50 rows as the end (`conversation_provider.dart:986/1379`). The longest measured hidden run per owner is p99 93 and max 158. The product owner's run is 73 rows, so Home stopped after 16 rows. - **Released apps already read a storage cursor.** Since #24541 (2026-11-04), the app adds `X-Omi-Conversation-Page-Size` to its offset, and uses `>= 50` on that value for `hasMore` (`conversation_provider.dart:985-986`, `1378-1379`; `conversations.dart:199`; `conversation_home_list.dart:52`). The server only sent that header while it suppressed episode members. **Fix** - **One shared page fill** (`_PageFill`) for the offset and cursor paths: - Only hidden rows count against the cap. Visible rows never do. - Under a request budget (the Home route) the cap is now `_HIDDEN_ROW_PAGE_SKIP_CAP = 512`, so the longest measured run (158) fits about 3 times over. Readers without a budget (full-document internal callers of `get_conversations`) keep 64, so their worst case does not grow. - Refills start at the number of missing slots, then double. A long hidden run therefore costs a few RPCs, not one RPC per row. - The worst case is page + 512 rows, read with the list projection (no transcript blobs). That is far inside the existing 25,000-document request budget, which still charges every row. - **`/v1/conversations` now always sends `X-Omi-Conversation-Page-Size`**, set to the number of storage rows the page consumed. This is the amount the next `offset` must advance by. Released apps then: - **page past a hidden run:** the value is at least 50 even when the body is short; - **stop re-serving rows:** the next offset lands exactly after the last row read. - **Offset semantics are unchanged.** The offset still counts storage rows on the indexed path, so desktop and older clients that send their visible count behave as before: some rows are re-served (deduped by id), and none are skipped. Re-interpreting the offset as a visible count would need a scan of every hidden row before a deep offset, and would change desktop pagination, so I did not do it. The header carries the exact advance instead. `include_discarded=true` keeps its visible-row offset, and its header equals the page length. - **New `X-Omi-Has-More: true|false`.** It is `false` only when the scan reached the end of the query. A short page caused by the cap, or a page cut by the budget, says `true`. - **New optional `cursor` query parameter**, reusing the `conversation_list_cursor` lever code (100% on prod). With the lever on, the response carries `X-Omi-Next-Cursor`, and a cursor that decodes replaces the offset. A malformed cursor falls back to offset, as before. **The body is still a plain list.** OpenAPI and the generated TS and Swift clients are regenerated (one optional parameter added). ### F3: `/v1/conversations/live` showed a stale legacy row It returned the newest non-recording in-progress row. It did not require `v3_derived`. #25719 (merged while this PR was open) added a 2-hour idle cap in `utils/conversations/v3/live.py`. **Fix:** the route no longer scans the general list. It reads v3 windows through the existing `conversations_v3_derived_window` index (`v3_derived ASC, finished_at ASC, started_at ASC`), in the new `database/conversations_v3_live.recent_windows`: - Filters: `v3_derived == True`, `finished_at >= now - MAX_IDLE` (2 hours) and `started_at <= now + 5 min`. This is the same query shape `conversations_v3.py:284-288` already serves. - `.select()` reads only the fields the route returns plus the visibility flags. No transcript blobs are downloaded. - The index is ascending by `finished_at`, so the newest window comes last, and a read cannot stop early once it finds the open one. Reading newest-first would need a new descending index, which this PR does not add. The tile is polled every 15 seconds, so the read works in two bands instead: - **Recent band (last 10 minutes) first.** An open window's `finished_at` is its latest speech, so a speaking window is almost always here, and this band holds only a few rows. - **The rest of the 2-hour window only if the recent band has no live window**, for example an open window that has been quiet for a while. The two bands do not overlap (`finished_at < now - 10 min` on the wider one), so no row is read twice. - **One 200-row cap for each call, shared by both bands.** Reaching it is logged. - `v3_live.active` then returns the newest row that is `in_progress` with `tile_state == 'live'` and is not recording, `home_hidden`, deleted or discarded. A legacy in-progress row can never match, however new it is, and newer legacy rows can no longer push the open window out of a fixed-size scan. ### F2: the day view showed rows Home hides A date range turned off `hide_home`. **Decision: apply `hide_home` to a date-only filter**, rather than add a Home drill-in flag: - The day view is Home's own drill-in, so it should hide the same rows. - A new flag would need an app release and would not help the shipped builds. - Explicit reveal filters still show hidden rows: `include_discarded`, `sources`, `folder_id`, `starred` and non-default `statuses`. - `/v1/conversations/count` is unchanged. Its hidden-row subtraction with `hide_home` and a date range would need a new composite index, and the day page does not call it. ### Not in this PR (owned elsewhere) - The v3 `commit_projection`/reconcile size fix. - The sync intake `mark_new` fix. - F4, the live-tile clock: an app change, in #25725. ### Why the day-view change has no lever Hiding the same rows in the day view that Home hides ships on, with no read lever. This repo's rule is to ship on by default and to add a flag only for real risk to users, data or cost: - The change can only hide rows that Home already hides. - Every explicit reveal filter still shows them. - The response headers are additive. - If it proved wrong, the rollback is a one-line revert of `hide_home=not reveal`. ### Follow-up (deferred from review-20261119t003449-3d72) - Tell a deadline exhaustion (a retry can succeed) apart from a document exhaustion in `has_more`. - Guard `recent_windows` against a zero page size. It is unreachable today. - Document the client rule: `X-Omi-Has-More: true` with no cursor means fall back to offset paging. - Pass `max_idle` into `active()`. - A hidden-row run that ends exactly at the cap costs one extra empty request. ### Known limits (intended) - **A full page always says `X-Omi-Has-More: true`.** It does not probe for a next row. When the query ends exactly on a page boundary, the client makes one extra request and gets an empty page. A probe would charge every full page one more read to avoid that rare, harmless request. - **The budget can run out before any row is read**: on the offset charge, on the first read, or in the `include_discarded` scan. That page returns empty with `X-Omi-Has-More: false`, because there is no position to resume from and an identical retry would stop at the same place. - **Clients that ignore the headers still end on a short page.** A page cut at the 512 hidden-row cap is short but not final. Flutter Home reads the headers (#24541, #25725). The Flutter day view (`day_conversations_page.dart:133,159`) and web (`data.length === limit`) do not, so a date range holding more than 512 consecutive hidden rows still stops early there. The longest measured run is 158, and the follow-up is to have those views read `X-Omi-Has-More`. - **The app's incremental refresh** (`_fetchNewConversations`) still advanced by body length in the shipped build. #25725 makes it use the storage count. - **`/v1/conversations/count` with a date range** still counts hidden rows. Subtracting them needs a composite index that does not exist (see F2). For the record: macOS `ConversationRepository.swift:121-145` pairs a date-filtered list with a date-filtered count. A day view there can therefore show a count above the rows listed, until that index is added. ## App release needed? No. F1, F2 and F3 take effect for released and TestFlight builds as soon as this backend deploys. The cursor and `X-Omi-Has-More` headers are additive. Using them in Flutter is optional follow-up work. ## Test plan - New `backend/tests/unit/test_home_hidden_run_pagination.py`, synthetic rows only. It mirrors the app's paging loop (`offset += header`, `hasMore = header >= 50`): - 30 visible, then 150 hidden (`home_hidden` or recording), then 100 visible. Every visible row is reached exactly once, in order, and each page reads at most page + cap rows. - The first page is full and reports `storage_rows=200`. The next page starts exactly after it, with no re-served rows. - An app that ignores the header still reaches every row. - A run longer than the cap (cap patched to 64) returns a short page that still says `has_more` and keeps paging to the end. - End of the collection reports `has_more=false`. A budget cut keeps its prefix and says `has_more=true`. - A cursor walk across the run reaches every row. - Route: the headers are set, the cursor round-trips, and the body stays a list. - Day view: `hide_home` stays on for a date range alone and turns off for each reveal filter. - `test_conversations_v3_contract.py`, live route (#25719's cases kept, with v3 rows): - only an open, visible v3 window is returned; hidden, deleted, discarded, processing and recording rows are not; - a v3 window idle past the cap is not live; - when several qualify, the newest wins; - the read uses the v3 index filters and projection; - a speaking window among 100 recent finished ones is found with one recent-band read; - a window quiet for 30 minutes is found by widening to the full window; - the wider band excludes the recent one; - with nothing open, the cap is shared across both bands, and reaching it is logged with the bound that applied. - Updated: `test_fsr_wq4_cursor.py` (the cap counts hidden rows only) and `test_pending_bridge_read_budget.py`: - without a budget, the bound is page + 64; - with a budget, the bound is page + 512, reached in at most 5 RPCs with growing batches. - An offset charge that exhausts the budget returns `has_more: false` with no reads. - Firestore guard set passes locally (`test_firestore_query_shapes`, caller and runtime witnesses, index rules, query contract): - the driver registry covers `_PageFill._run`; - the cursor collector's entry and digest pin are removed, since it no longer streams a query itself; - the live route's old list caller witness and profile are removed, and `recent_windows` is a registered driver covered by the existing v3 window index. UI-Evidence: none -- only regenerated API client types change (one optional query parameter on the conversation list); no screen changes Line-Count-Exception: backend/database/conversations.py | 5257 -> 5292 | one shared hidden-row page fill replaces the two refill loops; its docstring states the storage-advance contract Line-Count-Exception: backend/routers/conversations.py | 2909 -> 2919 | optional cursor query parameter and page-header wiring; the helpers live in utils/conversations/list_page_headers.py and utils/conversations/v3/live.py and the live query in database/conversations_v3_live.py Failure-Class: FC-raw-page-limit-before-visibility-filter 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…ne v3 live row David's direction on #25725 and two v3 QA bugs: - End Conversation leaves the Home live row and sits in the live conversation's detail bar beside Ask Omi, shown only while this phone is capturing; the bar shows for a live window even before its transcript. - A conversation still in progress no longer opens a summary write that spun and then fell back to "No summary available": the Summary tab says the summary comes when it ends, shows what was said so far, links the transcript, and re-reads the conversation every 15 s; once it ends the summary streams as before. - v3 Home keeps the live row for a streaming capture: a placeholder row stands in until (and between) server windows, instead of the pendant capture card swapping in whenever the live read comes back empty. Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
Panel review-20261119t042023-7cdf on #25725: - F1: the detail page passes onOpenTranscript, so the in-progress note's Open transcript link selects the Transcript tab. - F2: the 15 s live re-read skips while the page is under another route. - F4: the placeholder row names the capture's own state. - F5: the refresh's coverage rule takes the server's has-more answer first. - F6: End stays in the bar on the Transcript tab beside the player. - F7: the live bar and hasBar are gated on the account's v3 answer. - F8: page-level Open transcript test; the live re-read stops once ended. Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
…ceholder David's review of the live detail render, plus panel follow-ups F5/F6: - Opens on the Transcript tab while live; the Summary tab keeps one line, "Summary when this conversation ends" (no link, no snippet). No forced tab switch when the window ends. - "● Live · 11m" replaces the date chip for a live window, through the same duration authority as the Home row. - Share is hidden until the end; the ⋯ menu drops summary, edit, share and delete actions on an open window (Home already refuses those). - An Omi call keeps its call card; the live placeholder leaves calls out. - The End label scales down within 45% of the bar on narrow screens. Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
…reated_at Panel review-20261119t070411-84b9 on #25725: - F1: End shows (and acts) only when the open live window's transcript holds a segment this phone captured, so a desktop's live window never offers an End that would finalize this phone's capture. - F2: the refresh's coverage boundary uses created_at, the order list pages are read in, as _cachedRowsBeforePage does. Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
Panel review-20261119t070411-84b9 F2 on #25725: the capture keeps its segments until the WAL drain finishes, so End stays on screen and a second tap re-entered forceProcessingCurrentConversation, adding a second processing row and finalize. The button now acts once, like the pendant's double-tap gate. Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
… current Panel review-20261119t075514-3bac F1 on #25725: the 15 s live re-read lived in LiveSummarySection, which the Summary tab builds; a live page opens on Transcript, where TabBarView never builds that tab, so nothing re-read the window. And a window that ended with transcription pending (transcribing) dropped the section and its re-read, so the page never saw writing or done. LiveConversationRefresher, owned by the detail page, re-reads every 15 s while the window is live or transcribing, one read at a time and only in front. The section reads nothing itself, holds the write through transcribing ("Transcribing…"), and streams once the window is writing. Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
…orks again after a failed drain Panel review-20261119t083457-7e6a on #25725: - F1: more() put !truncated ahead of the server's has-more answer, so a page the read budget cut short ended Home paging although the server says more exactly when the cut page advanced. The server's answer now decides; the truncation guard stays for an older server's fallback. - F7: End's one-shot guard never reset, so after a failed drain (the capture keeps its segments) End stayed on screen but dead. It resets once the finalize settles. Failure-Class: FC-capture-session-window-read-as-content-duration Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
/approve-ui 93d0e55 |
Resolve ARB/localization append conflicts with #25725: keep main's keys, drop deviceRecently/deviceDisconnectedFor, keep deviceUploadsWaitingOnServer (+Subtitle); regenerated with flutter gen-l10n, l10n check ok. Failure-Class: ui-copy Co-Authored-By: Claude Opus 5.5 <[email protected]>
l10n: took main's ARBs and generated files, re-added this PR's 42 pending keys, and regenerated (l10n.py check: 49 locales, 4566 keys). conversation_list_item: the V3 "Listening · X" line now uses #25725's duration authority (speech so far), not start to now, and carries its conversation_row_live_length key. Activity strip: #25725's LiveConversationRefresher and LiveSummarySection now own V3 re-reads, so the strip only names the step for V3 and keeps its capped poll and "Still working on it." Try Again for status processing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…5771) ## What changed and why Opening a live conversation shows the current phone's transcript as soon as the authenticated recording and episode match. The detail replaces those lines when the server transcript arrives and preserves the reader's position. The Summary tab shows recent speech for short conversations. Opening the **Summary** tab requests the first eligible recap and shows the last time included. Saved recaps display immediately. Eligible new speech refreshes the recap every five uninterrupted minutes with Summary visible in the foreground. Leaving Summary, navigating away or backgrounding resets the interval. Only a failed request offers Try again. Opening the row on Transcript and passive detail refreshes make zero live-summary model calls. The new stream requires the exact accessible live episode and uses the existing notes policy and lease. Cached notes live in an owner-encrypted field separate from final notes. Repeated requests can reuse the same input. Speech that arrives during generation remains in the conversation and the recap retains its original coverage. The End action landed in #25725. This PR now targets main. Internal iOS distribution and compatible backend serving are tracked in SCA-3063. Implementation and design approval are tracked in SCA-3062. ## Internal TestFlight rollout Release pairs the signed app with a serving backend restricted to authenticated members of David’s existing internal group. Emptying the live-recap cohort disables streaming and hides saved live recaps while keeping Transcript and finished summaries available. Before distribution, Release verifies that synthetic nonmembers trigger zero provider calls and that first opens, retries, and timed requests can be joined to provider attempts, including failures. Cache reuse and lease conflicts are counted separately. Pipeline pauses the beta on the first confirmed automatic generation outside eligible foreground Summary viewing or more than one per viewer in a rolling five-minute window. Release can disable admission immediately. Pipeline owns the server-enforced generation budget required before expansion. SCA-3063 owns backend serving, signing, processing and group availability. ## Product invariants affected - INV-MEM-4 and INV-TASK-2. A live recap skips memory intake, task discovery and task writes. Finished conversations use the existing processing policy. - INV-CAP-1 ## How it was verified On the m5 worker, the local Firestore emulator regression passed using synthetic speech and no provider calls. Five focused backend modules passed 205 tests covering routing, lease transactions, live capture, the wire contract and final delivery. All ten response compression tests passed. Pyright reported zero errors for the changed router, model, writer and summary orchestration modules. The Flutter Home/detail, live recap widget and authenticated transport suites passed 60 tests on the final tab-open implementation. The suite includes canceled swipes, passive growth, account changes, End, failed hydration and deliberate retry, and reopening a saved recap. The Flutter engine rendered the four iOS-layout images below. The public OpenAPI contract and the generated Dart, TypeScript and Swift client bindings passed their checks. TestFlight distribution and real-device measurements are tracked separately on SCA-3063. The additional routed-detail, transcript geometry and preview suites passed 114 Flutter tests. They cover first paint, replacement by the hydrated transcript, reading position within two logical pixels, redaction, owner changes and capture rollover. On the revised five-minute refresh candidate, the Dart analyzer ratchet and 43 Flutter widget tests passed locally. The routed test counts one first-open and one additional stream request at the uninterrupted interval with new speech, zero extra requests for unchanged speech or across tab, app, and route interruptions. The rendered coverage screenshot reflects the revised screen. These synthetic checks measure request dispatch; production model work, device latency and TestFlight availability await Release. For the internal cohort and attribution revision, 68 focused Flutter tests passed, including foreground interval rotation, missing speech, auth replay and removal of denied saved previews. The four-file synthetic backend suite passed 154 tests. Two visits on opposite sides of a five-minute bucket boundary joined to the same viewer within the rolling window. The synthetic gateway accounting recorded one successful and two failed provider attempts. Cache reuse, lease conflict, denied membership and revocation before provider dispatch made zero paid requests in their respective fixtures. Backend type checking reported zero errors. The feature registry and deployment classification checks passed. No production accounts or provider services were used in these proofs. The independent review follow-up passed 47 Flutter tests and 117 backend tests. They cover cancellation of an active client subscription when the app leaves foreground, a transcript fallback after preview invalidation, contiguous versus overlapping new speech, and removal of generated legacy sections from serialized integration responses. An upstream provider invocation already dispatched may still finish. The follow-up stream regressions confirm that an owner correction invalidates a saved live preview and that correction plus new speech rejects an in-flight stale result before publication. ## Tests The Firestore emulator test round-trips synthetic speech through the storage codec and actual lease transaction. It checks that a second writer cannot acquire the lease, an append preserves the original coverage, and a same-clock correction rejects stale output. Flutter tests exercise the live row, Summary and Transcript tabs, and requests across identity and navigation changes. ## UI evidence     ## Failure class (fixes) Failure-Class: none Line-Count-Exception: app/lib/backend/http/api/conversations.dart | 1623 -> 1635 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: app/lib/pages/conversation_detail/conversation_detail_provider.dart | 1499 -> 1527 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: app/lib/pages/conversation_detail/page.dart | 1492 -> 1734 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 5046 -> 5082 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: app/lib/widgets/conversation_bottom_bar.dart | 1513 -> 1516 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: app/lib/widgets/transcript.dart | 1583 -> 1593 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: backend/database/conversations.py | 5292 -> 5293 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: backend/routers/conversations.py | 2957 -> 3014 | Extend the existing owning surface for authenticated live transcript and recap handling. Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3541 -> 3549 | Extend the existing owning surface for authenticated live transcript and recap handling.
…#25757) ## What this changes Every tap now ends in something the reader can see. This PR adds **§17 Outcomes** to the mobile UX contract, adds four ratchet rules to `check_mobile_ux_contract.py`, fixes the Finish path completely, and lands the clear S1 and S2 fixes from the 2026-11-19 behaviour audit (`omi-knowledge-base/projects/mobile-ux-behaviour-audit/evidence/2026-11-19-behaviour-audit.md`). Each fix that has an injection seam has a test for the failing path; the ones without one are listed under C. This PR changes the INV-UI-3 contract and its guard (`product/invariants/mobile-ux-contract.md`): it adds §17 and the new MUST NOT lines, and extends §2 so inline editors and full-page forms also guard unsaved input. ## Product invariants affected - INV-UI-3: §17 Outcomes, new MUST NOT lines, four new ratchet rules. - INV-CAP-1: `capture_controller.dart` gains `finishCaptureWithOutcome()` and a typed mic-denied start error. The capture ownership order is unchanged (see B). ### A. Contract and guards - `app/docs/ux-contract.md` §17 Outcomes keeps all nine rules from the audit draft, tightened. It names the shared pieces: `FinishOutcome` / `presentFinishOutcome`, `OmiMissingTarget`, `applyOmiSetting` and `OmiUnsavedChangesGuard`. - §2: the dirty guard now covers inline editors and full-page forms through `OmiUnsavedChangesGuard`. - `product/invariants/mobile-ux-contract.md`: matching MUST NOT lines. - New ratchet rules. Each uses the per-file no-increase shape and the `omi-ux-allow` escape, and each has a failing case plus precision cases in `test_check_mobile_ux_contract.py`. The new `--totals` flag prints the tree-wide counts below. | Rule | Counts | Tree-wide at merge base (`2779f1adc04`) | After this PR | |---|---|---|---| | `silent-catch` | `catch (…) {}`, and catch bodies that only log, under `pages/` and `providers/` | 135 | 132 | | `generic-error` | `somethingWentWrong*` in a call with no way forward (`actionLabel:` with `onAction:`, or `onRetry:`) | 64 | 60 | | `material-page-route` | `MaterialPageRoute(` in code (not comments) | 8 | 7 | | `pop-before-await` | a `Navigator…pop(` whose next `await` in the same block is a request | 10 | 10 (one new deliberate pop is allow-commented) | `pop-before-await` ships because it was tuned on `app/lib` until it was precise. The naive version counted 32 hits, about half of them false positives: arrow handlers such as `() => Navigator.pop(ctx, true)`, and a pop followed by `await showOmiConfirm(…)` or `openAppSettings()`, which moves on to the next surface. The rule now: - counts only a pop in a `{}` block, not an arrow handler; - counts only when the first `await` after the pop is a request, not `show*`, `open*`, `push*` or `launch*`; - stops at a `case` label. That leaves 10 hits on main. All of them are real "close, then request" sites, for example `add_app.dart` Submit, the summary template sheet and the M1 bulk-visibility sheet. ### B. Finish (C1, C4, C5, C6, C7, C9, C13): done completely "Finish this capture" now returns one typed outcome everywhere (`services/capture/finish_outcome.dart`): - `FinishOpened` - `FinishProcessing` - `FinishNothingNew(alreadySaved)` - `FinishDiscarded` - `FinishNotReceived` - `FinishSavedForLater` (phone Transcribe Later) - `FinishFailed(noAnswer | exception)` `finishLiveCapture` in `pages/episodes/finish_capture.dart` is the one path behind the live page's Finish, Home's Wrap Up and the record-button stop. It never throws, so no caller can get a bare null. `presentFinishOutcome` shows the outcome the same way from every entry point: - **Success:** opens the conversation, or the processing page, from every entry point, including Wrap Up and the record button (C9). Home switches to its list and scrolls to the newest row, so the new row is on screen when the reader goes back (C13). - **Failed** (no answer, timeout or any exception): the reader stays on the live page, the transcript stays on screen, and an error offers Try Again, which re-sends even though the controller has moved its lines aside (C1, C4). The Finish button stays while the request runs and after it fails (C7). - **Server refused / not received:** with words on the page this now says "Omi hasn't received this audio yet…" and keeps the page. "Nothing to process yet" is used only when the page showed nothing (C5). - **Discarded:** "That recording was too short or empty to keep." The processing page now ends as soon as it sees the discarded conversation or recording, instead of waiting 20 minutes (C6). - **Phone mic:** the phone's own recording always goes through Process Now, so the server decides. Home's stop used to call `finishCapture()` directly, and the live page used to skip the request for a phone page with no lines yet. Both now take the same path. **Capture ownership contract (kept):** the controller still clears its live state before Process Now, inside `forceProcessingCurrentConversation`. The C1 ownership and generation contracts depend on that ordering: `_systemSurfaceConversationRevision` is bumped synchronously before the request, so lines that arrive afterwards belong to the next conversation, and the placeholder row is added before reset. `test/providers/force_processing_placeholder_test.dart` and `app/test/spine/c1_*` cover this. Following the brief, I kept the contract and fixed what the reader sees at the page level. The live page holds the transcript it showed at the tap (`HeldCapture`), and `LiveTranscriptView(held:)` renders it read-only while the server has not answered and after a failure. The controller's only change is `finishCaptureWithOutcome()`, which keeps the existing request and returns the `ProcessAbsence` that `finishCaptureWithResult()` used to drop. The processing row is still removed only after the server answers. Outcome tests: `test/widgets/finish_outcome_test.dart` runs on the real `LiveEpisodePage` and `CaptureProvider`. It covers 5 answers × 3 sources (pendant streaming, pendant batch, phone mic), and each case asserts what is on screen. The 5 answers are: success, server refuses, no answer, exception and discarded. The file also has a mapping test for every Process Now answer. `test/services/capture/mic_denied_start_test.dart` drives the real controller through the replay world. Two cases in `finish_opens_conversation_test.dart` pinned the old behaviour (silent pop to Home on failure; "Nothing to process yet" on a page with preview lines). They now assert the new behaviour. ### C. Clear fixes **S1, all landed:** - **C2:** with the mic denied, the record button gets a typed `MicPermissionDenied` and shows "Omi can't use the microphone…" with Open Settings. Any other start failure says "Couldn't start recording." with Try Again. - **P1:** `UsageProvider.restorePurchases()` → `paid | free | failed`. A failed read is never "Free plan" on the trial, outline or web paywall. - **D1:** the firmware lookups return null on failure. The page shows `OmiErrorState` with Try Again instead of a green "up to date". - **V1:** Share and the visibility menu run one `runConversationShare` flow. A sheet that fails after the conversation went public is reverted. A revert that fails says "still shared" and offers Make Private. - **A1:** the create-app and edit-app forms are wrapped in `OmiUnsavedChangesGuard`. The create form compares against its presets, so a preset form is not "dirty". The edit page's `clear()` now runs only after a real pop. - **G1:** the goal slider follows the finger. A failed save puts it back with a message and Try Again. - **G2:** the goal sheet stays open on a failed save, with what the reader typed, and says so inside the sheet with Try Again. A page toast would sit under the modal sheet, out of sight. **S2, all landed:** - **L1:** an ended-recording link says it has ended. - **L2, H4, V12:** `OmiMissingTarget` messages replace "Something went wrong" and "not found or deleted". H4 and V12 add Try Again. - **L3:** a failed pull-to-refresh with rows on screen says so, with Try Again. - **D2:** closing Google's sheet is silent, like cancelling Apple. - **D4:** a disconnected device gets "Connect your device…", not "unsupported". - **D5:** Use a Different Account confirms first. - **D8:** a Ray-Ban rescan that finds nothing says so, with Try Again. - **G3:** the Goals page shows an error, not the empty "Add goal" state. - **G4:** a failed goal delete says the goal is back, with Try Again. - **T1:** a failed load-more shows a notice with Try Again, and scrolling stops re-triggering it. - **T3:** a failed drag between sections says so, with Try Again. - **T4:** the Apple Reminder is deleted only after the server confirms. - **T5:** locked tasks that were kept are an info message, not a failure. - **P4:** notification settings that could not be read show an error state, not defaults. - **P5:** every notification setting saves through `applyOmiSetting`, which rolls back and reports. - **H2:** a mid-stream error keeps the words already shown and puts the error under them. - **H3:** Clear Chat and persona switch say "Wait for Omi to finish answering." - **H5:** a voice note that is too short says so. - **A2:** a disabled Submit says what is missing. - **A4:** a setup timeout says the setup isn't finished, not "Failed to connect". - **V3:** a refresh keeps the rows, failures show `OmiPartialNotice`, and a failed Show More has Try Again. - **V5:** the visibility menu goes through the Share consent flow. Tests for S1 and S2 are in: - `test/widgets/outcomes_widgets_test.dart`: D1, G2, G4, A1, P4, P5, D2, D5, C2 - `test/providers/outcomes_provider_test.dart`: P1, G1 (provider: a failed save answers null and keeps the saved value; the slider-follow behaviour itself has no widget test), G3, T1, T4, T5, H2, D4, V1/V5, C6 - `test/widgets/home/home_navigation_test.dart`: L1, L2 - `test/pages/review/recent_changes_page_test.dart`: V3 L3, D8, T3, H3, H4, H5, A2, A4 and V12 have no dedicated test. Each is a page-level message on a path with no injection seam: a top-level API call, a platform plugin or a file I/O guard. I did not add seams just for tests. ### Not reproduced or out of scope - **Not reproduced (medium confidence, no cheap failing test):** C3, H1, P2, V8, V9, L4, L5, D7, D9, P6, P8. - **Out of scope per brief:** C8, C10, visual and motion work, and S3 items other than C13. ## Turn 2: David's rulings of 2026-11-19 and the V3 findings ### Rulings applied 1. **Legacy pendant live page ("Listening · Pendant", episodes off):** Finish takes the reader to the conversation once it exists. While the server is still making it, the reader waits on the processing page for that recording, which turns into the conversation page as soon as it exists. Finish never lands on Home. `finish_outcome_test.dart` (pendant streaming, pendant batch, phone) and `finish_opens_conversation_test.dart` assert this. 2. **"Finish" is not renamed anywhere.** No stop control is added, moved or relabeled. The swipe action below uses the existing `finish` string. 3. **No in-place transform of the live page.** The design stays a separate processing page that turns into the conversation. 4. **Motion rules:** added to `app/docs/ux-contract.md` §10 as contract text. 5. **Copy:** every new string is short and avoids "process". I also shortened my own turn-1 strings, for example "Didn't go through. Your audio is safe." and "Audio's still on its way."; I did not rewrite strings outside the findings. The copy table is applied at the named sites (see "Not done" for two exceptions). ### V3 findings | Id | What changed | Test | |---|---|---| | X2 | Same fix as C1. The test that asserted the silent pop now asserts the reader stays on the page with the error and Try Again. | `finish_opens_conversation_test.dart` "a Finish that failed offline…" | | X5 | One `isFailedConversation()` (`pages/conversations/home_rows.dart`) reads `tileState` first, then the legacy fields. Home, the conversation page's Summary retry slot, Activity and the bell all use it. A failed V3 conversation is hidden from Home (`shownOnV3Home`) and listed under Activity's needs-attention section with Try Again, whether or not `home_processing_today` is on. It lights the bell's attention dot until Activity has shown it. | `v3_outcomes_test.dart`: a predicate test, plus a table from each tile state to Home, Activity and the bell dot, built from the decoder fixture (status completed, tile failed) | | X6 | A failed older page ends Home's list with one line of tertiary text, "Couldn't load older ones. Tap to retry." It is tappable with a 44 pt target and shows a small spinner while it retries. It has no button styling. Scrolling no longer retries on its own. Tasks (T1) and Recent Changes (V3) use the same line. | `v3_outcomes_test.dart` X6 (provider and widget) | | X7 | While any listed row is transcribing or writing, Home re-reads the list on the existing 15 s V3 tick (`ConversationsV3Provider.watch(rowsPending:, refreshRows:)`). | `v3_outcomes_test.dart` X7 | | X9 | A discarded recording ends the processing page on its first read with the too-short message. This is the C6 fix plus the panel's F1 fix (the read includes discarded rows). | `outcomes_widgets_test.dart` C6 | | X10 | Three failed reads in a row show "Couldn't check on it. Try again." with Try Again. "Taking longer than usual. We'll have it on Home." appears only after a read that answered. A failed list read now counts as a failure instead of "not there yet". | `v3_outcomes_test.dart` X9/X10 | | X11 | One `conversationIsLive()` (`conversation_detail/conversation_live_guard.dart`) gates the Home row (long-press, delete swipe) and the conversation page's Delete, Reprocess, Rename, Move, Visibility, Link and Share. A refused action says "Wait until it ends to change it." | `v3_outcomes_test.dart` X11 | | X12 | On V3 the detail strip names the step ("Transcribing…", "Writing summary…"). #25725's page refresher and summary section keep those conversations current. When the strip's own reads run out for a processing conversation, it shows "Still working on it." with Try Again, and it resumes when the app comes back to the front. | `conversation_detail_status_test.dart` X12 | | X14 | A conversation link reads through `openConversationById` (new `api/conversation_open.dart`), which separates found, deleted (404), locked (402) and unreachable. Offline says "Can't connect right now." with Try Again; deleted and locked each have their own sentence. "Not found or deleted" is gone from this path. | `v3_outcomes_test.dart` X14 (3 cases) | | X17 | A failed pending-work read keeps the last good `home_processing_today` answer, so Activity's lists stay. Before the first answer, and after an account reset, a failed read still keeps old Home. The two store tests that pinned "every failed read turns it off" now assert this rule. | `v3_outcomes_test.dart` X17 | ### Approved design changes - **Status words on V3 Home rows:** live "Listening · 11m", transcribing "Transcribing…", writing "Writing summary…". This is one quiet line in the secondary style where the time goes, with no button. The live length is the speech so far, from #25725's duration authority. - **In place:** the state tile and the line cross-fade at `OmiMotion.standard` through a new `OmiCrossFade` (`ui/components/omi_cross_fade.dart`). At rest it draws the bare child: `AnimatedSwitcher` kept a fade layer and a clipping stack on every Home row, and the production shell gate caught it (30 opacity layers against a budget of 11). With `OmiCrossFade` the gate passes with no budget change. A screen reader hears "Summary ready" when a row goes from transcribing or writing to done. - **Swipe left on the live row reveals Finish.** It has the same gesture and shape as swipe-to-delete, in neutral colours, with the existing `finish` label. - A long swipe only opens the row. - A tap runs `finishLiveCapture` once: the live page's typed outcome from part B, then `presentFinishOutcome` opens the result. - It shows only when this phone captured the conversation, using #25725's rule (a shared segment id). - A failure leaves the row live and shows the error toast. - Tested: a swipe reveals Finish; a long swipe does not fire it; a tap finishes once; a failure says so; another device's live row does not swipe. - **Failed conversations fold away:** a failed row leaves Home and the bell's dot appears, with no toast. Home has no row-removal animation today; deleted rows vanish too. So the row leaves without animation. Adding list removal motion means changing the Home sliver list that #25725 also changes, so I left it for a follow-up. - **End of list:** see X6. - **Conversation page waiting state (V3):** the activity strip says "Transcribing…", then "Writing summary…", from the tile state, instead of "Processing conversation…". - **Copy table:** applied at the named sites. - **Motion where I was already in the code:** - Tasks first load cross-fades from skeleton to list in the same place. - A completed task's tick lands within `OmiMotion.quick` before the row moves to Completed. ### Not done, and why - **"Getting audio ready…":** the site is the audio player's 90 s budget in `widgets/conversation_bottom_bar.dart`, which #25725 changes. Today the bar cannot tell "still being built" from "unavailable" when the budget ends, so this needs a new state, not a string swap. - **"Upgrade to open this one." for a chat citation:** done for links (X14). The citation path reads through `getConversationById`, which folds 402 into null. Moving it to `openConversationById` changes the citation test seam; I left it for a follow-up. - **Summary cross-fade into the placeholder on the conversation page:** that is `live_summary_section.dart`, which #25725 owns. - **Memories first-load cross-fade:** I did not touch Memories in this PR. - **Out of scope per the rulings:** X1, X3, X8, X16, and any new or moved stop button. ### After PR #25725 merged (merge `06f73ba2a56`) #25725 landed on main at 11:12 UTC. I merged it in and resolved the overlap: - **l10n:** took main's ARBs and generated files, re-added this PR's 42 pending keys, and regenerated. `l10n.py check` passes: 49 locales, 4566 keys. - **`conversation_list_item.dart`** (the only code conflict, in imports): - The V3 "Listening · X" line now uses #25725's duration authority, speech so far, instead of start to now. That is the follow-up named here before the merge. - The line carries #25725's `conversation_row_live_length` key, so its test finds the live row's one length. - Before any speech, the line says "Listening". - **X12 activity strip:** #25725's `LiveConversationRefresher` (live, transcribing) and `LiveSummarySection` (writing) now own V3 re-reads. The strip only names the V3 step. It keeps its capped poll, and "Still working on it." with Try Again, for status `processing`. Tests: "X12: v3 names the step and leaves its reads to the page" (no strip reads) and "X12: when the reads run out it says so with Try Again". - `page.dart`, `conversation_detail_header.dart`, `conversations_page.dart` and `conversation_provider.dart` merged without conflicts. ### After merging main again (merge `b36880a4e9a`, translations `4788ffc0fa2`) Main had moved 78 commits. Resolved: - **l10n:** took main's ARBs and generated files, then re-added this PR's 42 keys with `omi-l10n-fill stub`. - **`app/lib/pages/home/firmware_mixin.dart`:** both sides added a top-level declaration in the same spot: this PR's `debugLatestFirmwareLookup` test hook, and main's `firmwareNotInstalledMessage` (CV1). Both are kept. - **Translations:** `omi-l10n-fill fill` translated all 42 strings into the 48 other locales, with a review pass that made 12 fixes. `app/l10n-pending.json` is removed. ## Other polish I noticed (not done here) 1. `app/lib/pages/episodes/finished_capture_page.dart:176`: the processing page becomes the conversation through a `MaterialPageRoute` slide. Under the §10 motion rules, content changing in the same place should cross-fade. 2. `app/lib/pages/conversations/widgets/conversation_list_item.dart:737`: legacy Home rows still carry "Summary failed · Retry", a button on a row. For legacy accounts with `home_processing_today` off, that contradicts the no-buttons-on-rows ruling; those failures could go to Activity the same way as V3. 3. `app/lib/widgets/conversation_bottom_bar.dart:1108`: audio still being built when the 90 s budget ends reads "Audio Unavailable". It should say "Getting audio ready…" and keep checking. 4. `app/lib/pages/chat/widgets/ai_message.dart:836`: an offline citation tap shows the generic internet error with no Try Again. It could use `OmiMissingTarget.offline` like links do. 5. `app/lib/l10n/app_en.arb:2330`: "This conversation cannot be merged (locked or already merging)" is technical. "This one can't be merged right now." would do. 6. `app/lib/pages/action_items/action_items_page.dart:1256`: a failed task tick shows `failedToUpdateActionItem` with no Try Again, and the tick snaps back with no motion. 7. `app/lib/pages/conversations/widgets/conversation_list_item.dart:1111`: the "New" badge blinks at 1 s for a minute. A static badge would be calmer, and the blink ignores Reduce Motion. 8. `app/lib/pages/conversations/conversations_page.dart:750`: scroll-to-top uses a literal 500 ms instead of `OmiMotion.emphasized`. 9. `app/lib/pages/conversations/widgets/conversation_list_item.dart:523`: the card's selection and opacity changes use literal 200 ms durations instead of `OmiMotion` tokens, so they ignore Reduce Motion. 10. `app/lib/pages/conversations/conversations_page.dart:1347`: `Logger.debug('loading more conversations')` runs on every build of the list end, which is noise in support logs. ## Strings All new copy is English-only, stubbed with `omi-l10n-fill stub`. `app/l10n-pending.json` lists 30 keys for the coordinator's translation fill. `python3 app/scripts/l10n.py check` passes. ## Review panel (omi-panel review-20261119t060850-6128, FIX-FIRST at `0538116473`) The fifth commit (`49d171c323a`) answers it: - **F1 accepted:** the processing page fetched without discarded rows, so C6 never fired in production. It now reads with `includeDiscarded: true`. A widget test drives the page's poll with a discarded row. - **F2 and F5 accepted:** `generic-error` now needs `actionLabel:` with `onAction:`, or `onRetry:`. There are tests for a label with no callback and for `OmiErrorState(onRetry:)`. - **F3 accepted:** `applyOmiSetting` takes a `setting` key. A late failure of a superseded write neither rolls back nor reports. Tested. - **F4, F7 and F11 accepted:** a fresh first page or a filter reset clears load-more failure state (tasks and Recent Changes). Tested for tasks. - **F8 accepted:** the disabled Submit says "Finish the capability and pricing details above to submit." when the basics are filled in. This adds one English string, stubbed. - **F9 accepted:** `heardSomething: hadContent || retry`. - **F10 accepted:** a firmware lookup that throws is a failed check. - **F12 accepted:** a goal delete that throws puts the goal back. Tested. - **F13 accepted:** commented-out code no longer counts toward `material-page-route`. The table above is recomputed with the final rules. - **F14 accepted:** `finishCaptureWithResult` had no production caller and is removed. Its test uses `finishCaptureWithOutcome`. - **F6 rejected:** `app/l10n-pending.json` is read by the workspace's `omi-l10n-fill fill`, which the coordinator runs before review. The tool lives in the workspace repo, not here. ## Screenshots Rendered from `test/widgets/outcomes_render_test.dart` (iPhone size, real fonts, synthetic data). | D1 firmware check failed | P4 settings not read | G2 goal save failed | C2 mic blocked | |---|---|---|---| |  |  |  |  | The G2 capture caught a bug in my first fix: the error went to a page toast hidden under the sheet. The third commit moves it into the sheet. ## Line-count exceptions Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 5046 -> 5059 | finishCaptureWithOutcome returns the ProcessAbsence the old wrapper dropped, and the typed mic-denied start (C2) must live where the stage runs; splitting the capture controller is out of scope for a UX outcomes PR Line-Count-Exception: app/lib/providers/action_items_provider.dart | 1533 -> 1561 | T1 load-more failure state, T4 reminder-after-server ordering and T5 typed clear result belong to the provider that owns these writes Line-Count-Exception: app/lib/providers/device_provider.dart | 1754 -> 1755 | D1: firmware lookups now return null on failure, and the caller keeps its empty-map default explicitly Line-Count-Exception: app/lib/pages/action_items/action_items_page.dart | 1468 -> 1507 | T1's quiet load-more line and the first-load cross-fade and tick timing (approved motion) live in the page that owns the list; splitting the Tasks page is out of scope here Line-Count-Exception: app/lib/providers/conversation_provider.dart | 2350 -> 2358 | X6: a loadMoreFailed flag set in the existing failed-page branch and cleared on success; no paging logic changed (PR #25725 owns paging) Line-Count-Exception: app/lib/pages/conversation_detail/page.dart | 1734 -> 1738 | X11: the live-conversation guard on the menu and share paths (two imports, two early returns); the share flow itself moved out to share_flow.dart ## Panel review (turn 2, review-20261119t101336-51ef) Only luna ran: deepseek and glm-flash failed to launch. | Finding | Triage | |---|---| | F1: an empty pendant Finish leaves the pendant streaming | Rejected. `origin/main` (`live_episode_page._finishOnce`) does the same: the pendant keeps listening, and Finish closes the episode. | | F2: a late failed goal-slider save resets a newer drag and offers a stale retry | Fixed in `1c2d6fd50c6` with a per-goal revision. Test: `outcomes_widgets_test` "G1: a late failed save…", which fails without the fix. | | F3: the processing page reads only 10 rows | Rejected. `origin/main` reads the same 10 rows, and the target is the newest. | | F4: two overlapping failed setting writes show a value the server never saved | Fixed in `1c2d6fd50c6`: a failure rolls back to the last value the server confirmed. Test: "P5: two overlapping failed changes…", which fails without the fix. | | F5: the pop-before-await ratchet misses braced pops | Rejected for this PR. It is a heuristic ratchet, so this is a false negative; left as a follow-up. | ## Verification All runs on m5, Flutter 3.44.5 (the pinned version), `TZ=UTC`, through `omi-heavy`. **Head `4788ffc0fa2` (after the second main merge and the translation fill), Flutter 3.44.5:** | Command | Result | |---|---| | `python3 app/scripts/l10n.py check` | pass: 49 locales, 4569 keys | | `app/scripts/analyze_ratchet.sh` (on `b36880a4e9a`) | pass | | `flutter test` on the merge-affected files: `finish_outcome`, `finish_opens_conversation`, `outcomes_widgets`, `goal_sheet_and_undo` and 12 firmware test files (on `b36880a4e9a`) | pass: 155 tests | | `scripts/pr-preflight` (pre-push hook) | pass | The full `app/test.sh` was not rerun after this merge; CI runs it. **Final head `06f73ba2a56` (after merging #25725 from main):** | Command | Result | |---|---| | `bash app/test.sh` | pass: 9892 passed, 7 skipped, 0 failed | | `scripts/pr-preflight --pr-body-file <this body>` | pass: 34 checks | | `python3 app/scripts/l10n.py check` | pass: 49 locales, 4566 keys | | CI on the previous head `1c2d6fd50c6` | all green except "UI author approval" | **Turn 2, earlier head `ac37906b563`:** | Command | Result | |---|---| | `bash app/test.sh` | pass: 9874 passed, 7 skipped, 0 failed | | `scripts/pr-preflight --pr-body-file <this body>` | pass: 34 checks | | `python3 app/scripts/l10n.py check` | pass: 4565 keys (42 new English keys, stubbed with `omi-l10n-fill stub`) | | `run_journeys.sh --lane hermetic --filter j7_conversation_merge_recovery` | pass on `ac37906b563`: 4 tests | | `make mobile-verify ARGS="fast --all"` (on `a0c6f1a9bf9` plus an uncommitted first draft of `OmiCrossFade`) | j1–j6 pass. j7 failed 4 tests on that draft's dispose bug, fixed in `ac37906b563` and rerun above. The full fast set was not rerun on the final head. | The full suite on `23b0f179aec` failed 15 tests in 5 files. Each failure is fixed in `ac37906b563`: - Perf shell gate: per-row fade and clip layers, fixed with `OmiCrossFade`. - Two pending-work store tests that pinned the old X17 behaviour. - The Home V3 row list, which still expected the failed conversation on Home (X5). - A test that used the old predicate name. - The pending-row "read error" cases, which pass again with the "no answer yet" rule. **Turn 1** (earlier heads): the full `app/test.sh` and `mobile-verify fast --all` passed on `b97e008006f`. The UX contract ratchet tests passed (32). After `ac37906b563` the branch gained only: - a clean merge of `origin/main` (26 commits, no shared files); the whole-app analyzer then reported no errors. - one `const` in a test, for the analyzer ratchet; `app/scripts/analyze_ratchet.sh` passes. - the panel F2/F4 fixes (`1c2d6fd50c6`). `outcomes_widgets_test` and `goal_sheet_and_undo_test` pass (15 tests), and preflight passes (34 checks). The new tests were written against the audit's failing paths. I did not check out the old code to watch each one fail. Failure-Class: new 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
This is the Flutter half of the v3 Home read-path fixes. It builds on the backend PR #25721, which already fixes paging for shipped builds without an app release. On top of that, this PR fixes two live-tile problems from the 2026-11-18 owner audit and two v3 QA bugs David reported (an endless live summary and the live row flapping).
X-Omi-Has-Moreand the cursor.ConversationPageHeadersreadsX-Omi-Has-MoreandX-Omi-Next-Cursor.X-Omi-List-Truncated). The server says more only when the cut page advanced, so the next request resumes past it rather than repeating it. Only an older server's cut page still ends paging (review-20261119t083457-7e6a F1)._fetchNewConversations). It used the body length, so after a refresh crossed a hidden run, the next page re-read rows. Its "rows absent from the page are gone" rule also used the body length. A refresh page shortened by hidden rows therefore dropped every older loaded row until the next full fetch. That rule now treats a page as full when the server says there is more (or, from a server without the header, when its storage count is full). It covers only down to its oldest visible row, bycreated_at, the order pages are read in (fix(conversations): Home pages past hidden runs; live tile is an open v3 window; day view hides what Home hides #25721 review F3; fix(app): v3 Home pages on server has-more and cursor; live tile shows speech span and End #25725 review F3).started_at, so the silence after the last words kept growing it. On the owner's account it showed "25m" while the detail showed "11s". It now goes through the same duration authority as the detail (getDurationInSeconds): the transcript span, orfinished_at - started_atwhen the live read carries no transcript. For an open v3 window,finished_atis the server's last speech.CaptureProvider.forceProcessingCurrentConversation(), the same action as a pendant double-tap.live) starts no summary write. Its Summary tab shows one quiet line: "Summary when this conversation ends".LiveConversationRefresher), whichever tab is open, one read at a time and only while it is in front. It keeps reading while the window isliveortranscribing. Once the window iswriting, the summary streams as before (fix(app): v3 Home pages on server has-more and cursor; live tile shows speech span and End #25725 review-20261119t075514-3bac F1).TabBarViewnever builds the Summary tab, so nothing re-read the conversation.transcribing. Its Summary tab now says "Transcribing…" (an existing key) and still starts no write. Before, the section was dropped attranscribingalong with its re-read, so the page never sawwritingordone.conversationSummaryWhenItEnds, is added to all 49 locales withscripts/l10n.py./v1/conversations/livereturned a row (processing_capture.dart, deferred onv3Live != null). Any gap brought the old red-dot card back: before the first window, between windows, or after a missed poll.episodeOpenTranscript) was not new to this PR and stays, because the Home recording bar and the episode sections still use it.The day page still counts returned rows. With the backend change, its pages re-serve some rows (they are deduped) but no longer stop at a hidden run. Moving it to the headers would change its fetcher type and every fake that uses it, so I left it out here.
UI evidence
These are widget-test renders, made with synthetic data and real fonts, from
test/pages/conversations/home_v3_test.dartwithV3_HOME_RENDER_OUTPUTset. The row and the detail show the same length (11m).In these renders the transcript lines show as blocks. That is a test-engine artifact, not the app: the transcript's
RichTextsets no font family, and the test engine's default face draws boxes. A device shows the system font. Every other label uses the loaded SF fonts.Test plan
test/providers/conversation_home_has_more_test.dart:offset=542&cursor=k1;offset=542after a 30-row body);created_at. A row created inside the refreshed range but started long ago, and absent from the page, is dropped; older rows stay. This test fails with the oldstartedAtboundary.test/pages/conversations/home_v3_test.dart:test/widgets/conversations_v3_widgets_test.dart:LiveConversationRefresherreads one at a time, skips while another route covers the page, keeps reading through transcribing, and stops at writing;test/providers/conversation_home_has_more_test.dart: a budget-cut page keeps paging when the server says more, stops when it says no more, and an older server's cut page is never taken for a full one.Deferred from review-20261119t083457-7e6a (minor or nit; this PR has converged):
created_at(pre-existing).Line-Count-Exception: app/lib/backend/http/api/conversations.dart | 1609 -> 1623 | optional cursor and page-header callback on the two list readers; the header type lives in conversation_page_headers.dart
Line-Count-Exception: app/lib/widgets/conversation_bottom_bar.dart | 1489 -> 1513 | the live branch of the detail bar: End beside Ask Omi on Summary and beside the player on Transcript, gated on the account's v3 answer; the button itself lives in live_conversation_end_button.dart
Line-Count-Exception: app/lib/providers/conversation_provider.dart | 2350 -> 2372 | the server cursor field, the has-more rule at the three page sites, and the refresh's storage-count advance
Failure-Class: FC-capture-session-window-read-as-content-duration
🤖 Generated with Claude Code