[Bug] UI rendering issue: Background colors overlaying text instead of displaying content
Bug Description
In the last 2 versions of Claude Code (currently on 2.1.145), terminal output is rendering with a solid background color block that bleeds across the full viewport width and overlays the text. The text is technically there but invisible because the background fills the line(s) underneath and over the foreground glyphs.
The issue persists across multiple commands (/doctor, /feedback, regular prompts) and also overlays the status bar area. Looks like a stray ANSI background-color escape sequence that isn't being reset (missing \e[49m / \e[0m), so once it turns on it paints everything after it.
Environment
- Platform: darwin (macOS)
- Terminal: Apple Terminal
- Claude Code version: 2.1.145
- Model in use: opus-4-7
- Shell: (please add — zsh/bash)
- TERM: (please add —
echo $TERM)
Expected behavior
Background colors should only highlight their intended span (selected text, status pills, diff highlights). Color state should reset at the end of each styled segment.
Actual behavior
A large red background block overlays multiple lines, obscuring all text underneath. The overlay persists across new prompts and command outputs until the screen is cleared (and often reappears).
See attached screenshot.
Steps to reproduce
- Open Claude Code v2.1.145 in Apple Terminal on macOS
- Run any command (e.g.
/doctor,/feedback, or a normal prompt) - Observe red background overlay covering output text
Additional notes
- Did not occur in versions prior to ~v2.1.143/144 (i.e. only the last 2 releases)
- Happens regardless of which command is run
- Status bar at the bottom is also affected
Screenshot
<img width="1301" height="234" alt="Image" src="https://github.com/user-attachments/assets/98367616-6093-4055-80af-fa27f4ba1e1f" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗