Ctrl+V pastes an image into Claude Code
Explore this workspace.
Technical background
A terminal can only paste text, so Claude Code pastes an image by reading the clipboard itself when it sees Ctrl+V. With Ctrl+V bound to paste, one keystroke sent two things, an empty paste and a raw Ctrl+V, and Claude Code's two clipboard reads raced each other for the Windows clipboard. Paste with an image and no text now sends one Ctrl+V and nothing else, and text paste is unchanged. It can be switched off. The double delivery behind it was general to every hotkey and is fixed for all of them; see the next entry.
The problem
Claude Code reads an image from the clipboard on Ctrl+V, while a terminal paste binding can also deliver an empty text paste. The two clipboard reads could race.
How it works
When the clipboard has an image but no text, Torbie sends one Ctrl+V to the terminal instead of an empty paste followed by Ctrl+V. Text paste keeps its existing behavior.
What this does not claim
- The recorded clipboard race was on Windows. The behavior can be switched off.