Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mobile): keep voice recording active across apps and threads #10140

Closedbentsignal(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/10140/headopened View on GitHub

Switching threads mid-recording currently stops voice input and can leave it stuck saying another recording is active. You have to fully close and reopen the app to record again.

With this change, you can keep talking while you check another thread or switch to another app. When you return, the original recording is still going, and finishing it adds the transcript to that draft. Starting a second recording is blocked while the first is active.

I realize keeping recordings going when switching apps is a broader change. I'm happy to split out a smaller PR that just fixes voice input getting stuck after switching threads and requiring an app restart. I expanded it because I often start dictating, then check another app or thread and keep talking as I review things. Being able to come back and finish the same recording is useful for that.

Before

https://github.com/user-attachments/assets/9bd48dab-03dd-4cc0-84b2-1bc588592b9f

After

https://github.com/user-attachments/assets/b187bba9-bddd-41d1-9fad-f0c40a40169d

Implemented with GPT-6 in the Codex harness.

Note

Keep voice recording active across threads and app switching via app-scoped VoiceInputProvider

  • Introduces VoiceInputSession, an app-scoped recording owner that retains the originating draft key, text, and selection independently of whether the composer is mounted. A single recording runs at a time; other drafts cannot start, stop, or cancel it.
  • Wraps the navigation tree in VoiceInputProvider so the recorder and session survive route changes. useVoiceInputController now observes the shared session via useSyncExternalStore instead of creating per-composer recorders.
  • Adds the iOS audio background mode in app.config.ts and configures non-mixing interruption behavior so recording continues on iOS backgrounding. Android backgrounding interrupts active recording.
  • Completed transcripts commit through the shared composer draft store; the cursor is delivered once to the original owner. Edits to the captured draft invalidate a pending cursor, including edits that restore the original text.
  • Fixes VoiceInputController cleanup to tolerate an already-destroyed native recorder and explicitly deactivate the audio session even when mode cleanup throws.
  • Risk: VoiceInputController.appMovedToBackground no longer interrupts an active recording; preparation is still cancelled. iOS builds now declare the audio background capability, which may require App Store review attention.
Macroscope summarized d1a6712.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR adds app-scoped voice recording across threads and backgrounded apps, changing default recording lifecycle, draft mutation, and native audio entitlements. The cross-cutting platform behavior and unresolved lifecycle/configuration findings warrant human validation.

      Not approved because:

      • 2 blocking correctness issues found at or above your repo's Minimum Blocking Severity
      Adjust the Minimum Blocking Severity for this repo — including turning it Off — in [Settings](https://app.macroscope.com/pingdotgg/settings#Repos). You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

    4. Note

      This comment is posted by Julius' dot

      The stuck-recording bug is demonstrated, but this PR changes the default iOS recording lifecycle to keep the microphone active after leaving the app or draft. The description acknowledges that broader workflow, and no maintainer approval is linked in the PR or discussion, so it does not meet prior approval. Please split out the focused stuck-session fix, or obtain approval for the background-recording direction and scope, then request reconsideration.

    5. juliusmarminge closed this

Sign in to join this conversation.