[BUG] Mouse tracking not disabled when Claude Code is suspended with Ctrl-Z
Open 💬 0 comments Opened Jul 15, 2026 by arinar
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.
In my case, when i wanted to use the terminal scrollback, bash responds to scroll-events by cycling through the command history instead.
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 xfce4-terminal)
- ls -R | head -1000
- Start Claude Code
- Suspend Claude Code with Ctrl-Z
- Scroll up (attempt to skim through old terminal output)
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.210 (Claude Code)
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
I've confirmed this only for xfce4-terminal, not others. I doubt it's specific to xfce4-terminal.
This exact issue has been reported but then closed automatically.
I have
{
"env": { "CLAUDE_CODE_DISABLE_MOUSE_CLICKS": "1" },
"tui": "fullscreen",
"editorMode": "normal",
/* ... */
}