Repository navigation
fix(app): Finish opens the conversation, with Processing until it is ready - #25733
Merged
Merged
Conversation
…ready On a batch pendant the live page shows only the on-device preview, never segments, so Finish took the "nothing heard" branch: no Process Now, no manual end, and the page popped to the list. Finish now counts preview lines as content, opens the conversation Process Now returns, and for a v3 recording opens a Processing page that turns into the conversation made from it (matched by recording_pieces) as soon as it is listed. Finish right after the server closed the recording on its own opens that one; with nothing to process it says so.
…ocessing page ends Review fixes. Finish is guarded and both Finish buttons show loading while it runs, so a double tap cannot pop Home before the conversation's page opens. A client Finish records the preview's word count; a repeat Finish with no new words says "Nothing to process yet." instead of sending another request. A recording the server answers still in progress (nothing it could process) says the same instead of waiting. The Processing page uses OmiLoadingState, reads once on every resume, and after its wait shows OmiErrorState "Still processing. It will appear on Home." with Back to Home.
kodjima33
marked this pull request as ready for review
November 19, 2026 01:28
kodjima33
added a commit
that referenced
this pull request
Nov 19, 2026
## Problem Follow-up to #25733 (review should-fix). Finish records the preview's word count before it sends Process Now. When Process Now gets no answer (offline, a server error), nothing was processed. But the next Finish saw no new words, said "Nothing to process yet." and sent nothing, so the capture waited for the server's own quiet close. ## Change `app/lib/pages/episodes/live_episode_page.dart`: the watermark is still taken at the tap, so words heard during the request still count as new. When Process Now returns no answer (`result == null`), the previous watermark is restored. Nothing visible changes. Spinner check from the review: the dark Processing screenshot shows a single dot only because a still frame caught the start of the indeterminate `CircularProgressIndicator` cycle, where the arc is almost zero. The other dark run, captured at a different moment, shows a normal arc (crops: mobile-ux-agent runs/2026-11-18/p1/spinner-dark-vs-light-frames.png). Same widget and colour in both themes. Not a defect, no change. ## Impact estimate Trust: a Finish tapped while offline now works on the next try instead of silently doing nothing. Base as in #25733: about 51 people in 48 h reported missing, stuck or slow conversations; 13 asked for a refund or return (voice.md). No conversion change modeled. ## Evidence No visible change; widget test only. ## At ship Nothing. ## Tests - New: `a Finish that failed offline is sent again by the next Finish` in `app/test/widgets/finish_opens_conversation_test.dart` (offline Finish, then Finish again online: one more request and the Processing page). Fails with main's `live_episode_page.dart`, passes here. - Also run: the rest of `finish_opens_conversation_test`, `process_now_conversations_tab_test`, `capturing_finish_swipe_back_test`, `episodes_ui_test` (58 green). ## Not verified - On device, offline then online (widget test only). ## Product invariants affected - INV-CAP-1: no change to capture or audio; only whether a retried Finish sends Process Now. ## Failure class (fixes) Failure-Class: none UI-Evidence: none -- no visible change; the fix only decides whether a retried Finish sends Process Now <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/25743?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> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/25743?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25743&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Nik, TestFlight 1.0.593, pendant, conversations v3: on the live page he tapped Finish and "nothing happens and I just get redirected back to list of all conversations". The conversation showed up about 4 minutes later.
What prod shows for his tap (read-only, 2026-11-18 22:21 UTC):
POST /v1/conversationscame from his phone. A batch pendant's live page shows only the on-device preview (provider.livePreview), neverprovider.segments, so_stopConversationtook the "nothing heard" branch. That branch does nothing for a pendant and pops to the list./v4/listensession, not by the tap. So the v3 recording never gotv3_manual_end, and the derived conversation hasmanual_end=False.recording_pieces[].recording_id, which is already on the list wire. The duplicate legacy sync piece (conversations-v3 beta: sync pieces duplicate derived conversations; open rows with audio and no job #25728) carries no pieces and no v3 flags.Base: in the last 48 h about 51 people reported missing, stuck or slow conversations, and 13 of them (28%) are in a refund, return or cancel thread (mobile-ux-agent runs/2026-11-18/analysis/voice.md).
Change
Finish now opens the conversation itself:
finishCapturethe Live Activity's Finish already runs (REST Process Now withCLIENT_FINALIZE; on v3,recording_short_pathmarksv3_manual_end).FinishedCapturePage,OmiLoadingState"Processing conversation…"). It reads the list every 5 s and once on every resume, then replaces itself with the conversation whoserecording_pieceshold that recording. Back goes to Home, where that conversation is the top row. After 20 min it stops polling and showsOmiErrorState"Still processing. It will appear on Home." with Back to Home. A resume still reads once.in_progress(the server'sno_contentnoop: no transcript and no stored audio): "Nothing to process yet." and back to Home, never a page that cannot resolve.isLoadingon Finish and Wrap Up Now. A double tap sends one request and opens one page.noteClientFinish). A later Finish with no new words says "Nothing to process yet." and sends nothing. The server-close mark works the same way, and both are tied to the preview session.route.isCurrentguard kept).recordingopens as a normal conversation. A failed Process Now (null) goes back to Home as today.Plaud, Pocket and Fieldy all land on the recording's own page after Stop and show transcribing/summarizing there until the note fills in. This follows that pattern with Omi's existing components.
Files:
app/lib/pages/episodes/live_episode_page.dart,app/lib/pages/episodes/finished_capture_page.dart(new;OMI_FINISHED_CAPTURE_MAX_WAIT_SECONDSshortens the wait in debug builds only, for simulator evidence),app/lib/services/capture/capture_controller.dart(lastServerClose,lastClientFinish), l10n.No backend change; no deploy order. Finding left for a separate PR: the listen teardown finalizes with the default
CAPTURE_ENDtrigger even after the client sentfinalization_reason: user_stop(backend/routers/listen/runtime.py:1487-1530→backend/routers/listen/conversations.py:493→lifecycle.request_finalization). So a phone Stop under v3 still yieldsmanual_end=False. Changing it also flipsrun_nowfor that path, so it needs its own review.Impact estimate
Trust and retention. Every pendant owner who taps Finish now lands on that conversation instead of an empty list. Measured base: about 51 people in 48 h reported missing, stuck or slow conversations, and 13 of them asked for a refund or return (voice.md). No conversion change is modeled.
Evidence
Same scenario on main and on this branch (
pipeline/scenarios/p1-finish-v3.sh, simulator, local backend), each run 3 times (light, dark, largest text):p1-finish-expired.sh, 15 s debug wait)Synthetic parts: the capture transcript (a seeded in-progress row loaded into the capture, since a simulator has no pendant) and the derived conversation (seeded 4 s after Finish). Finish, Process Now on the seeded v3 recording document, list reads and the detail page are real. Video: mobile-ux-agent runs/2026-11-18/p1/demo.mp4 and demo.gif (30 s).
At ship
No flags. Nothing to calibrate.
Tests
app/test/widgets/finish_opens_conversation_test.dart: batch pendant Finish with only preview lines processes; target page per Process Now answer; Finish right after a server close opens that recording; nothing heard shows the notice and pops; the matcher picks the derived row over the recording document and the conversations-v3 beta: sync pieces duplicate derived conversations; open rows with audio and no job #25728 sync piece, and the newest of several; the Processing page swaps in place once listed and stops polling; a double tap sends one request and opens one page; a repeat Finish with no new words sends nothing; a recording answered still in progress says nothing to process; after the wait it shows the expired state and Back to Home goes Home; a resume after the wait reads once and opens. 4 of the original behaviour tests fail with main'slive_episode_page.dart.process_now_conversations_tab_test,capturing_finish_swipe_back_test,episodes_ui_test,first_capture_finish_result_test,conversation_detail_transcription_pending_page_test(64 total, green).Not verified
OmiButtoncompact style.recording_pieceson a freshly derived row: Nik's prod row has them. If a row first lands without pieces, the page waits until they appear.Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 5030 -> 5046 | two read-only marks (server close, client Finish) with their getters and a setter, used only by Finish; splitting the controller is out of scope for this fix
Product invariants affected
Failure class (fixes)
Failure-Class: none
UI-Evidence: see the images above (.agent-artifacts/ui-evidence/mux-2026-11-18-finish-opens-conversation)