Skip to content

Fix unreadable dim text in Claude Code select prompts (dark theme)#655

Merged
h0x91b merged 2 commits into
mainfrom
fix/dev3-ansi-dim-select-prompt
Jun 15, 2026
Merged

Fix unreadable dim text in Claude Code select prompts (dark theme)#655
h0x91b merged 2 commits into
mainfrom
fix/dev3-ansi-dim-select-prompt

Conversation

@h0x91b

@h0x91b h0x91b commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Claude Code's select prompts (AskUserQuestion / plan) draw option descriptions, leading numbers, separators and footer hints with Ink dimColor (SGR 2). ghostty renders dim as 50% alpha, which on the dark theme collapses the default foreground (#c0caf5) into a low-contrast blue-gray — the descriptions were unreadable.
  • The theme-readability filter (Theme-adaptive ANSI color rewrite for terminal readability #644) dropped dim only in light mode and deliberately kept it in dark ("fine on dark backgrounds"). That assumption was wrong for this UI. Dim is now dropped in both modes, so muted text renders at full intensity and stays legible.
  • Verified the cause against Claude Code's cli.js (those rows are dimColor:!0 over the default fg).

Covered by updated unit tests in ansi-theme-adapt.test.ts; module doc comment and decision record 066 updated.

h0x91b added 2 commits June 14, 2026 17:49
Claude Code's select prompts (AskUserQuestion / plan) draw option
descriptions, leading numbers, separators and footer hints with Ink
dimColor (SGR 2). ghostty renders dim as 50% alpha, collapsing the dark
theme's default foreground into a low-contrast blue-gray — unreadable.
The theme-readability filter dropped dim only in light mode and kept it
in dark; now it drops dim in both modes, making the filter symmetric.
@h0x91b h0x91b enabled auto-merge (squash) June 15, 2026 07:48
@h0x91b h0x91b merged commit 72444d8 into main Jun 15, 2026
4 checks passed
@h0x91b h0x91b deleted the fix/dev3-ansi-dim-select-prompt branch June 15, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant