Repository navigation
app: onboarding dictation completes on the server's words (#26833 review fixes) - #26852
Conversation
…iew fixes) #26833 shows the phone's own recogniser words on the onboarding dictation step. Its post-merge review (omi-panel review-20261201t015359-1442) found that those display-only words leaked into decisions: - F1: Done was enabled by any shown words, so a tap before the first server segment finished with no server words, dropping the first-run voice sample and matching the conversation on nothing. ActivationCapture now exposes heardText (the server's words alone); the dictation's check and the voice profile page's Continue gate on it. - F2: a capture end cleared the screen reason, and the page's listener put it straight back, so the recogniser ran with no capture. The page now asserts the screen reason only while capture is active, and drops it otherwise. - F3: the dictation passed shown text (server plus phone words) as heard, so the notes-timeout and no-transcript paths showed the phone's words as the transcript. It now passes heardText. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…agment covers this fix Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
2 issues found across 9 files
Confidence score: 3/5
- In
activation_flow.dart, local words can hide Continue even when the server never delivers any words, leaving users with only Skip. Keep Continue available when no server words arrive. - In
20261201-onboarding-live-words-review-fixes.json,nonesuppresses the release note for this user-visible dictation change. Replace it with a sentence describing completion from server-recognized words.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/lib/pages/onboarding/variants/yinka/activation/activation_flow.dart">
<violation number="1" location="app/lib/pages/onboarding/variants/yinka/activation/activation_flow.dart:601">
P2: Local words now hide the Continue fallback even when the server never delivers any words. The ✓ stays grey, the status stays "Listening · …", and only the corner Skip is left. Keep Continue available when the server has not heard anything after the stuck timer, without showing the "can't hear" text while local words are on screen.</violation>
</file>
<file name="app/changelog/unreleased/20261201-onboarding-live-words-review-fixes.json">
<violation number="1" location="app/changelog/unreleased/20261201-onboarding-live-words-review-fixes.json:2">
P2: This PR changes onboarding dictation behavior for users, so marking the fragment as `none` suppresses its release note. Replace it with a user-facing sentence describing that dictation completes from server-recognized words.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| ), | ||
| // Words that arrive late still bring the ✓ back. | ||
| bottom: !heard && (_failed || _stuck) | ||
| bottom: !shown && (_failed || _stuck) |
There was a problem hiding this comment.
P2: Local words now hide the Continue fallback even when the server never delivers any words. The ✓ stays grey, the status stays "Listening · …", and only the corner Skip is left. Keep Continue available when the server has not heard anything after the stuck timer, without showing the "can't hear" text while local words are on screen.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/onboarding/variants/yinka/activation/activation_flow.dart, line 601:
<comment>Local words now hide the Continue fallback even when the server never delivers any words. The ✓ stays grey, the status stays "Listening · …", and only the corner Skip is left. Keep Continue available when the server has not heard anything after the stuck timer, without showing the "can't hear" text while local words are on screen.</comment>
<file context>
@@ -594,7 +598,7 @@ class _DictationStepState extends State<_DictationStep> {
),
// Words that arrive late still bring the ✓ back.
- bottom: !heard && (_failed || _stuck)
+ bottom: !shown && (_failed || _stuck)
? _WayOn(
status: _failed
</file context>
| @@ -0,0 +1,3 @@ | |||
| { | |||
| "kind": "none" | |||
There was a problem hiding this comment.
P2: This PR changes onboarding dictation behavior for users, so marking the fragment as none suppresses its release note. Replace it with a user-facing sentence describing that dictation completes from server-recognized words.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/changelog/unreleased/20261201-onboarding-live-words-review-fixes.json, line 2:
<comment>This PR changes onboarding dictation behavior for users, so marking the fragment as `none` suppresses its release note. Replace it with a user-facing sentence describing that dictation completes from server-recognized words.</comment>
<file context>
@@ -0,0 +1,3 @@
+{
+ "kind": "none"
+}
</file context>
| "kind": "none" | |
| "change": "Onboarding dictation now completes using words recognized by the server, keeping the final transcript accurate." |
…edges (#26852 review) omi-panel review-20261201t021652-020f on #26852: - F1: on the voice profile page a full voice bar enabled Continue and auto-advanced with no server words, dropping the sample. Both Continue arms now need server words; the auto-advance waits for them and fires when they arrive after the bar is full. - F2: a session roll ends the preview before capture's state moves, and the preview listener re-admitted the screen reason from the stale "recording" state. The reason now follows capture start/stop edges seen by the capture listener only; the preview listener is display only. - F3: the capturing rule is defined once, as LiveWordsCapturing.capturingForLiveWords, used by LiveWordsCoordinator and the onboarding page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
/approve-ui 0ee6c3a |
Keeps main's dictation finishing on the server's words (#26852) and drops its phone-mic labels: onboarding listens only through an Omi (SCA-4440). Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Forward fix for three findings from the post-merge review of #26833 (omi-panel review-20261201t015359-1442). #26833 shows the phone's own recogniser words on the onboarding dictation step, next to the server's words. Its contract is that the server's words alone decide the dictation. These fixes make the code keep that contract.
What changes
ActivationCapturegainsheardText: the server's words alone.liveTextstays as the display text, the server's words plus the phone's words ahead of them. Demo and test captures return their single text for both.finish()with no server words._enrollVoicethen dropped the first-run voice sample (fewer than 10 words), and the conversation was matched on no words. The ✓ and its "Tap the check" hint now followheardText. The phone's words still show at once, and still keep the step out of the "can't hear you" and Continue fallbacks. The voice profile page (TeachVoiceView) uses the same capture, and its Continue word gate had the same flaw. It now countsheardTexttoo.LivePreviewController.endCapture()cleared the screen reason and notified. The page's listener then calledsetScreenCapture(true)again, so the recogniser ran without a capture. The page now sets the screen reason to whether capture is active: recording, device recording, interrupted or system audio, and not paused. These are the same states that keep the recogniser on for capture in front. A capture end stops the recogniser, and the next capture starts it again, in either notification order.heardis the server's words. The dictation passedliveTexttoonDone. On the notes-timeout and no-transcript paths, the phone's words then showed as the dictation's transcript. It now passesheardText.Review round 1 (omi-panel review-20261201t021652-020f)
LiveWordsCapturing.capturingForLiveWords, an extension onLiveWordsCapture, is the single definition.LiveWordsCoordinatorand the onboarding page both use it.Tests
Each new test was checked to fail with its fix reverted.
yinka_onboarding_activation_flow_test.dart: with only phone words on screen, tapping ✓ does not finish the step (F1). When the server's words arrive, the step finishes, and after the notes deadline the summary shows only the server's words, with the phone's extra words absent (F3).voice_profile_running_recording_test.dart:heardTextexcludes the phone's words.teach_voice_view_test.dart:flutter testontest/widgets/voice_profile_running_recording_test.dart,test/widgets/variants/yinka_onboarding_activation_flow_test.dart,test/widgets/onboarding_first_run_steps_test.dart,test/widgets/teach_voice_view_test.dartandtest/services/live_preview/: 303 passed.flutter analyzeon the changed files: no issues.Product invariants affected
none
UI-Evidence: none -- no layout, copy or style change. The ✓ and Continue keep their existing enabled and disabled looks. Only when they enable changes (on the server's words rather than the phone's), which a screenshot cannot show. The widget tests above cover it.
🤖 Generated with Claude Code