Right-click paste broken since ~2.1.167: mouse reporting captures right-click, requires Shift+right-click workaround
Status Open
Reported on v2.1.167
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 8 comments · opened Jun 7, 2026
Description
Right-click paste (terminal context menu) stopped working in the Claude Code input window around version 2.1.167/2.1.168. Previously worked without issue.
Claude Code appears to enable terminal mouse reporting mode, which intercepts right-click events and prevents the terminal emulator from showing its native context menu. The workaround is to hold Shift while right-clicking, which bypasses mouse capture and restores the context menu.
Steps to reproduce
- Copy any text to clipboard
- Open Claude Code (
claude) - Right-click in the input area
- Expected: terminal context menu appears with Paste option
- Actual: no context menu appears; mouse event is consumed by Claude Code
Workaround
Shift + right-click still produces the terminal context menu and paste works normally.
Environment
- Claude Code version: 2.1.168
- OS: Linux (Ubuntu/Debian)
- Terminal: VTE-based (VTE_VERSION=6800, e.g. GNOME Terminal / Tilix)
- TERM: xterm-256color
- COLORTERM: truecolor
Additional context
Ctrl+Shift+Valso works for text pasteCtrl+Vshows "no image found" (understood to be intentional per v2.1.162 changelog)- Changelogs for 2.1.167 and 2.1.168 both list only "Bug fixes and reliability improvements" with no detail, so the root cause is unclear
8 Comments
Confirming this regression on additional platforms not yet listed here — Claude Code v2.1.186.
So the Shift+right-click bypass is inconsistent: it works in some terminals but on macOS Terminal and Konsole over RDP there's no working right-click path at all, leaving no reliable copy/paste. The in-app scrolling is nice, but losing native copy/paste by default — with no opt-out — is a real, cross-platform regression.
Request: please add a persistable setting to disable mouse tracking, e.g. "enableMouseTracking": false (or "mouseReporting": false) in settings.json.
Breaking copy/paste (or Linux middle-click) is like breaking the
ENTERkey. It is such basic functionality that NO application, under ANY circumstances, should EVER break it.Move fast and break things, I get it ... but don't break the damn operating system!
This seems to be doubly broken when trying to yank with
yin tmux. This was a really important part of my workflow. Sonnet could not figure it out, but Opus did, at the cost of breaking the ability to scroll 🤦. I hope I don't have to start regularly burning my tokens fixing problems caused by speed-over-perfection:I'd say, just invert the logic: press shift for claude-only actions, per default terminal default behaviour.
Version: 2.1.196
OS: macOS
Terminal: iTerm2
Issue: Cannot select or copy text from Claude responses. Right-click does not show context menu. The problem appeared recently — was working fine in previous weeks.
Workaround tried: Fn+select, Option+select — neither works on this setup.
Still reproducible on version 2.1.196 (macOS + iTerm2). Cannot select or copy text from Claude responses. Right-click does not show context menu. Fn+select and Option+select workarounds do not work on this setup.
It is becoming worse.
It is not just inconvenience, I cannot copy anything in either mode.
So it is really buggy.
If in claude-copy mode, I get broken incomplete lines. If claude-copy is disabled (and I have to use shift nonetheless), it looks like I can copy in the context menu, but the clipboard is empty.
The only way to get output from claude is to ask him to write to a file. terminal content cannot be copied at all in no way.
Additional reproduction + workaround (Linux / gnome-terminal / VTE 0.76.0)
Environment:
Observed behaviour:
Shift+right-click: also produces no menu (unlike the workaround in the issue body — may be VTE 0.76.0 specific)Shift+Ctrl+Cwith text selected via normal click-drag: clipboard unchanged (selection never registers with VTE because mouse events are intercepted)Shift+Ctrl+V: works fine (paste doesn't require a VTE selection)TERM=xtermbefore launching has no effect — mouse tracking is enabled unconditionallyRoot cause (confirmed): Mouse tracking mode prevents VTE from registering click-drag as a text selection, so there is nothing for
Shift+Ctrl+Cto copy.Working workaround:
Hold Shift while click-dragging to select text — this forces VTE to handle the mouse event for selection rather than passing it to Claude Code. After selecting with
Shift+drag,Shift+Ctrl+Ccopies correctly.The Shift+right-click workaround documented in the issue body does not appear to work on gnome-terminal 3.52.0 / VTE 0.76.0.