Repository navigation
Description
Summary
An in-progress voice recording is silently discarded when its composer unmounts. Several minutes of dictation are lost, with no recording kept for retry and no warning. Since #4330 an accepted recording survives navigation, but a recording that is still running when the composer leaves the screen does not.
Versions and environment
- bb 0.48.0 desktop app, macOS (Apple silicon)
- Voice service: Automatic (Codex)
What happened
I dictated for several minutes in a thread follow-up composer. The chat view changed while I was still recording (I did not press Stop or Cancel). The recording was gone: no transcript in the draft, no entry in failed recordings, no toast.
Root cause (from the shipped bundle)
useVoiceInput (app/dist/assets/ExecutionControls-*.js): the unmount cleanup does
if (recorder && recorder.state === "recording") { keep.current = false; recorder.stop(); }
// ...
recorder.onstop = () => { if (!keep.current) { chunks.current = []; setState("idle"); return; } ... }So unmount during recording drops every chunk. The chunks live only in a useRef of the composer component (MediaRecorder.start(250) pushes to it), and nothing is written to bb-voice-recordings until Stop. #4330 states this on purpose: "Recording cleanup still discards unaccepted audio".
The question form's free-text field (VoiceInputTextarea, recordingKey: null) is worse: even an accepted recording is cancelled when the question unmounts.
Expected
Leaving the composer must never lose what was said. Any of these would do, in order of preference:
- Keep recording across navigation. Lift the recorder out of the composer into an app-level owner (one active recording per window), keep a visible "recording for " pill, and deliver the transcript to the originating draft — the delivery path from Preserve accepted voice transcription across navigation #4330 already exists.
- Treat unmount as Stop, not Cancel. Accept the recording and transcribe it into the originating persisted draft (same path as Preserve accepted voice transcription across navigation #4330). Cancel stays explicit.
- At least persist chunks while recording (the
bb-voice-recordingsIndexedDB store already exists) and surface them in Failed recordings, so a crash, reload or unmount can be retried.
Related
- Voice transcription is lost when its composer unmounts #4236 / Preserve accepted voice transcription across navigation #4330 (accepted transcription across navigation), Preserve voice send after navigation #4780 (send after navigation), Keep failed voice recordings in the composer and retry with the original send choice #5590 (failed recordings kept in the composer)
- Hold-to-talk voice input with live interim text in the composer, and a plugin API to build it #5623 (live interim text while dictating): with streaming, the text already in the draft would survive any unmount.
Activity
bb-slop-cop commentedon Oct 30, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui.confirmed-repro.Keep a voice recording when its composer unmounts mid-recording (#6673)