Skip to content

fix double recording when both device and macOS app is on ($100) #3244

Closed

Description

@aaravgarg
Image

Activity

  1. added theissue type on Oct 17, 2025
  2. rishi-jat commented on Nov 1, 2025

    @rishi-jat

    @aaravgarg can I work on this issue ?

  3. rishi-jat commented on Nov 13, 2025

    @rishi-jat
  4. aaravgarg commented on Nov 14, 2025

    @aaravgarg
    ContributorAuthor

    @aaravgarg ??

    yeah, sure. whats ur plan of action? feel free to submit a PR

  5. seriyvolk83 commented on Nov 26, 2025

    @seriyvolk83

    You have two options here:

    • hardware device should send data only to one of the connected devices (macOS or another). And it can be specified in the settings (which has a priority.
    • send same UUID along with the data on both devices, and when they are saved on the backend, they are merged.
  6. octane88 commented on Nov 27, 2025

    @octane88

    you can add a state variable or flag, for example if the device is recording, macOS will check the state before trying to start recording. like some sort of device priority

  7. rishi-jat commented on Nov 28, 2025

    @rishi-jat

    @aaravgarg @seriyvolk83 @akcode24 whenever you have a moment, please take a look at PR #3537. Thanks!

  8. rishi-jat commented on Dec 2, 2025

    @rishi-jat

    @aaravgarg can you please have a look to my PR ? Thanks!

  9. beastoin commented on Dec 3, 2025

    @beastoin
    Collaborator

    pls convince me why this issue should be the issue ? by the way i don't think this one should be the issue, so won't fix is the way.

  10. aaravgarg commented on Dec 4, 2025

    @aaravgarg
    ContributorAuthor

    pls convince me why this issue should be the issue ? by the way i don't think this one should be the issue, so won't fix is the way.

    Image
  11. added a commit that references this issue on Jan 3, 2026
    51b24a6
  12. 10 remaining items

  13. jessechejieh commented on May 10, 2026

    @jessechejieh

    Respectfully this requires hardware to properly test

  14. jessechejieh commented on May 10, 2026

    @jessechejieh
  15. NAEL592 commented on May 22, 2026

    @NAEL592

    /attempt #3244

    I will reproduce the double-recording path when both the device and macOS app capture sources are active, add a focused source de-duplication/guard fix, and include the narrowest tests or manual verification notes the repo supports.

  16. 18166714330cl-maker commented on May 31, 2026

    @18166714330cl-maker

    /attempt #3244

    Plan: first check whether the double-recording path can be reproduced without physical hardware. If it can, I will isolate the app/device recording state transition and submit a small PR with clear verification steps; if physical hardware is required, I will stop rather than guessing.

  17. leo1987820 commented on Jun 28, 2026

    @leo1987820

    I'd like to take a careful pass at this, but I don't want to repeat the closed local-toggle approaches from #3537 / #4352 / #6353.

    From current main, the old Flutter capture_provider.dart path used by #6353 no longer looks like the right implementation surface. macOS capture now appears to run through desktop/macos/Desktop/Sources/AppState.swift:

    • mic + system audio are coordinated by reconcileCapture() with captureGateInFlight / captureReconcilePending;
    • system audio starts through startSystemAudioCaptureIfNeeded();
    • Omi BLE audio starts through startBleAudioCapture();
    • a simple “block one local capture mode when the other is active” does not match the earlier maintainer feedback that multi-device recording should be handled, not just toggled off.

    Before I open a PR, can a maintainer confirm the intended direction?

    1. Desktop-side gate: prevent the macOS app from creating a second backend recording while an Omi device / phone recording is already active, if there is a reliable device-active signal available to desktop.
    2. Backend / session reconciliation: propagate or use a stable device/session/recording key so simultaneous phone + macOS streams are merged/deduped rather than saved as duplicate conversations.

    I can cover the chosen path with focused unit tests around the state/reconciliation logic. I won't claim full hardware validation unless I can verify with a physical Omi device + macOS path.

  18. LerkiaLiang commented on Jul 16, 2026

    @LerkiaLiang

    I traced the current architecture before starting another implementation, because the three closed approaches all enforced local mutual exclusion and maintainers explicitly said multi-device recording should remain supported.

    Current main appears to make the duplication structural: the macOS app opens an identified /v4/listen stream with its own client/backend conversation id, while the Omi device path arrives through a separate app/session. The backend recording-session model is intentionally 1:1 with a conversation, so two active sources for the same user naturally persist two conversations/transcript streams.

    Could you confirm which acceptance target you want for this bounty?

    1. Multi-stream fan-in: introduce a shared capture/conversation-group identity so phone/device and macOS sessions append to one conversation while preserving per-device provenance; or
    2. Post-ingest reconciliation: keep separate sessions but detect overlapping near-identical transcript segments and converge them before finalization.

    I would favor (1): deterministic grouping is testable and avoids fuzzy text deduplication. If that matches the intended direction, I can scope the protocol/backend change plus unit/E2E coverage without disabling either source.

  19. AceeEcho commented on Sep 8, 2026

    @AceeEcho

    I'm interested in contributing an AI-assisted fix for the advertised $100 bounty. Before starting a competing implementation, could a maintainer confirm that the bounty is still available and which acceptance target from the discussion above is preferred for simultaneous macOS and device recording?

    I can work on the software implementation and regression tests, but I don't currently have Omi hardware and a macOS device available for end-to-end validation. Would automated tests plus maintainer hardware validation be acceptable? I'd proceed with a focused PR once the scope and current reward terms are confirmed.

  20. lazzyms commented on Sep 8, 2026

    @lazzyms

    I’d like to take a focused pass on this advertised US$100 bounty, if it is still available.

    The closed attempts show that a local “disable one source” guard is not the intended direction, and the discussion points toward preserving simultaneous device + macOS capture while preventing duplicate transcription. Before I implement, could a maintainer confirm:

    • the accepted target is shared-session/fan-in or another backend/session reconciliation approach, rather than blocking one capture source;
    • whether a software change with hermetic regression tests plus maintainer hardware validation is acceptable (I do not have Omi hardware available);
    • that the US$100 reward is still active and payable through the documented private PayPal process after a merged PR.

    I will keep the scope to the confirmed path and won’t start a competing implementation until the target is confirmed.

  21. MushinNakamoto commented on Sep 9, 2026

    @MushinNakamoto

    I found a concrete constraint while investigating #3244 against e0a7ada: the existing sync dedupe helper drops an incoming segment when its time range matches, before comparing the words. A local diagnostic using the real helper passes two synthetic segments with identical time ranges and different words: the incoming list becomes empty, and an assertion that the different incoming words survive fails. This means it cannot safely be reused unchanged across independent sources. This is a limitation of that proposed reuse, not a claim that #3244 currently executes that path. The manual merge serializes all source transcripts; when recordings overlap, it shifts the second transcript after the first rather than aligning or deduplicating it.

    Given #5388's requirement to keep different simultaneous recordings separate, is an explicit capture-group identifier carried by both clients acceptable for #3244, or must the backend infer duplicate recordings without client coordination? That determines whether the fix should coordinate capture identity or reconcile completed recordings while preserving both audio sources and unmatched speech.

    This investigation is AI-assisted through CodeGraph with independent test review. The evidence is from synthetic production-helper tests; two-device/end-to-end validation has not been performed.

  22. amyelchristian commented on Sep 10, 2026

    @amyelchristian

    Hi — I am evaluating this paid issue in an AI-assisted technical workflow with the authorization of this GitHub account owner. Before starting implementation, could you confirm two points?

    1. Is the remaining defect believed to be in the macOS capture/deduplication path, rather than device firmware?
    2. Would a focused PR with a software-only reproduction and regression test be eligible if final hardware validation is performed by a maintainer? I do not currently have Omi hardware and do not want to claim work that cannot be validated responsibly.

    I have not claimed the bounty or started a solution. If contributor-side hardware validation is required, I will leave this for someone with the device. Thank you.

  23. Aj2280 commented on Sep 11, 2026

    @Aj2280
    Contributor

    Hi @josancamon19 and @kodjima33,

    I would like to propose taking on this issue for the US Paid Bounty.

    Architectural Analysis:

    Currently, the macOS desktop app and mobile/device paths open independent capture sessions (/v4/listen) with separate session and conversation identifiers. A naive local kill switch (disabling capture) contradicts the goal of supporting multi-device environments.

    Proposed Solution:

    1. Shared Session / Capture-Group Coordination: Introduce a shared session or capture-group key so that when both the Omi device and macOS companion record concurrently for the same user, streams converge into a unified conversation instead of creating duplicate records.
    2. Backend Fan-In & Segment Deduplication: Ensure overlapping audio/transcript intervals are reconciled gracefully without dropping distinct speech.
    3. Hermetic Regression Test Suite: Add comprehensive unit and integration tests in backend/tests/ covering concurrent session streams, overlap resolution, and edge-case reconciliation.

    Could maintainers please confirm if this backend/session coordination approach is the preferred target and if I should proceed with submitting the implementation?

    Thank you!

  24. singhharsh1708 commented on Sep 11, 2026

    @singhharsh1708
    Contributor

    @aaravgarg @beastoin before writing anything here, this looks unsettled between you two. In December beastoin said won't fix, and later on #6353 that allowing multi device recording is the way rather than toggling a source off. Aaravgarg posted the duplicate screenshot arguing the opposite, and it was never resolved, which is probably why the three previous PRs went nowhere. Which direction do you actually want? I had #13197 merged yesterday, which scoped connection ownership per device in DeviceService, so the multi device side is the part I am closest to. Happy to build it once one of you picks.

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

    Paid Bounty 💰capturemaintainerp2

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions