claude-code - 💡(How to fix) Fix [BUG] Drag-and-drop image file pastes path instead of attaching as [Image] (Warp Terminal, macOS) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48153Fetched 2026-04-15 06:31:41
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Dragging and dropping an image file (e.g., a screenshot from Cmd+Shift+4) into the Claude Code CLI input pastes the raw file path as text instead of attaching the image inline as [Image #N].

This previously worked on a different machine (same terminal — Warp, same OS — macOS, likely older Claude Code version). Clipboard paste via Ctrl+V still works correctly.

Root Cause

Dragging and dropping an image file (e.g., a screenshot from Cmd+Shift+4) into the Claude Code CLI input pastes the raw file path as text instead of attaching the image inline as [Image #N].

This previously worked on a different machine (same terminal — Warp, same OS — macOS, likely older Claude Code version). Clipboard paste via Ctrl+V still works correctly.

Code Example

/var/folders/.../Screenshot\ 2026-04-14\ at\ 4.35.10\ PM.png
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Summary

Dragging and dropping an image file (e.g., a screenshot from Cmd+Shift+4) into the Claude Code CLI input pastes the raw file path as text instead of attaching the image inline as [Image #N].

This previously worked on a different machine (same terminal — Warp, same OS — macOS, likely older Claude Code version). Clipboard paste via Ctrl+V still works correctly.

Steps to Reproduce

  1. Take a screenshot with Cmd+Shift+4 (saves file to desktop/temp)
  2. Open Claude Code CLI in Warp Terminal
  3. Drag and drop the screenshot file into the Claude Code input

Expected: Image is attached inline, displayed as [Image #1] chip.

Actual: The escaped file path is pasted as plain text:

/var/folders/.../Screenshot\ 2026-04-14\ at\ 4.35.10\ PM.png

Claude Code does not recognize it as an image.

Additional Testing

  • Clipboard paste works: Cmd+Ctrl+Shift+4 (screenshot to clipboard) → Ctrl+V in Claude Code → correctly shows [Image #1]. So the sharp image processing pipeline is fine.
  • Manually typing the image file path in the input also does not trigger [Image] detection — same behavior as drag-and-drop.
  • Both drag-and-drop and manual path entry worked on a previous machine (same Warp Terminal, macOS, likely older Claude Code version).

Environment

  • Claude Code: 2.1.108
  • macOS: 26.4 (Build 25E246)
  • Architecture: arm64 (Apple Silicon)
  • Terminal: Warp Terminal
  • Shell: zsh
  • Node.js: managed via mise

Possibly Related Issues

  • #39416 — Multi-image drag-and-drop regression since v2.1.83 (only first image attached)
  • #32950 — Drag-and-drop stopped working on Windows 11

🤖 Generated with Claude Code

extent analysis

TL;DR

The issue can likely be resolved by investigating the difference in behavior between the current and previous Claude Code versions, specifically regarding drag-and-drop functionality.

Guidance

  • Verify that the issue is indeed related to the version change by checking the release notes of Claude Code version 2.1.108 and comparing it with the previous version used on the other machine.
  • Investigate the sharp image processing pipeline to ensure it's correctly configured and functioning as expected, given that clipboard paste works correctly.
  • Test the drag-and-drop functionality with different file types and sizes to see if the issue is specific to certain types or sizes of images.
  • Check the Warp Terminal and macOS settings to ensure that there are no configuration changes that could be affecting the drag-and-drop behavior.

Example

No code snippet is provided as the issue seems to be related to the configuration and versioning of Claude Code rather than a specific code implementation.

Notes

The issue might be related to a regression introduced in version 2.1.83, as mentioned in #39416, which could be worth investigating further.

Recommendation

Apply workaround: Given the information provided, it might be beneficial to try downgrading Claude Code to a version prior to 2.1.83 to see if the drag-and-drop functionality works as expected, until a fix for the current version is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Drag-and-drop image file pastes path instead of attaching as [Image] (Warp Terminal, macOS) [1 comments, 2 participants]