claude-code - 💡(How to fix) Fix [BUG] Error text color too dark on dark terminal backgrounds [1 comments, 2 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#47809Fetched 2026-04-15 06:41:42
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

The error text color used in CLI output (e.g., /sandbox command errors) uses rgb(171, 43, 63) — a dark Error: Sandbox settings are overridden by a higher-priority configuration and cannot be changed locally. Use a brighter red variant (e.g., rgb(255, 85, 85) or rgb(239, 68, 68)) for error messages to improve

Error Messages/Logs

Make an error happen

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?

Description

The error text color used in CLI output (e.g., /sandbox command errors) uses rgb(171, 43, 63) — a dark burgundy/red that's difficult to read on dark terminal backgrounds.

Example

Running /sandbox when settings are overridden produces: Error: Sandbox settings are overridden by a higher-priority configuration and cannot be changed locally.

The ANSI escape uses a dark red that has poor contrast against common dark themes (e.g., iTerm2 default dark, VS Code terminal dark).

Suggestion

Use a brighter red variant (e.g., rgb(255, 85, 85) or rgb(239, 68, 68)) for error messages to improve readability across both light and dark terminal backgrounds.

Environment

  • macOS
  • Terminal: dark background theme
<img width="868" height="114" alt="Image" src="https://github.com/user-attachments/assets/955a1792-2c0b-422d-8a8e-974bbf94dcd3" />

What Should Happen?

The red text for errors should be readable in dark mode.

Error Messages/Logs

Steps to Reproduce

Make an error happen

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.107 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Warp

Additional Information

No response

extent analysis

TL;DR

Change the error text color in CLI output to a brighter red variant, such as rgb(255, 85, 85) or rgb(239, 68, 68), to improve readability on dark terminal backgrounds.

Guidance

  • Identify the current ANSI escape code used for error messages and replace it with a new code that uses a brighter red color.
  • Test the new color scheme on different terminal backgrounds, including dark themes like iTerm2 default dark and VS Code terminal dark, to ensure readability.
  • Consider adding a configuration option to allow users to customize the error text color to their preference.
  • Verify that the new color scheme does not introduce any accessibility issues for users with color vision deficiencies.

Example

No code snippet is provided as the issue does not include the relevant code.

Notes

The suggested fix assumes that the error text color can be modified through configuration or code changes. If the color is hardcoded, additional investigation may be required to determine the best approach.

Recommendation

Apply workaround: Change the error text color to a brighter red variant, as this is a simple and effective solution to improve readability on dark terminal backgrounds.

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

claude-code - 💡(How to fix) Fix [BUG] Error text color too dark on dark terminal backgrounds [1 comments, 2 participants]