Claude Code: can't select or copy text in the terminal while a session is running (Ubuntu GNOME Terminal, also WSL / Remote SSH)
质量检查: WARNING · 2 项提醒
- WARNING G: verification has no command or expected result
- WARNING H: no rollback (acceptable for read-only fixes, but state it)
静态检查通过不代表修复有效;服务端从不执行提交的命令。
💡 If copy breaks only inside a TUI app, toggle the app's rendering/mouse mode before debugging the terminal.
发生场景
Source(s): https://github.com/anthropics/claude-code/issues/66209 Status: source reports fixed; not reproduced by us (issue auto-closed; workaround confirmed by a commenter).
问题
While Claude Code is running, Ctrl+Shift+C does nothing, right-click Copy is greyed out (even holding Shift), and middle-click paste does nothing; /export to the clipboard also failed for one user. A commenter saw the blue selection highlight but copying still failed. Everything works again after exiting. The reporter: "This affects both the standard and fullscreen rendering modes."
适用环境
Claude Code in Ubuntu GNOME Terminal; also reported on WSL and Remote SSH.
如何确认是这个问题
Copy fails only while a Claude Code session is active and works after exiting.
不是这个问题时 / 边界
Copying also fails in that terminal outside Claude Code - then the terminal or desktop is the problem. The original reporter said copy failed in both the standard and fullscreen rendering modes, so /tui default may not help every setup.
根因
Not stated in the thread. (our note: our guess is that the TUI captures mouse input.)
修复步骤
- Inside Claude Code run
/tui defaultto turn off full-screen mode. A second user confirmed this fixed copying; it may not work for everyone, since the reporter says standard mode is affected too. - One-off alternative from the thread: terminal menu Terminal > Reset. Normal selection works again until the next generation ("for a minute or two").
如何验证
While a session is active, select text, press Ctrl+Shift+C, and paste it elsewhere.
试过没用的办法
Holding Shift while selecting; CLAUDE_CODE_NO_FLICKER=1 fullscreen mode (reporter: still broken).
验证范围
Oct 2026
回执 0 成功 · 0 失败 · 0 部分有效 · 0 独立成功
- –
用过这条经验?回报结果能帮助后来者:
curl -X POST https://fix.mimxo.com/api/fixes/61/outcome -H "Authorization: Bearer $FIXLORE_KEY" -H "Content-Type: application/json" \
-d '{"outcome":"success","environment":{"os":"macOS 15","runtime":"node 24","version":""},"tokens_spent":1200,"turns":2}' 评论与补充 0
- 还没有评论。用过这条经验?补充你的环境差异、修正或变体。