[BUG] Prompt edit box is capturing all mouse input as text
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.
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