[BUG] Clicking in TUI causes entire content viewport to render white
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 clicking anywhere in the Claude Code interface while a task is running,
the entire TUI content area (conversation history, tool outputs, code panels)
turns completely white/blank. Only the bottom status bar retains correct rendering.
The session remains functional — commands continue running in the background —
but all content is invisible until the terminal is resized or the session scrolls.
What Should Happen?
Clicking should not affect rendering. The content area should remain fully
visible at all times.
Error Messages/Logs
No error output — this is a visual/rendering bug. No stack trace or logs appear.
Steps to Reproduce
- Open Claude Code in iTerm2
- Ask Claude to run a task involving shell commands (e.g. analyze a log file)
- While Claude is actively running commands, click anywhere in the content area
- The entire viewport turns white — only the bottom status bar remains visible
- Content stays invisible until the terminal window is resized
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.177
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Screen recording attached (see below) showing the exact moment clicking
triggers the white screen. The hypothesis is that mouse click events are
captured by the TUI and trigger an incorrect redraw — clearing the viewport
without re-rendering the content.
https://github.com/user-attachments/assets/d2baf91e-a2f1-4868-b09f-b28b54dc926a