Ctrl+V image paste always fails on macOS (execFile missing encoding:"buffer")

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

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

  1. Cmd+Ctrl+Shift+4 to copy a screenshot to the clipboard
  2. In agent, press Ctrl+V
  3. Nothing is inserted (no [Image #1]); the log shows the errors above

Operating System

MacOS

Version Information

Cursor CLI 2026.10.22-27dcf5f, macOS (darwin arm64), Warp, zsh

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi @Manuel_Avalos_Cruz,

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:

  1. Take the screenshot with Cmd+Shift+4 (without Ctrl) so macOS saves it to a file.
  2. 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!

Hi @Manuel_Avalos_Cruz I had the same issue and resolved it by downgrading to version 2026.10.16-e3cb207 for the time being

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.

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Unable to attach/copy-paste image into Cursor CLI.

Steps to Reproduce

  1. Copy an image.
  2. Ctrl + V into the Cursor CLI input box.

Expected Behavior

I expect an [Image #1] in the input box.

Operating System

MacOS

Version Information

2026.10.22-27dcf5f

Does this stop you from using Cursor

No - Cursor works, but with this issue

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

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:

  1. Copy a screenshot to the clipboard (Cmd+Ctrl+Shift+4).
  2. Focus the agent prompt.
  3. 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

For AI issues: which model did you use?

Grok 4.7 256K High Fast

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

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

  1. Copy a screenshot to the clipboard (Cmd+Ctrl+Shift+4).
  2. Start an interactive cursor-agent session.
  3. Press Ctrl+V.
    Reproduces in Ghostty, Terminal.app and herdr.

Expected Behavior

The screenshot is attached to the prompt.

Operating System

MacOS

Version Information

cursor-agent 2026.11.05-86047df

Does this stop you from using Cursor

No - Cursor works, but with this issue