Files
links/static
junvandCopilot 21fd058d46 jbot: fix voice button stuck state + add global fallback handlers
Fixes:
1. Race condition: after await startRec(), check isSpaceDownRef again —
   fast-tap released before mic ready was leaving phase stuck at 'listening'
2. Global window mouseup/touchend/touchcancel listeners as fallback so
   releasing outside the button boundary always triggers handleSpaceUp
3. Show ✕ cancel button during ALL non-idle phases (was only thinking/speaking)
4. handleCancel now stops the recorder if called during listening/acquiring
5. Safety auto-cancel timeout: if stuck in 'listening' > 60s, auto-stop
6. Add stopRec to handleSpaceDown dep array

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-17 14:13:38 +10:00
..
2026-03-22 15:23:51 +11:00
2024-11-05 22:45:33 +11:00
2024-11-04 20:43:57 +11:00
2025-06-30 21:39:44 +10:00
2024-11-18 13:09:09 +11:00
2026-03-29 11:10:37 +11:00
2024-11-09 08:48:36 +11:00
2024-11-09 08:48:36 +11:00
2024-11-09 08:48:36 +11:00
2024-11-09 08:48:36 +11:00
2024-11-09 08:48:36 +11:00
2024-11-09 08:48:36 +11:00
2026-03-22 16:15:53 +11:00
2026-03-22 16:15:53 +11:00