-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Description
When selecting text (mouse drag to copy) in the TUI on a light terminal, the selection highlighting has poor contrast making the selected text difficult or impossible to read. This affects the default opencode theme, as well as orng and likely others.
The root cause is that @opentui/core defaults to inverting foreground/background colors when no explicit selection colors are provided. This works well for dark themes (light text → light selection background with dark text), but produces poor results for light themes or themes with dark text colors (dark text → dark selection background with black/transparent foreground).
OpenCode version
1.0.137
Steps to reproduce
- Use a light terminal theme (or terminal with light background)
- Run opencode with the default
opencodetheme (also reproducible withorngand others) - Have the AI generate a response with some text
- Try to select text by clicking and dragging to copy it
- Notice the selection is hard to read due to poor contrast
Screenshot and/or share link
Operating System
macOS (likely affects all platforms)
Terminal
Ghostty
aaronnewsome
Metadata
Metadata
Assignees
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui