Skip to content

Commit 3ac0ba9

Browse files
committed
fix(whisper): surface transcription errors instead of stuck spinner
Show error state with retry/close options when stop_and_transcribe fails, instead of leaving the UI stuck on "transcribing" forever.
1 parent c9f9c6b commit 3ac0ba9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/tauri/src/WhisperApp.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ function WhisperContent() {
7777
try {
7878
await invoke("stop_and_transcribe");
7979
} catch (e) {
80-
console.error("stop_and_transcribe failed:", e);
80+
setErrorMsg(
81+
String(e).length > 50 ? String(e).substring(0, 50) + "\u2026" : String(e)
82+
);
83+
setViewState("error");
8184
}
8285
}, []);
8386

0 commit comments

Comments
 (0)