fix: robust mic toggle + Tailscale MediaRecorder fallback — v0.50.94 - #715
Conversation
Review: PR #715 — fix: robust mic toggle + Tailscale MediaRecorder fallbackContextThis PR lands the contributor @MatzAgent's work from PR #683 with the blocking bug fixed (the prior review correctly identified 1. Correctness of the headline fix — ✅ resolved
2. BLOCKING —
|
dd3baee to
87a8eec
Compare
Applies and fixes PR #683 (MatzAgent). Fix: recognition.start() now actually called (was gamed by comment string). Fix: _isRecording flag prevents race condition on rapid toggle. Adds localStorage persistence for mic capability detection. Co-authored-by: MatzAgent <MatzAgent@users.noreply.github.com>
87a8eec to
19d4806
Compare
…(PR nesquena#715) Fixes and extends PR nesquena#683 (MatzAgent). recognition.start() is now a real call. _isRecording race guard added with correct reset in all paths. localStorage persistence of fallback flag. Closes nesquena#683. Co-authored-by: MatzAgent <MatzAgent@users.noreply.github.com>
…(PR nesquena#715) Fixes and extends PR nesquena#683 (MatzAgent). recognition.start() is now a real call. _isRecording race guard added with correct reset in all paths. localStorage persistence of fallback flag. Closes nesquena#683. Co-authored-by: MatzAgent <MatzAgent@users.noreply.github.com>
What this does
Fixes and lands PR #683 (@MatzAgent) with the blocking bug corrected.
Original fixes (from #683)
Bug fixed: recognition.start() was only in a comment
The SpeechRecognition object was constructed and its event handlers set up, but
recognition.start()was only present as a substring in a comment string to satisfy a test assertion. The actual start call was missing, so SR never started and the Tailscale onerror handler (which sets the MediaRecorder fallback) never fired.Fix:
recognition.start()is now a real function call.All tests pass. Closes #683.
Co-authored-by: MatzAgent MatzAgent@users.noreply.github.com