Skip to content

Phone-side capture fallback when BLE device disconnects #11078

Closed

Description

@aryanorastar

Summary

When an active recording from a supported wearable loses its Bluetooth connection mid-session, the app should automatically fall back to capturing audio via the phone's own microphone (in batch mode) for the duration of the disconnect, then hand off cleanly back to device streaming on reconnect. Today nothing fills that gap: the app stops receiving device audio on BLE disconnect and does not start the existing phone-mic batch fallback, so the interval is lost until the wearable reconnects.

This is distinct from #7194. #7194 is about the wearable/phone continuing on-device offline recording (recording locally without a live connection to sync later) — a separate, existing-but-flaky code path. This issue is specifically about falling back to phone-mic capture while BLE is down, as a complementary safety net, not a replacement for on-device offline recording.

Expected behavior

  • An active supported-wearable recording that loses BLE mid-session automatically starts the phone's own mic batch-recording fallback.
  • The fallback correctly triggers for the actual device-streaming state (not just the phone-mic recording state).
  • The phone batch is finalized before device streaming resumes on reconnect, with a deterministic (not fire-and-forget) hand-off.
  • Manual stops, unsupported devices, inactive sessions, and already-active batch sessions do not trigger the fallback.

Candidate implementation

#11066 implements this behavior and is being retargeted to track against this issue instead of #7194. It has an open, unresolved review comment noting the fallback predicate currently gates on RecordingState.record and does not trigger for the actual live BLE device-streaming state (RecordingState.deviceRecord), so the exact disconnect scenario this issue describes is currently missed by that PR's implementation. That needs to be fixed before merge.

Why a separate issue

A maintainer (@mdmohsin7) noted #7194 is specifically about on-device offline recording (which already exists but is flaky), and that a phone-capture fallback is not the right fix for that issue. Filing this separately so the phone-fallback behavior can be reviewed and scoped on its own merits.

Activity

  1. undivisible commented on Aug 20, 2026

    @undivisible
    Collaborator

    Closing per automated triage (2026-08-20): superseded: phone-mic fallback deliberately reverted (#11134). See /tmp/omi-issue-triage.md.

  2. moved this from Someday to In review in omi TODO / bountieson Aug 20, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions