claude-code - 💡(How to fix) Fix [BUG] AskUserQuestion question text invisible when Claude Code theme doesn't match terminal background [1 comments, 1 participants]

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…
GitHub stats
anthropics/claude-code#57739Fetched 2026-05-11 03:26:41
View on GitHub
Comments
1
Participants
1
Timeline
6
Reactions
0
Participants
Timeline (top)
labeled ×5commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

On Claude Code with a dark theme running in a light-background terminal, the question field of AskUserQuestion renders in a light foreground color against the light background and is unreadable. Highlighting the region reveals the text is present, just color-matched to the background.

The header chip and options list render with readable contrast in the same view — they appear to have their own background/contrast handling. Only the bare question text inherits the raw theme foreground, so it's the only element that fails when theme and terminal background are mismatched.

Switching Claude Code to a light theme via /config resolves it.

Related: #26170 (same class, opposite direction — black text on dark terminal).

What Should Happen?

The question text should render with readable contrast regardless of theme/terminal-background mismatch — either by using its own contrast-safe styling like the header chip and options, or by the theme picker warning when the selected theme is likely mismatched with the terminal background.

Error Messages/Logs

Steps to Reproduce

  1. Set terminal to a light background (e.g., Terminal.app default light profile).
  2. Set Claude Code to dark theme via /config.
  3. Have the assistant invoke any AskUserQuestion call.
  4. Observe: question text is invisible without highlighting; header chip and options render normally.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.138

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING