[BUG] Cannot copy screenshots to Claude Code chat when running from WSL terminal in Windows
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: v1.0.43
- Operating System: Windows with WSL Ubuntu 22.04
- Terminal: WSL bash terminal (accessed through Visual Studio Code)
Bug Description
When Claude Code is installed and running through WSL (Windows Subsystem for Linux) and accessed via Visual Studio Code's integrated terminal, it's not possible to copy/paste screenshots into the Claude Code chat. The image copying functionality that works in native environments fails in this WSL setup.
Steps to Reproduce
- Install Claude Code in WSL Ubuntu 22.04 environment on Windows
- Open Visual Studio Code and connect to WSL
- Launch Claude Code from the VSCode integrated terminal (bash)
- Attempt to copy an screenshot to the Claude Code chat
- The image paste operation fails (it doesnt do anything)
Expected Behavior
Screenshots should be pasteable into the Claude Code chat interface, similar to how it works in native Linux or macOS environments.
Actual Behavior
Screenshot pasting functionality does not work when Claude Code is running from a WSL terminal accessed through Visual Studio Code.
Additional Context
This appears to be related to clipboard handling differences between Windows and WSL environments. The issue specifically occurs when:
- Working directory is on Windows filesystem mounted in WSL (
/mnt/c/Users/...) - VS Code is connected to WSL
- Claude Code session shows config mismatch warning: "Config mismatch: running npm-global but config says unknown"
Current status output shows the tool is otherwise functioning correctly with proper VS Code integration and authentication.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗