You'll notice
Mouse click capture is now cleaned up when the terminal's alternate screen is torn down or handed off
What
Claude Code's terminal renderer uses an "alt screen" (a separate full-screen display terminals use for interactive apps). When that alt screen is handed off (handoffAltScreen()) or deactivated, Claude Code now calls endPointerCapture() and tellPressedNowhere() before resetting terminal modes and repainting.
Why
This cleans up any stuck mouse-press or pointer-capture state left over from the alt screen, preventing leftover mouse interaction state from carrying over incorrectly after the screen is torn down or handed off.