Skip to content

Closing the Device Tutorial puts a live pendant into Transcribe Later state and blocks phone recording #20776

Closed

Description

@Itaxh1

TL;DR: Opening and closing the pendant Device Tutorial (even closing the intro without starting) switches the capture coordinator from live pendant capture to the Transcribe Later phase, although Transcribe Later was never on. The capture state then disagrees with the preferences: the phone mic button refuses to record ("Stop Transcribe Later on your pendant first"), and live socket recovery for the pendant exits early. The tutorial wrapper always calls restoreBatchModeAfterOnboarding(), and the coordinator's reducer flips the phase without checking that anything was suspended. Reproduced on the iOS Simulator with the real reducer.

Product impact (see PRODUCT.md and ISSUE_TRIAGE_GUIDE.MD)

  • Primary loop layer: Capture
  • Involves data loss, failed capture, or broken sync/trust. Failed capture: phone recording is blocked and live pendant recovery is skipped until capture restarts.

Describe the bug

The tutorial suspends Transcribe Later while it runs and restores it when it closes. Restore is unconditional, and the reducer _reduceOnboardingBatch treats every restore as "turn batch on".

To Reproduce

  1. Pendant connected and recording live (Transcribe Later off).
  2. Settings → Device → Device Tutorial (or the post-pairing tutorial), then close it.
  3. Home → tap the phone mic: "Stop Transcribe Later on your pendant before recording with your phone."
  4. Live reconnect for the pendant also stops working (it requires phase pendantLive).

Current behavior

Phase is pendantBatchLive and the active session's mode is batch, while batchModeEnabled is false.

Expected behavior

Closing the tutorial restores only what it suspended. If Transcribe Later was off, the phase stays pendantLive.

Screenshots

No screenshot: the visible effect is the phone-mic toast above. Evidence is the real reducer's output below.

user ID (can we access the user info to validate the bug?):

Not needed: found in the code and reproduced without a user account (local fixture backend).

Smartphone + device (please complete the following information):

  • Device: iOS Simulator, iPhone 16 (reproduction); the bug is in shared code, so physical iPhones are affected too
  • OS: iOS 18.0 (Simulator)
  • App Version: main at cf8201c (dev flavor)
  • Device version: any Omi pendant

Additional context

Root cause. InteractiveDeviceOnboardingWrapper.dispose always calls restoreBatchModeAfterOnboarding(), which dispatches OnboardingBatchChanged(suspended: false) (capture_controller.dart:1112-1115). _reduceOnboardingBatch sets toBatch = !event.suspended and moves pendantLive → pendantBatchLive (and the active mode to batch) whether or not batch was suspended. The controller body _restoreBatchAfterOnboardingBody correctly no-ops when nothing was suspended, but that does not undo the reducer's phase change. Effects: the phone mic is blocked and live reconnect returns early.

Reproduction. Reproduced on the iOS Simulator (iPhone 16, iOS 18.0) with a temporary integration test on main at cf8201c2f5. The test drives the real production classes; only the platform boundary is faked (nothing: this is the pure transitionCapture reducer). Pendant start with batch off, tutorial open (suspended: true), tutorial close (suspended: false), then a phone start:

OMI_FACT:c07-tutorial-exit-transcribe-later:batchModeEnabled=false
OMI_FACT:c07-tutorial-exit-transcribe-later:phase=pendantBatchLive
OMI_FACT:c07-tutorial-exit-transcribe-later:activeMode=batch
OMI_FACT:c07-tutorial-exit-transcribe-later:isPendantBatchRecording=true
OMI_FACT:c07-tutorial-exit-transcribe-later:phoneStartEffects=0
OMI_FACT:c07-tutorial-exit-transcribe-later:phoneRecordingBlockedByPendantBatch=Stop Transcribe Later on your pendant before recording with your phone.
OMI_REPRO:c07-tutorial-exit-transcribe-later:REPRODUCED

Suggested fix. Have the reducer read batchModeSuspendedForOnboarding from the environment and leave the phase alone when nothing was suspended (and/or only dispatch the restore when the suspend actually suspended).

Activity

  1. added
    bug
    flutter
    capture
    p1
    on Oct 6, 2026
  2. added a commit that references this issue on Oct 7, 2026
    8b18d35
  3. added a commit that references this issue on Oct 8, 2026
    4f5e52b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcaptureflutterp1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions