Skip to content

app: onboarding dictation completes on the server's words (#26833 review fixes) - #26852

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/fix-26833-onboarding
Dec 1, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/fix-26833-onboarding

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

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

ActivationCapture gains heardText: the server's words alone. liveText stays 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.

  • F1 (major): Done waits for the server's words. The dictation's ✓ was enabled by any shown words. A tap about 1 s after speaking, before the first server segment (5-7 s), called finish() with no server words. _enrollVoice then 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 follow heardText. 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 counts heardText too.
  • F2 (minor): a capture end no longer restarts the recogniser. LivePreviewController.endCapture() cleared the screen reason and notified. The page's listener then called setScreenCapture(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.
  • F3 (minor): heard is the server's words. The dictation passed liveText to onDone. On the notes-timeout and no-transcript paths, the phone's words then showed as the dictation's transcript. It now passes heardText.

Review round 1 (omi-panel review-20261201t021652-020f)

  • F1: the voice bar no longer bypasses the server's words. On the voice profile page, a full bar enabled Continue and auto-advanced even with no server words, so the sample was dropped. Both Continue arms now need server words. The auto-advance waits for them, and fires when they arrive after the bar is full.
  • F2: no restart from a stale "recording" state. A session roll ends the preview before capture's state changes. The page's preview listener then saw "recording" and started the recogniser again. The screen reason now follows capture-start and capture-stop edges seen by the capture listener only. The preview listener updates the words and never starts or stops the recogniser. A capture that rolls with no stop in between shows the server's words only until its next start.
  • F3: one capturing rule. LiveWordsCapturing.capturingForLiveWords, an extension on LiveWordsCapture, is the single definition. LiveWordsCoordinator and 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:
    • A capture end does not start the recogniser again, and the next capture does. If the preview hears of the end before capture's state changes, the recogniser still ends up off (F2).
    • heardText excludes the phone's words.
  • teach_voice_view_test.dart:
    • The phone's words alone don't enable Continue, and the server's words do.
    • A full voice bar with no server words neither continues nor auto-advances. When the server's words arrive, it moves on.
  • The F2 test now ends the preview while capture still reads "recording", and the engine stays off.

flutter test on test/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.dart and test/services/live_preview/: 303 passed. flutter analyze on 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

Git-on-my-level and others added 2 commits November 30, 2026 21:14
…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]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, none suppresses 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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
"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]>
@Git-on-my-level

Copy link
Copy Markdown
Member Author

/approve-ui 0ee6c3a

@Git-on-my-level
Git-on-my-level merged commit 96c2b86 into main Dec 1, 2026
60 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/fix-26833-onboarding branch December 1, 2026 04:10
Git-on-my-level added a commit that referenced this pull request Dec 1, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant