Copying text from the Claude Code terminal UI doesn't reach the system clipboard (Windows 10)
Summary
Selecting and copying text (cut & paste) from the Claude Code terminal/shell UI does not place the text on the Windows system clipboard. Pasting afterward yields nothing / stale content, so command snippets shown in Claude Code can't be copied out the normal way.
Environment
- OS: Windows 10 Pro (10.0.19045)
- Claude Code (CLI), recent build
- Tried from the standard Windows terminal
Steps to reproduce
- In a Claude Code session on Windows, have Claude output a command (e.g. a long
ssh -i "<path>" user@hostline). - Select that text in the Claude Code shell and copy it (mouse select / Ctrl+C).
- Paste into another terminal or editor.
Expected
The selected text is on the system clipboard and pastes correctly.
Actual
Nothing usable is copied — the paste does not contain the selected command. The only reliable workaround was to have the assistant write the text to the Windows clipboard out-of-band (Git Bash > /dev/clipboard), then paste.
Impact
Blocks the common workflow of copying a generated command out of Claude Code to run elsewhere. Especially painful under time pressure.
Workaround
Write the string to the clipboard via Git Bash (printf '%s' '<text>' > /dev/clipboard) instead of selecting in the UI.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗