[BUG] Mouse tracking not disabled when Claude Code is suspended with Ctrl-Z
Resolved 💬 3 comments Opened Sep 18, 2025 by tolomea Closed Jan 9, 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?
When Claude Code is suspended using Ctrl-Z, it leaves mouse tracking enabled in the terminal. This causes other terminal programs to receive unwanted mouse enter/exit events.
What Should Happen?
When Claude Code is suspended, it should disable mouse tracking so other terminal programs aren't affected.
Error Messages/Logs
Steps to Reproduce
- Open a fresh terminal (using kitty terminal)
- Start Python virtual environment
- Run python manage.py shell - works normally, no mouse events
- Exit the shell
- Start Claude Code
- Suspend Claude Code with Ctrl-Z
- Run python manage.py shell again - now receives mouse enter/exit events
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
1.0.117
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
Workaround: Properly exiting Claude Code (instead of suspending it) correctly cleans up the terminal state.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗