[BUG] Prompt edit box is capturing all mouse input as text

Resolved 💬 11 comments Opened Oct 8, 2025 by richbodo Closed Jan 13, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Version: 2.0.9 (Claude Code)
Mac Uname -a: Darwin Richards-MacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64

Claude code, at some point, starts capturing all the mouse movement as text in the edit box. I didn't do anything special, and I can't pinpoint what triggers it. It just happens after about an hour - that's the best correlation I have. Stopping and restarting claude code fixes it. Claude will still be able to interpret some commands, recognizing that "the user seems to have sent some screen control codes by accident"

I'm just using the standard mac terminal.

<img width="1552" height="997" alt="Image" src="https://github.com/user-attachments/assets/8d66f73a-0541-4df7-9f99-586b5937e090" />

What Should Happen?

Anthropic should protect the claude prompt box from mouse input.

Error Messages/Logs

Steps to Reproduce

Install claude code 2.0.9 on mac osx. Just use it for a while. You'll start to see screen control codes flood the prompt box when you move the mouse.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.9

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗