Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: display readable error message instead of [object Object]

Gabriel Stein88410d96003f
diff --git a/src/components/AgentOverlay.tsx b/src/components/AgentOverlay.tsx
index 1aa3852fa..3f87ea4da 100644
--- a/src/components/AgentOverlay.tsx
+++ b/src/components/AgentOverlay.tsx
@@ -131,7 +131,8 @@ export default function AgentOverlay() {
else if (isProcessing) setAgentState("transcribing");
},
onError: (error: { message?: string }) => {
- addSystemMessage(`Error: ${error.message || String(error)}`);
+ const msg = error?.message || (typeof error === "string" ? error : "Transcription failed");
+ addSystemMessage(`Error: ${msg}`);
setAgentState("idle");
},
onTranscriptionComplete: (result: { text: string }) => {