claude-code - 💡(How to fix) Fix [Bug] UI rendering issue: Background colors overlaying text instead of displaying content

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

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.

RAW_BUFFERClick to expand / collapse

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

  1. Open Claude Code v2.1.145 in Apple Terminal on macOS
  2. Run any command (e.g. /doctor, /feedback, or a normal prompt)
  3. 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" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

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.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING