Skip to content

TUI: improve unified mention selection visibility#28959

Merged
canvrno-oai merged 1 commit into
mainfrom
canvrno/mentions_selection_tweaks
Jun 18, 2026
Merged

TUI: improve unified mention selection visibility#28959
canvrno-oai merged 1 commit into
mainfrom
canvrno/mentions_selection_tweaks

Conversation

@canvrno-oai

@canvrno-oai canvrno-oai commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

@milanglacier reported in #28653 that the active mention candidate is hard to distinguish. I suspect @binbjz’s #28500 report (where arrow-key navigation appeared not to work) may describe the same presentation problem: the selection may have been changing, but the UI was not showing the active row clearly in their terminal. This PR makes two small changes to the selection indication behavior:

  • Reserve a two-character gutter and mark the active candidate with > for color-agnostic indicator coverage.
  • Apply the shared theme-aware accent to the entire selected row for extra emphasis.
  • Update the existing popup snapshot.

Reverse-video styling was considered, but avoided it because it is overly dependent on the user’s terminal palette.

image

Testing

  • just test -p codex-tui default_unified_mention_popup_snapshot
  • just clippy -p codex-tui
  • just fmt
  • Compiled codex-cli and tested the unified mentions picker in the terminal.

@canvrno-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@canvrno-oai canvrno-oai marked this pull request as ready for review June 18, 2026 19:13

@fcoury-oai fcoury-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested working, changes are very straightfoward. Approved.

@canvrno-oai canvrno-oai merged commit 9bcc09f into main Jun 18, 2026
46 of 47 checks passed
@canvrno-oai canvrno-oai deleted the canvrno/mentions_selection_tweaks branch June 18, 2026 20:37
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants