[Bug] Cannot paste file paths ending with .jpg/.png - auto-converted to image

Resolved 💬 3 comments Opened Jan 6, 2026 by yamatovision Closed Jan 9, 2026

Description

When I try to paste a file path like:
"/Users/xxx/Downloads/image.jpg"

The CLI automatically interprets this as an image and tries to display it, instead of treating it as a plain text path.

This makes it impossible to share file paths for images with Claude Code.

Workaround (very frustrating)

Users have to add random characters after the extension:

  • image.jpgXXX
  • image.jpgda
  • image.jpgkp

This is extremely inconvenient and breaks workflow significantly.

Expected Behavior

  • Option to paste paths as plain text
  • Or a way to escape the auto-image-detection behavior
  • Or only trigger image detection when the file actually exists and user confirms

Environment

  • macOS
  • Claude Code CLI

Impact

This is a major usability issue that forces users to constantly work around a basic feature. Please prioritize this fix.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗