Unreadable selected text selection in light themes #8922

Closed
opened 2026-02-16 18:11:11 -05:00 by yindo · 1 comment
Owner

Originally created by @akronb on GitHub (Feb 9, 2026).

Originally assigned to: @kommander on GitHub.

Description

When using a light theme, selecting regular text in the TUI makes it completely unreadable. The selected text appears as a solid black block. Both the background and foreground seem to use the same (or very similar) dark color, so there's no contrast between the text and the selection highlight.

Plugins

No response

OpenCode version

1.1.53

Steps to reproduce

  1. Set the TUI theme to any light variant
  2. Select any regular text in the chat/output area
  3. The selected text becomes a black rectangle with no visible characters

Screenshot and/or share link

https://github.com/user-attachments/assets/262fa1c0-9d05-4d51-8eac-c78e8b884127

Operating System

macOS 15.7.3

Terminal

Ghostty 1.2.3

Originally created by @akronb on GitHub (Feb 9, 2026). Originally assigned to: @kommander on GitHub. ### Description When using a light theme, selecting regular text in the TUI makes it completely unreadable. The selected text appears as a solid black block. Both the background and foreground seem to use the same (or very similar) dark color, so there's no contrast between the text and the selection highlight. ### Plugins _No response_ ### OpenCode version 1.1.53 ### Steps to reproduce 1. Set the TUI theme to any light variant 2. Select any regular text in the chat/output area 3. The selected text becomes a black rectangle with no visible characters ### Screenshot and/or share link https://github.com/user-attachments/assets/262fa1c0-9d05-4d51-8eac-c78e8b884127 ### Operating System macOS 15.7.3 ### Terminal Ghostty 1.2.3
yindo added the opentuibug labels 2026-02-16 18:11:11 -05:00
yindo closed this issue 2026-02-16 18:11:11 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 9, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #12802: Text becomes unreadable when drag(highlighted) in Light Mode
  • #5295: Text selection has poor contrast/readability on light terminals with certain themes
  • #9441: TUI command palette selection becomes unreadable when copy-highlighting

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 9, 2026): This issue might be a duplicate of existing issues. Please check: - #12802: Text becomes unreadable when drag(highlighted) in Light Mode - #5295: Text selection has poor contrast/readability on light terminals with certain themes - #9441: TUI command palette selection becomes unreadable when copy-highlighting Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8922