Repository navigation
Description
Describe the bug
During BLE device recording (Omi/CV1/DK2-class live streaming), the app can stay in an active "Listening" state while no real data is progressing. If phone internet flaps or the live socket gets into a stale half-connected state, the transcript can resume with a gap (for example 1,2,3,4,5,16,17,18,19,20) and in worse cases the session appears stuck until the app is restarted.
This looks more serious than the current UX-only framing in #6171 for BLE device audio specifically: the app does not keep an always-on durable phone-side WAL for device audio while the socket merely appears connected.
To Reproduce
- Connect an Omi/CV1/DK2-style BLE recording device.
- Open the app and start a fresh transcription session.
- Start counting aloud from
1upward. - Around
5, enable airplane mode on the phone. - Around
15, disable airplane mode. - Keep speaking and watch transcript continuity and app state.
Current behavior
- The app can continue to look active / "Listening" even while no transcript progress is happening.
- When it resumes, the transcript can jump forward with the middle audio missing.
- In some cases the degraded state appears to persist until the app is force-closed/reopened.
- There is no strong user-facing signal for "device connected but no data is actually flowing".
Expected behavior
- Device audio should always be durably buffered somewhere during live streaming degradation.
- Reconnect should either resume the live path cleanly or upload/replay the backlog automatically.
- The app should surface an explicit warning if the device is connected but audio/transcript progress has stalled.
- The app should not stay in a zombie "Listening" state indefinitely.
Code-backed root cause
-
BLE device audio does not have always-on phone WAL buffering during normal live streaming.
Inapp/lib/providers/capture_provider.dart:622-625, device WAL support is only enabled when the socket is not connected orunlimitedLocalStorageEnabledis on:(_socket?.state != SocketServiceState.connected || SharedPreferencesUtil().unlimitedLocalStorageEnabled)
That means the normal "socket says connected" path does not keep an always-on durable phone-side copy for device audio.
-
Frames are treated as synced immediately after local socket send, not after durable server receipt.
Inapp/lib/providers/capture_provider.dart:639-649, frames are marked synced right after_socket?.send(...):_socket?.send(socketPayload); _wal.getSyncs().phone.markFrameSynced(frame.syncKey);
There is no per-frame server ack boundary here.
-
Recovery is tied to session end/startup/connectivity edges, not stalled live data flow.
WAL finalize/recovery paths are inapp/lib/providers/capture_provider.dart:1281-1392, and connectivity-triggered recovery is only inapp/lib/providers/capture_provider.dart:1595-1600.
There does not appear to be a watchdog for:- BLE still connected
- socket still reported connected
- but no transcript progress / no real end-to-end data progress
-
This differs from true offline device storage.
True offline storage exists when the device is actually disconnected (for example DK2 SD card flow documented indocs/doc/developer/DevKit2Testing.mdx:19), but this bug is the mid-session handoff / stale-live-path case.
Why this likely causes the observed gap
If network handoff or reconnect leaves the live socket in a stale "connected enough" state, the app may continue using the live-stream path without turning on durable WAL capture for device audio. That creates a gap window before recovery logic ever has a chance to help.
Suggested fixes
- Make BLE device audio use phone WAL as an always-on durability layer, not only when socket state is already disconnected.
- Treat websocket send as a fast path, not the durability boundary.
- Add a stall watchdog using some combination of:
- BLE audio bytes received
- websocket bytes successfully progressing
- transcript segment activity
- time since last good end-to-end progress
- Show a notification/banner such as:
Device connected, but no data is coming inwhen the stall watchdog fires. - Flush/finalize in-flight frames immediately on socket degradation / connectivity loss / background transitions instead of waiting for normal chunk/flush timing.
- Auto-sync backlog after reconnect instead of relying on manual recovery behavior.
Related but separate follow-up
There is also a WAL state-machine bug where SyncProvider shows WalStatus.corrupted as pending, but LocalWalSyncImpl.syncAll() only retries WalStatus.miss (app/lib/services/wals/local_wal_sync.dart:504). That can strand retryable recordings forever. I think that should be tracked/fixed too, but I am filing this issue specifically for the stale live-stream / missing-middle-audio path.
user ID (can we access the user info to validate the bug?):
Not included here.
Smartphone + device (please complete the following information):
- Device: reproduced by users across BLE Omi devices (not DK2-specific)
- OS: mobile repro uses airplane-mode network handoff; exact OS/device varies
- Browser: N/A
- App Version: not pinned here
- Device version: not pinned here
Additional context
Related issues:
- Audio capture data loss: offline sync failures, silent drops, and recording loss #5733 umbrella capture-loss issue
- UX: 'Recording, reconnecting' warning during internet outage is unclear about data impact #6171 currently frames a similar outage path as UX/manual-recovery only; this issue is specifically about BLE device audio not having guaranteed always-on durable WAL buffering during stale socket handoff
Activity
axAilotl commentedon Apr 23, 2026
Update after more code review + user testing:
I still think this issue's root cause is not DK2-specific and not primarily
WalStatus.corrupted. The live capture path treats a local WebSocket sink write as the durability boundary:_socket?.state == connectedunless unlimited local storage is enabled._socket?.send(...).So a stale or half-dead live socket can create a silent gap: the app believes audio was sent/synced, but the server/STT path may not actually process it. That explains the airplane-mode repro where the transcript resumes later with the middle missing.
Separate but related server-side observation: if backend STT/Deepgram dies mid-session,
backend/routers/transcribe.pycan setdg_socket = Noneand continue receiving client audio without forwarding it to STT. That can produce a connected/listening-looking session with no useful transcription progress.Current best root-cause wording for this issue:
beastoin commentedon Apr 27, 2026
it helps a lot. well researched bug report.
thank you @axAilotl !
style(app): apply dart format to BasedHardware#6977 stall-watchdog ch…
fix(app): address cubic review on transcript stall watchdog (BasedHar…
fix(app): arm stall watchdog on first subscribe and keep reconnecting…
fix(app): stall watchdog for zombie Listening on BLE live capture (Ba…
style(app): apply dart format to BasedHardware#6977 stall-watchdog ch…
fix(app): address cubic review on transcript stall watchdog (BasedHar…
fix(app): arm stall watchdog on first subscribe and keep reconnecting…
aryanorastar commentedon Nov 6, 2026
Historical iOS CV1 report of cloud reconnect with pendant connected
The customer reports missing conversations while Omi repeatedly said it was reconnecting, and clarified that the pendant was connected while the cloud connection was reconnecting. They reported an Unlimited plan. This is an older report with no app/firmware build, exact banner, close code, connectivity trace, or confirmed current recurrence. The portal shows two requesters, with one authored symptom report. Featurebase report
featurebase-for-github commentedon Nov 6, 2026
This issue is linked to our feedback platform. For feedback and updates, please visit this link.