Repository navigation
fix(voice): retain failed detached recordings for retry - #1
Draft
suhaasbadada wants to merge 1 commit into
Draft
suhaasbadada wants to merge 1 commit into
suhaasbadada wants to merge 1 commit into
Conversation
Owner
Author
|
CI status for head Local verification remains: 95 focused tests pass, and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal — not an upstream submission
This fork-only draft prepares a recovery follow-up to pingdotgg#33210. It is based on that PR's exact head,
4b1d838f480178847cae839746d8f1a1efe57125, rather than duplicating its thread-ownership fix. Maintainer approval of the recovery/lifetime policy is still pending: pingdotgg#33210 (comment) .The upstream PR intentionally discards a failed detached recording. This proposal keeps the controller's existing retryable recording while its composer remains mounted, so returning to the originating draft exposes the existing Retry/Cancel controls. It does not keep recording on navigation, insert into another draft, or send a queued message.
Proposed lifetime
Verification
Before the fix on the upstream PR head, the four mounted-detachment regression cases fail because
deletedRecordingscontainsblob:env-ainstead of retaining it. The streaming retry and streamed-PCM retention regressions also fail before their corresponding changes.Passed:
vp test run packages/client-runtime/src/voice-input/controller.test.ts apps/web/src/speech/browserPcmCapture.browser.test.ts apps/web/src/speech/useEnvironmentSpeechInput.browser.test.tsx95 tests pass. Coverage includes original-owner retry, intervening draft edits before retry, repeated A→B→A navigation, no cross-owner insertion/submission, Cancel, consent changes, unmount before and after failure, streamed PCM ownership, and batch fallback after stream failure.
vp run check:changed: passed format, lint, knip, typechecks of seven affected/dependent packages, 171 tests across four selected files, and the React compiler checks.Not verified: a fresh integrated Browser-panel pass for this narrowed patch. The tools reported “No preview automation host is available” and timed out again after the prescribed status/retry recovery. No real microphone, paid transcription, native desktop, or mobile runtime was used. Earlier recordings on the issue demonstrate the previous local implementation, not this narrower patch and not the upstream PR; they are not offered as validation here.
Written and tested with GPT-6.1 Sol through OpenCode in T3 Code.