Skip to content

bug(app): Offline Sync counts gaps between chunks as pending audio #23561

Closed

Description

@aryanorastar

Grouped Offline Sync recording durations currently use latest end minus earliest start. The grouping tolerance admits gaps up to 120 seconds, so this reports time with no audio as pending audio. For example, three 5-second WALs starting at 08:00, 08:01 and 08:02 group as one recording and display 2m 5s instead of 15s on On the Way and Offline Sync. Overlapping phone/device copies must still count once.

Reproduced on main 5fb53c01cb86ce18c39f9589d30f4a1c906ad6c8 with production RecordingBlock/OnTheWayPage tests. Four regressions fail on unchanged code (gaps, overlapping copies plus gaps, invalid/empty lengths, and rendered summary/day/row).

Expected: count the union of positive audio intervals, preserve recording grouping, source files, ownership, retry and upload state. This corrects one demonstrable display inflation; it does not prove any reported backlog is noise, identify every bad clip, or establish customer recovery. Related startup recovery tracking: #23223.

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Oct 25, 2026
  2. huynhnhatquandongnai-source commented on Oct 25, 2026

    @huynhnhatquandongnai-source

    Submitted fix in PR #23570: RecordingBlock.seconds now computes the union of positive audio intervals, excluding gaps and deduplicating overlapping copies while preserving all grouping invariants. Regression tests included.

  3. moved this from In progress to In review in omi TODO / bountieson Oct 25, 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