claude-code - 💡(How to fix) Fix Clipboard-pasted screenshots are treated as duplicates in VS Code extension [2 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#58776Fetched 2026-05-14 03:39:45
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2

Error Message

Error Messages/Logs

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?

When pasting a screenshot directly from the clipboard into the Claude Code VS Code extension chat, subsequent pastes in the same conversation are treated as the same image as the first paste. Claude responds as if I re-shared the original screenshot instead of seeing the new one.

This is specific to the VS Code extension chat panel (not the integrated terminal / CLI) and specific to clipboard paste (saving the screenshot to disk and dragging it in works correctly).

What Should Happen?

Each pasted image should be treated as a distinct attachment, and Claude should see the new content on every paste.

Error Messages/Logs

Steps to Reproduce

  1. Open a Claude Code chat in the VS Code extension (chat panel, not terminal).
  2. Take a screenshot to the clipboard (macOS: Cmd+Ctrl+Shift+4, or Cmd+Shift+5 "Copy to Clipboard").
  3. Paste into the chat with Cmd+V. Send a message referencing the screenshot.
  4. Take a clearly different screenshot (different window, different content) to the clipboard.
  5. Paste into the same chat with Cmd+V. Send another message.
  6. Observe: Claude's response describes the first screenshot, not the second.

Theory: clipboard images have no real filename, so the extension likely assigns a generic name (e.g. image.png). If something downstream keys on filename rather than content hash, the second paste collides with the first and gets deduped.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.140 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

Note on Terminal/Shell field: this bug is in the Claude Code VS Code extension chat panel, not the integrated terminal. The dropdown doesn't have a separate option for the extension, so I picked the closest match. Please route to platform:vscode / area:ide.

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 Clipboard-pasted screenshots are treated as duplicates in VS Code extension [2 comments, 2 participants]