Repository navigation
fix: release microphone when voice recorder setup fails - #1425
Open
MrPunyapal wants to merge 1 commit into
Open
MrPunyapal wants to merge 1 commit into
MrPunyapal wants to merge 1 commit into
Conversation
Contributor
MrPunyapal
force-pushed
the
fix/release-microphone-when-recorder-setup-fails
branch
from
November 3, 2026 05:55
3e5aba9 to
34d8c4e
Compare
MrPunyapal
marked this pull request as ready for review
November 3, 2026 06:02
Member
|
@CodeRabbit By the way, Code Rabbit, can you memorize that it's actually fine not to have doc strings that are really not super important right now? So it's fine to have them or not to have them |
Contributor
|
Tip For best results, initiate chat on the files or code changes. @nunomaduro Understood. Docstrings are optional when they add little value. Missing nonessential docstrings alone should not prompt a change request. The automated docstring coverage check is separate and needs a configuration change to stop its warnings. Learnings added
You are interacting with an AI system. |
MrPunyapal
force-pushed
the
fix/release-microphone-when-recorder-setup-fails
branch
2 times, most recently
from
November 4, 2026 11:04
b9ea03b to
d5af71f
Compare
MrPunyapal
force-pushed
the
fix/release-microphone-when-recorder-setup-fails
branch
from
November 4, 2026 20:27
d5af71f to
da7fdf7
Compare
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.
Problem
If voice recorder setup fails after acquiring a microphone stream, one or more audio resources can remain active.
Change
Cleans up the recorder, microphone tracks, and audio context across synchronous and asynchronous setup failures. Cleanup attempts each resource even if another resource throws while stopping.
Tests
The full JavaScript unit suite passed (228 tests). Focused failure-path tests cover recorder, track, and audio-context cleanup. Type checks and lint passed.
Summary by CodeRabbit