TUI command palette selection becomes unreadable when copy-highlighting #6821

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

Originally created by @kearns-cu on GitHub (Jan 19, 2026).

Originally assigned to: @kommander on GitHub.

Summary

In the TUI command palette, hover styling uses high contrast colors, but when selecting text with the mouse to copy, the selection highlight turns selected text black on a dark background, making it hard to see what is being copied.

Steps to Reproduce

  1. Open the TUI.
  2. Open the command palette via Ctrl+P or /commands.
  3. Hover a command (text becomes black on orange background).
  4. Click and drag to highlight part of the command text for copy.

Actual Behavior

Selected text becomes black on a dark selection background, reducing readability while selecting.

Expected Behavior

Selected text remains readable with high contrast while dragging to copy, regardless of theme.

Scope

Applies only to the command palette hover and selection styling.

Originally created by @kearns-cu on GitHub (Jan 19, 2026). Originally assigned to: @kommander on GitHub. ## Summary In the TUI command palette, hover styling uses high contrast colors, but when selecting text with the mouse to copy, the selection highlight turns selected text black on a dark background, making it hard to see what is being copied. ## Steps to Reproduce 1. Open the TUI. 2. Open the command palette via Ctrl+P or /commands. 3. Hover a command (text becomes black on orange background). 4. Click and drag to highlight part of the command text for copy. ## Actual Behavior Selected text becomes black on a dark selection background, reducing readability while selecting. ## Expected Behavior Selected text remains readable with high contrast while dragging to copy, regardless of theme. ## Scope Applies only to the command palette hover and selection styling.
yindo added the opentui label 2026-02-16 18:05:22 -05:00
yindo closed this issue 2026-02-16 18:05:22 -05:00
Author
Owner

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

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

  • #5295: Text selection has poor contrast/readability on light terminals with certain themes

This appears to be a related issue with text selection readability in the TUI. Feel free to ignore if this doesn't address your specific case with the command palette hover styling.

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #5295: Text selection has poor contrast/readability on light terminals with certain themes This appears to be a related issue with text selection readability in the TUI. Feel free to ignore if this doesn't address your specific case with the command palette hover styling.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6821