CLAUDE_CODE_DISABLE_MOUSE_CLICKS also disables mouse drag-select, not just click-to-approve

Open 💬 0 comments Opened Jul 14, 2026 by antLI-dev

Description

CLAUDE_CODE_DISABLE_MOUSE_CLICKS=1 is documented as a way to stop stray terminal mouse clicks from being misinterpreted as approval of pending tool-permission prompts. In practice it works for that (verified empirically — a rejection click was correctly registered as a real "No", not an accidental approval), but it's an all-or-nothing toggle: it also disables normal mouse drag-to-select of terminal text, which is a separate and useful interaction.

Steps to reproduce

  1. Set export CLAUDE_CODE_DISABLE_MOUSE_CLICKS=1 and restart the terminal/session.
  2. Try to drag-select text in the terminal running Claude Code.
  3. Observe that drag-select no longer works, alongside click-to-approve being disabled.

Expected behavior

A way to disable mouse clicks being interpreted as permission-prompt approval, without disabling mouse drag-select entirely — these feel like they should be independently controllable (approval-click handling vs. general mouse passthrough).

Actual behavior

The single env var couples both behaviors, so fixing the accidental-approval risk means losing drag-select.

Additional context

Checked the current docs for a narrower/separate setting; found none — this appears to be a genuine gap rather than a missed config option.

View original on GitHub ↗