claude-code - 💡(How to fix) Fix Image paste requires two attempts on Windows -- first attempt always fails with not found

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…

Pasting an image (Ctrl+V) into Claude Code always fails on the first attempt, then succeeds on the second paste of the same image. This happens 100% of the time, consistently reproducible.

Root Cause

Pasting an image (Ctrl+V) into Claude Code always fails on the first attempt, then succeeds on the second paste of the same image. This happens 100% of the time, consistently reproducible.

RAW_BUFFERClick to expand / collapse

Description

Pasting an image (Ctrl+V) into Claude Code always fails on the first attempt, then succeeds on the second paste of the same image. This happens 100% of the time, consistently reproducible.

Steps to Reproduce

  1. Copy any image to clipboard (screenshot, file, etc.)
  2. Paste into Claude Code input with Ctrl+V
  3. First attempt fails (image not found / not available)
  4. Press Ctrl+V again with the same image still on clipboard
  5. Second attempt succeeds

Expected Behavior

First paste should work without requiring a retry.

Environment

  • Claude Code version: 2.1.150
  • OS: Windows 11 Pro 10.0.26200
  • Shell: PowerShell

Notes

Behavior appears to be a regression — started occurring recently. Likely a timing/race condition where Claude Code checks for the temp file before it has finished being written from the clipboard.

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