Selected permission option result unreadable when background colour is "none" #4385

Closed
opened 2026-02-16 17:43:38 -05:00 by yindo · 2 comments
Owner

Originally created by @ariane-emory on GitHub (Jan 7, 2026).

Originally assigned to: @kommander on GitHub.

Description

With the recent changes in how permissions are displayed in the TUI, the text for the selected option is now completely unreadable when the background color is set to "none".

This reminds me of a prior issue that occurred with selected menu items when the background colour was set to "none" that was fixed a couple of months ago by having it automatically calculate a contrasting colour or using a selectedListItemText colour from the theme (see packages/opencode/src/cli/cmd/tui/context/theme.tsx).

Plugins

None

OpenCode version

1.1.6

Steps to reproduce

  1. Set the colour of 'background' to "none" in your theme.
  2. Perform an action that will cause a request for permissions to be displayed.

Screenshot and/or share link

Image

Operating System

MacOS Sequoia latest

Terminal

iTerm2

Originally created by @ariane-emory on GitHub (Jan 7, 2026). Originally assigned to: @kommander on GitHub. ### Description With the recent changes in how permissions are displayed in the TUI, the text for the selected option is now completely unreadable when the background color is set to "none". This reminds me of a prior issue that occurred with selected menu items when the background colour was set to "none" that was fixed a couple of months ago by having it automatically calculate a contrasting colour or using a `selectedListItemText` colour from the theme (see `packages/opencode/src/cli/cmd/tui/context/theme.tsx`). ### Plugins None ### OpenCode version 1.1.6 ### Steps to reproduce 1. Set the colour of 'background' to "none" in your theme. 2. Perform an action that will cause a request for permissions to be displayed. ### Screenshot and/or share link <img width="382" height="203" alt="Image" src="https://github.com/user-attachments/assets/b927bed3-bf0d-4c34-9543-41b7417f1475" /> ### Operating System MacOS Sequoia latest ### Terminal iTerm2
yindo added the opentuibug labels 2026-02-16 17:43:38 -05:00
yindo closed this issue 2026-02-16 17:43:38 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2026):

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

  • #4369: Unreadable text on selected list when "background": "none" (similar contrast issue with selected elements when background is set to none)
  • #4666: Bug: Highlighted text invisible with transparent custom themes (same underlying issue with contrast)
  • #4669: Bug: Highlighted text invisible with transparent custom themes (same issue reported with custom theme)

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

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #4369: Unreadable text on selected list when "background": "none" (similar contrast issue with selected elements when background is set to none) - #4666: Bug: Highlighted text invisible with transparent custom themes (same underlying issue with contrast) - #4669: Bug: Highlighted text invisible with transparent custom themes (same issue reported with custom theme) Feel free to ignore if none of these address your specific case.
Author
Owner

@ariane-emory commented on GitHub (Jan 7, 2026):

PR incoming, ETA ~30 minutesish.

@ariane-emory commented on GitHub (Jan 7, 2026): PR incoming, ETA ~30 minutesish.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4385