TUI: low-contrast/invisible text on macOS dark terminal (worst when selecting to copy)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- cli
Research direction
Start in ui-tui/src/theme.ts around the DARK_16_COLORS definition and compare its muted, label, sessionLabel, and selectionBg values with the higher theme tiers. Reproduce the dark-terminal selection case described in the issue, then verify that muted text remains readable and selected text does not disappear across the affected palette tiers.
Written by the indexing model from the issue text.
Description
Summary
On macOS dark terminals, some TUI text is very low contrast — and when you select it to copy, it becomes effectively invisible (dark-gray text on a dark-gray selection highlight).
Reported with a screenshot of an assistant prompt line (能否请您直接告诉我...) rendered so faintly it is barely readable, and unreadable once highlighted for copy.
Likely cause (code)
In the 16-color theme tier DARK_16_COLORS (ui-tui/src/theme.ts, ~L363), several foreground roles and the selection background all resolve to the same ansi:blackBright:
muted: 'ansi:blackBright'
label: 'ansi:blackBright'
sessionLabel:'ansi:blackBright'
selectionBg: 'ansi:blackBright' // <- selection highlight
diffAdded: 'ansi:blackBright'
diffRemoved: 'ansi:blackBright'
Two problems on a dark background:
ansi:blackBright(bright black ≈ dark gray) as a foreground is already very low contrast against a dark terminal bg → muted/label/dim text is hard to read.selectionBgis alsoansi:blackBright, so selecting any dark/muted foreground text puts gray-on-gray → the text disappears while highlighted (matches "复制文案时看不出来").
The higher tiers (muted: '#858482' / ansi256(102) / ansi256(59)) are less severe but muted still trends low-contrast.
Steps to reproduce
- macOS, dark-background terminal (Terminal.app / iTitem2 dark).
- Launch
ravenTUI. - Observe muted/secondary text (e.g. an assistant prompt / hint line) — low contrast.
- Click-drag to select that text to copy → it becomes invisible under the selection highlight.
Expected
Muted text stays legible on dark backgrounds, and selected text remains readable (selection highlight must contrast with the text it covers).
Suggested fix
- Give
selectionBga background distinct from any foreground role (notansi:blackBright), or invert selected-text foreground so it always contrasts. - Bump the muted/label foreground to a higher-contrast value on dark themes.
Info needed to pin the exact theme tier
Could the reporter share the terminal's echo "$TERM / $COLORTERM" and terminal app? That tells us whether they land on the 16-color tier (the worst case above) or a 256/truecolor tier, so the fix targets the right palette.
Environment
macOS, dark terminal. (Screenshot shows faint assistant text; attach if possible.)
- Dominant language
- Python
- Stars
- 4.1k
- Forks
- 94
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 371
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EverMind-AI/Raven
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
EverMind-AI/Raven#1029 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EverMind-AI/Raven#1000 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
EverMind-AI/Raven#998 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
EverMind-AI/Raven#997 ·
Maintainers usually reply within 1 day
-
security: tool output scrubbing misses raven's own oauth token filesPossibly taken @akushonkamen claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
EverMind-AI/Raven#842 · 2 comments ·
Maintainers usually reply within 1 day
All issues in EverMind-AI/Raven
Similar issues
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yunaremaia/proto-drift#22 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yunaremaia/memwatch#96 ·
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 91/100
yunaremaia/ci-gate-watch#34 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
yunaremaia/agent-capability-attestation#64 ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 86/100
yunaremaia/agent-call-graph#43 ·
Maintainers usually reply within 1 day