Ctrl+V with an image in the clipboard does nothing. The session log shows
“ctrl-v-clipboard-image-miss” preceded by uncaught exceptions:
TypeError [ERR_INVALID_ARG_TYPE]: The “list[1]” argument must be an instance of
Buffer or Uint8Array. Received type string (‘OK\n’)
at Buffer.concat … at Socket. (5622.index.js)
Steps to Reproduce
Steps to reproduce
Cmd+Ctrl+Shift+4 to copy a screenshot to the clipboard
In agent, press Ctrl+V
Nothing is inserted (no [Image #1]); the log shows the errors above
This is a regression in recent CLI builds: Ctrl+V doesn’t attach images from the clipboard right now, even though the screenshot is on the clipboard. It’s a known issue the team is aware of, and I’ve added your report to it.
Until a fixed build ships, attaching the image as a file should still work:
Take the screenshot with Cmd+Shift+4 (without Ctrl) so macOS saves it to a file.
Drag that file from Finder into the agent prompt, or paste its full path. You should see [Image #1] appear.
Pasting a screenshot into the chat in the Cursor app also still works in the meantime!
Hello, thanks for the contribution. It worked correctly in the version you mentioned, but after updating to 2026.10.22-27dcf5f, the issue regressed. I applied a patch at the zsh level to make it work with the latest version; so far, it’s working well.
Pasting an image from the clipboard with Ctrl+V does nothing. No Image is attached.
This used to work on an earlier CLI build.
Steps to Reproduce
Steps:
Copy a screenshot to the clipboard (Cmd+Ctrl+Shift+4).
Focus the agent prompt.
Press Ctrl+V.
Expected Behavior
Should be able to paste images on Cursor CLI
Operating System
MacOS
Version Information
CLI Version 2026.11.05-86047df
Latest 2026.11.05-86047df (up to date)
Model Grok 4.7 256K High Fast
Subscription Tier Pro
OS darwin (arm64)
Terminal vscode
Shell zsh
In the Cursor CLI on macOS, pressing Ctrl+V with a screenshot in the clipboard never attaches the image. The session log (/logs) shows, on every attempt:
uncaughtException: The “list[1]” argument must be an instance of Buffer or Uint8Array. Received type string (‘OK\n’)
at Buffer.concat (node:buffer:697:15)
osascript-non-ok
ctrl-v-clipboard-image-miss
Root cause: the osascript clipboard helper calls execFile(cmd, args, {timeout, maxBuffer}) and then runs Buffer.concat on the stdout “data” chunks. Node’s execFile defaults to
encoding “utf8”, so the chunks are strings and Buffer.concat throws. The image is saved to $TMPDIR/cursor-agent-clipboard/clip-*.png successfully, but the “OK” result never arrives,
so the code falls through to JPG and TIFF and then reports a miss.
Suggested fix: pass encoding: “buffer” in the execFile options (or concatenate strings instead of Buffers). I verified this locally by patching the bundled file, and Ctrl+V then
pastes the image correctly.
Side note: every paste leaves PNG, JPG and TIFF copies in $TMPDIR/cursor-agent-clipboard/ with no cleanup.
Steps to Reproduce
Copy a screenshot to the clipboard (Cmd+Ctrl+Shift+4).
Start an interactive cursor-agent session.
Press Ctrl+V.
Reproduces in Ghostty, Terminal.app and herdr.