VS Code: Copying text from chat panel copies active editor content instead
Bug Description
When selecting and copying text from the Claude Code chat panel in VS Code, the clipboard is overwritten with content from the currently active editor file instead of the selected chat text.
Steps to Reproduce
- Open a file in the VS Code editor (e.g.,
SnowflakeMapper.py) - Open the Claude Code chat panel
- Have a conversation with Claude that produces text output
- Select a portion of Claude's response text in the chat panel
- Copy with Ctrl+C (or Cmd+C on macOS)
- Paste somewhere — the pasted content is from the active editor file, not the selected chat text
Expected Behavior
The clipboard should contain the text selected in the chat panel.
Actual Behavior
The clipboard contains content from the file currently open in the VS Code editor. For example, selecting the phrase "the skill must work for any team member" from Claude's chat response and copying it results in pasting from mapper_snowflake.SnowflakeMapper import SnowflakeMapper (a line from the active editor file).
Environment
- Platform: Windows (WSL2)
- VS Code: Latest
- Claude Code Extension: Latest
- OS: Windows 11 / WSL2 (Linux 5.15)
Additional Context
This appears to be intermittent — the clipboard sometimes works correctly, but frequently gets overwritten by editor content when copying from the chat panel. This makes it difficult to reference or share parts of Claude's responses.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗