You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous implementation assumed space was held when the recording
effect ran, but React effects are async. If the user released space
during microphone permission request or other delays, spaceHeldRef
would incorrectly be true, blocking the subsequent space press from
sending the transcription.
Fix: Track global key state at module level (outside React lifecycle)
and check actual state when effect runs. Also handles window blur to
reset state when user switches away.
0 commit comments