[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

  1. Open a fresh terminal (using kitty terminal)
  2. Start Python virtual environment
  3. Run python manage.py shell - works normally, no mouse events
  4. Exit the shell
  5. Start Claude Code
  6. Suspend Claude Code with Ctrl-Z
  7. 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.

View original on GitHub ↗

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