Skip to content

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

Merge branch 'main' into claude/review-pr-58-1GTg0

Gabriel Steinec3f12cb7071
diff --cc src/helpers/modelManagerBridge.js
index 1564df20f,7bf6d473e..8bba41e14
--- a/src/helpers/modelManagerBridge.js
+++ b/src/helpers/modelManagerBridge.js
@@@ -146,7 -154,16 +154,16 @@@ class ModelManager
}
});
+ const stats = await fsPromises.stat(tempPath);
+ if (stats.size < MIN_FILE_SIZE) {
+ throw new ModelError(
+ "Downloaded file appears to be corrupted or incomplete",
+ "DOWNLOAD_CORRUPTED",
+ { size: stats.size, minSize: MIN_FILE_SIZE }
+ );
+ }
+
- // Rename to final path (copy + delete on Windows if cross-device)
+ // Atomic rename to final path (handles cross-device moves on Windows)
try {
await fsPromises.rename(tempPath, modelPath);
} catch (renameError) {