Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(sync): guard undefined params in message insert during conversation pull
Gabriel Steindabdf3a58e46
diff --git a/src/helpers/database.js b/src/helpers/database.jsindex ffb4f0344..f2098838c 100644--- a/src/helpers/database.js+++ b/src/helpers/database.js@@ -2166,7 +2166,13 @@ class DatabaseManager {"INSERT INTO agent_messages (conversation_id, role, content, metadata, created_at) VALUES (?, ?, ?, ?, ?)");for (const msg of messages) {- msgStmt.run(conv.id, msg.role, msg.content, msg.metadata || null, msg.created_at);+ msgStmt.run(+ conv.id,+ msg.role ?? "user",+ msg.content ?? "",+ msg.metadata ? JSON.stringify(msg.metadata) : null,+ msg.created_at ?? new Date().toISOString()+ );}}return conv;