Skip to content

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

perf: optimize Windows PowerShell paste startup time

Claude56486f7dc62d
diff --git a/src/helpers/clipboard.js b/src/helpers/clipboard.js
index 5661e6529..1538fc360 100644
--- a/src/helpers/clipboard.js
+++ b/src/helpers/clipboard.js
@@ -125,7 +125,11 @@ class ClipboardManager {
return new Promise((resolve, reject) => {
let hasTimedOut = false;
+ // -NoProfile: Skip loading user profile scripts (significant startup time savings)
+ // -NonInteractive: Prevent prompts that could hang execution
const pasteProcess = spawn("powershell", [
+ "-NoProfile",
+ "-NonInteractive",
"-Command",
'Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait("^v")',
]);
@@ -138,7 +142,7 @@ class ClipboardManager {
// Text pasted successfully
setTimeout(() => {
clipboard.writeText(originalClipboard);
- }, 100);
+ }, PASTE_DELAY_MS);
resolve();
} else {
reject(