[BUG] [Linux] "No image found" error should indicate when xclip is not installed
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?
When pasting an image with Ctrl+V on Linux without xclip installed, the error message is simply "No image found" (or similar). This is misleading - there IS an image in the clipboard, but Claude Code can't access it because the required tool is missing.
What Should Happen?
When xclip is not installed, show a helpful message like:
Cannot read clipboard: xclip not found.
Install it with: sudo apt install xclip
Error Messages/Logs
Steps to Reproduce
- Use Linux (X11) without xclip installed
- Copy an image to clipboard (e.g., screenshot)
- Open Claude Code CLI
- Press Ctrl+V to paste
- See unhelpful "No image found" error
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.73
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
Linux Mint (X11)
Note: Issue #3186 was closed but only fixed /export command. Ctrl+V paste error is still unhelpful.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗