claude-code - 💡(How to fix) Fix Mouse tracking breaks terminal right-click context menu and text selection

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Starting with version 2.1.150, Claude Code enables terminal mouse tracking (xterm mouse reporting) in the terminal where it runs. This breaks standard terminal interactions that worked fine in v2.1.148 and earlier.

Root Cause

Starting with version 2.1.150, Claude Code enables terminal mouse tracking (xterm mouse reporting) in the terminal where it runs. This breaks standard terminal interactions that worked fine in v2.1.148 and earlier.

Fix Action

Fix / Workaround

Workarounds (tedious)

RAW_BUFFERClick to expand / collapse

Description

Starting with version 2.1.150, Claude Code enables terminal mouse tracking (xterm mouse reporting) in the terminal where it runs. This breaks standard terminal interactions that worked fine in v2.1.148 and earlier.

Environment

  • OS: Ubuntu (X11)
  • Terminal: GNOME Terminal
  • Claude Code version: 2.1.150
  • Previous working version: 2.1.148

What broke

  1. Right-click context menu no longer appears — mouse events are intercepted by Claude Code before GNOME Terminal can show its native context menu.
  2. Text selection with mouse doesn't register — click-and-drag appears to select text visually, but the terminal doesn't register it as a real selection, so Copy remains greyed out in the context menu.

Workarounds (tedious)

  • Shift + right-click to force the terminal context menu
  • Shift + click-and-drag to force terminal text selection
  • Ctrl+Shift+C / Ctrl+Shift+V for copy/paste

Expected behavior

Previous versions (≤ 2.1.148) did not enable mouse tracking, so right-click, text selection, and copy/paste all worked natively in the terminal. This behavior should be restored, or at minimum a setting should be provided to disable mouse reporting.

Suggestion

Add a configuration option (e.g. "mouseReporting": false in settings.json) to allow users to opt out of mouse tracking.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Previous versions (≤ 2.1.148) did not enable mouse tracking, so right-click, text selection, and copy/paste all worked natively in the terminal. This behavior should be restored, or at minimum a setting should be provided to disable mouse reporting.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING