[BUG] Copy/Paste not working in Claude Code inside VS Code Dev Container since v2.1.82
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?
Description
Copy and paste has stopped working in Claude Code when running inside a VS Code Dev Container (Docker) since version 2.1.82. It was working fine in previous versions.
Environment
- Host OS: macOS
- VS Code: Dev Container (Docker)
- Claude Code: VS Code Extension, v2.1.82+
Reproduction
- Open VS Code with a Dev Container (Docker)
- Open Claude Code within VS Code
- Try to paste text using Cmd+V or Ctrl+V → does not work
What works
- Copy/paste in the VS Code integrated terminal (same Docker container) → works fine
- Copy/paste in Claude Code running in the macOS terminal (outside Docker) → works fine
- Copy/paste in Claude Code versions prior to 2.1.82 (same Dev Container setup) → worked fine
Expected behavior
Copy/paste should work in Claude Code inside VS Code Dev Containers, as it did before v2.1.82.
Notes
This is a regression introduced in v2.1.82. The VS Code terminal likely proxies clipboard operations through the VS Code API, while Claude Code may have changed its clipboard mechanism in this version, breaking access to the host clipboard from within the container.
What Should Happen?
Copy and Paste should work
Error Messages/Logs
Steps to Reproduce
Reproduction
- Open VS Code with a Dev Container (Docker)
- Open Claude Code within VS Code
- Try to paste text using Cmd+V or Ctrl+V → does not work
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
1.2.80
Claude Code Version
1.2.83
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗