You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(paste): use Shift+Insert in editors/terminals (Wispr Flow approach)
Researched how Wispr Flow handles this: on Windows they use Shift+Insert
instead of Ctrl+V for the Cursor / VS Code / Windsurf integrated
terminals because those IDEs bind Ctrl+V at the app level and don't
forward it to the terminal pane reliably — Claude Code's "No image
found in clipboard" message was the same root cause (its Ctrl+V
handler ran before any paste could happen).
PS helper now picks the shortcut from the focused app:
- IsCodeEditor(process) → Shift+Insert
Process detection via GetWindowThreadProcessId + OpenProcess +
GetModuleBaseName. Matches Code.exe / Cursor.exe / Windsurf.exe /
Trae.exe / code-* (VS Code Insiders).
- IsTerminal(window class) → Shift+Insert
Same shortcut covers Windows Terminal, conhost, mintty so TUIs
(Claude Code, vim, tmux) get text via bracketed paste mode.
- Everything else → Ctrl+V (instant, unchanged).
Other bits:
- Type() rewritten as batched SendInput (50-event chunks) so the
explicit char-typing fallback is ~10× faster (100 chars ≈ 30ms).
KEY_DELAY_MS Sleep replaced by CHUNK_SIZE batching.
- SMART command kept as legacy alias; just calls Paste() now.
- Node side sends 'PASTE\n' (no base64 payload needed anymore).
Refs:
https://docs.wisprflow.ai/articles/6434410694-use-flow-with-cursor-vs-code-and-other-ides
https://github.com/anthropics/claude-code/issues/38620
Bump 0.1.21 → 0.1.22.