-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Describe the bug
When selecting/highlighting text in the Copilot CLI terminal output, the selection background color (dark purple/indigo) is nearly indistinguishable from the dark terminal background. This makes it very difficult to read selected text or even see what is currently selected.
The issue appears in the default dark theme. Both the code block content and regular response text become almost invisible when highlighted.
Screenshot
The selection highlight (dark purple) against the dark gray background makes text nearly unreadable:
- White text on dark background → becomes dark blue/purple text on slightly lighter purple background
- Syntax-highlighted words (green, cyan) → become almost invisible against the purple selection
- Overall: insufficient contrast ratio between selection background and both the text foreground and the terminal background
Affected version
GitHub Copilot CLI 1.0.10
Environment
- OS: macOS (Darwin)
- Terminal: VS Code integrated terminal
- Theme: Default dark
Steps to reproduce
- Start a Copilot CLI session in VS Code terminal (dark theme)
- Ask Copilot to output some text (e.g. a code block or paragraph)
- Click and drag to select/highlight the output text
- Observe that the selection background color has very low contrast — selected text is nearly invisible
Expected behavior
Selected/highlighted text should remain clearly readable. The selection background color should provide sufficient contrast against both the text foreground colors and the terminal background. A lighter highlight color (e.g., a medium blue or lighter purple) would significantly improve readability.
Suggested fix
Consider using a selection background with higher contrast — for example:
- Lighter purple/blue (
#5A4FCFor similar) instead of the current near-black purple - Or respect the terminal emulator's native selection colors rather than overriding them
Related issues
- selection and user input background color is off after theme update #2180 — selection background color off after theme switch (related but different root cause)
- code diff are hard to see in dark mode (catpuccin theme on iTerm2) #1847 — code diffs hard to see in dark mode
- [Bug] Diff highlight colors (added/removed text) broken in v0.0.421 — unreadable on dark terminals #1818 — diff highlight colors broken
- Feature Request: Fine-grained per-element theming (border colors, chevron, prompt vs response foreground) #2123 — feature request for fine-grained per-element theming