Option to disable interpreting image paths in pasted text as image content

Open 💬 0 comments Opened Jul 3, 2026 by fedemengo

Summary

When pasting text that contains image file paths (e.g. /some/path/image.png) into Claude Code, the path gets interpreted as image content to be pasted — not as plain text. This happens when a display is available (local desktop session or X11 forwarding over SSH).

For a CLI tool, this behavior is unexpected and disruptive. There is currently no way to opt out of it.

Proposed fix

Add a configuration option to disable automatic interpretation of image paths in pasted text, e.g.:

  • A --no-images CLI flag
  • A settings.json key such as "pasteImages": false

View original on GitHub ↗