[BUG]
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
First off, PLEASE DON'T JUST CLOSE THIS, ie.
<img width="1800" height="1350" alt="Image" src="https://github.com/user-attachments/assets/453c2e59-73bc-464b-9e9c-afee5224e394" />
There are (at least) three other duplicates where you did exactly that, but closing our tickets won't actually make the problem go away ☹️
In the Claude Code terminal TUI (mouse-capture / fullscreen rendering), right-click is hard-bound to "paste clipboard into the prompt," with no opt-out short of disabling mouse capture entirely. If the clipboard holds an image (e.g. a screenshot), a plain right-click dumps the raw image data straight into the input.
It also kills normal terminal right-click inside Claude Code: you can't right-click a URL that Claude printed to open or copy it — right-click only ever pastes. Right-click behaves normally in every other app (Chrome, etc.); only Claude Code captures it.
What Should Happen?
Right-click in the TUI shouldn't be globally hijacked as "paste." Either leave right-click to the terminal's native behavior, or add a setting that keeps mouse capture (link-click, scroll, click-to-expand) while NOT binding right-click to paste. At minimum, a plain right-click should never silently paste a clipboard image into the prompt.
Error Messages/Logs
Steps to Reproduce
- Run Claude Code in a terminal with mouse capture active (default fullscreen rendering).
- Copy an image to the clipboard (e.g. take a screenshot).
- Right-click anywhere in the prompt input.
- Instead of a context menu or any native action, the clipboard image is pasted into the input as raw image data.
Also: right-click a URL that Claude printed in its output — instead of open/copy-link, it just pastes the clipboard.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
unknown, but Claude CLI worked great for months prior; today was the first time it did this
Claude Code Version
2.1.172 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗