From 7bbeda0af6fb6605ee2a30adca8b728b8679f47c Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 2 Jun 2026 18:06:52 +0300 Subject: [PATCH] Auto-deploy: 2026-06-02 18:06:52 --- claude-arabic-voice/offscreen.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/claude-arabic-voice/offscreen.js b/claude-arabic-voice/offscreen.js index 6cf256a..8495179 100644 --- a/claude-arabic-voice/offscreen.js +++ b/claude-arabic-voice/offscreen.js @@ -40,6 +40,12 @@ function initRecognition(language) { recognition.onerror = (event) => { console.error('[Offscreen] Recognition error:', event.error); + + // Prevent infinite restart loop on fatal errors + if (event.error !== 'no-speech') { + isRecording = false; + } + chrome.runtime.sendMessage({ type: 'OFFSCREEN_RECORDING_ERROR', payload: { error: event.error }