Skip to content

CRITICAL: Offline recording UI appears but audio is lost when connection drops #5909

Closed as not planned

Description

@omi-discord-vector

Problem

When internet connection drops during recording, app shows offline recording indicator/icon (suggesting it's buffering), but audio is actually lost instead of being saved for later sync.

Reproduction (Tested)

  1. Start recording with Omi device connected
  2. Say phrases 1-3 (internet connected)
  3. Disconnect internet (airplane mode / Wi-Fi off)
  4. Observe: app shows offline recording UI/icon
  5. Continue speaking phrases 4-9 (while disconnected)
  6. Reconnect internet
  7. Continue speaking phrases 10-11 (reconnected)

Expected

  • Phrases 1-3: captured ✅
  • Phrases 4-9: buffered locally → synced when connection returns ✅
  • Phrases 10-11: captured ✅

Actual

  • Phrases 1-3: captured ✅
  • Phrases 4-9: LOST ❌ (despite offline recording UI showing)
  • Phrase 10 onward: captured (only AFTER reconnect) ✅

Evidence

Test conversation: https://h.omi.me/conversations/f968265a-0ef8-4a6b-8088-41a90a20eb82
Shows phrases jump from 3 → 10, confirming 4-9 were lost.

Impact

CRITICAL DATA LOSS BUG:

  • Users trust the offline recording UI indicator
  • But audio is silently dropped instead of buffered
  • No warning that recording failed
  • Defeats core "always capture everything" promise

Root Cause (likely)

UI shows offline mode, but backend doesn't actually buffer audio when WebSocket disconnects. Audio frames are dropped (as confirmed in code analysis: no else clause when socket.state != connected).

Severity

HIGH — breaks trust in device reliability for critical recordings (meetings, etc.)

Activity

  1. hugoaap-code commented on Mar 22, 2026

    @hugoaap-code

    @beastoin @mdmohsin7 a gift for you

  2. added
    bug
    flutter
    capture
    p1
    on Mar 23, 2026
  3. beastoin commented on Mar 28, 2026

    @beastoin
    Collaborator

    @hugoaap-code did you find the offline audio on your phone? If you used the Omi device with the Opus codec, then when the WebSocket disconnected the WAL should have activated and stored the audio on your phone.

  4. beastoin commented on Mar 28, 2026

    @beastoin
    Collaborator

    Of course, manual syncs are still required to align your audio with the targeted timeframe of the conversation, but basically the WAL feature was there from the beginning to make sure you dont lose your audio bytes when the websocket disconnects.

  5. beastoin commented on Mar 28, 2026

    @beastoin
    Collaborator

    Also @hugoaap-code, can you add the person who reported the issue (the human, I mean) to the issues created by the bot? It would help a lot with clarifying the problem. You know, ambiguous issues with no clear steps slow us down a lot.

  6. hugoaap-code commented on Mar 28, 2026

    @hugoaap-code

    Hey @beastoin that was me bro

  7. hugoaap-code commented on Mar 28, 2026

    @hugoaap-code

    @hugoaap-code did you find the offline audio on your phone? If you used the Omi device with the Opus codec, then when the WebSocket disconnected the WAL should have activated and stored the audio on your phone.

    No but I didn't search for it.

    The experience I imagine to be perfect:

    I don't want to have to search for saved offline audio; I just want to see my conversations in my Convo feed, regardless of whether my connection dropped during recording.

    If internet fails The app should automatically keep recording offline and add to my Convo without me having to think about it.

  8. beastoin commented on Mar 30, 2026

    @beastoin
    Collaborator

    Closing as duplicate of #6171.

    Why: Kelvin's physical device repro (Pixel 7a, 2026-03-30) confirmed WAL captures all audio frames during internet outage — audio is NOT lost. The original reporter @hugoaap-code confirmed they never checked for saved offline audio and clarified their actual need: automatic recovery without manual sync ("I just want to see my conversations in my Convo feed, regardless of whether my connection dropped").

    That UX gap — no warning during outage, manual sync required, invisible transcript gap — is tracked in #6171 (P2).

    Parent tracker #5733 S3 updated accordingly.

    by AI for @beastoin

  9. beastoin commented on Mar 30, 2026

    @beastoin
    Collaborator

    @hugoaap-code — thank you for the detailed repro and for clarifying what the ideal experience should look like. Your feedback ("I just want to see my conversations in my Convo feed, regardless of whether my connection dropped") is exactly the bar we're building toward. That's now tracked as a P1 in #6171.

    Your reports across #4669, #4805, #4816, #4850, #4867, and this issue have been the backbone of the #5733 umbrella investigation. Genuinely appreciate the time and effort — it makes the product better for everyone.

    — from @beastoin (CTO) via AI for @beastoin

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