Skip to content

TUI: Unified mentions tweaks + polish mentions rendering#23363

Merged
canvrno-oai merged 23 commits into
mainfrom
canvnro/mentions_cleanup_enable
May 28, 2026
Merged

TUI: Unified mentions tweaks + polish mentions rendering#23363
canvrno-oai merged 23 commits into
mainfrom
canvnro/mentions_cleanup_enable

Conversation

@canvrno-oai
Copy link
Copy Markdown
Contributor

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

This change keeps unified @mentions behind the mentions_v2 gate, moves the flag to under-development, and polishes mention rendering/history behavior.

It also adds a few small improvements to the mentions feature around mention rendering and history round-tripping for plugin/tool mentions in message edit scenarios. Plugin selections now insert @ mentions with better casing, and saved history preserves the visible sigil so recalled messages look the same as what the user typed.

  • Preserves @ sigils when encoding/decoding mention history for tool/plugin paths.
  • Improves plugin mention insertion so display names/casing are reflected more cleanly in the composer.
  • Update composer to render user-entered plugin mentions in the same color as the mentions menu. ALso applies to recalled/edited messages.
  • Left/right arrows no longer switch unified-mention search modes after an @mention has already been accepted (Ex: arrowing left through a composed message that contains @mentions).
  • Keeps bound mentions stable around punctuation, so accepted @ mentions do not reopen the popup and punctuated $ mentions still persist to cross-session history.

Steps to test

  • Ensure mentions_v2 is enabled through configuration or --enable mentions_v2
  • Type @ in the TUI composer and verify filesystem/plugin/skill results are displayed in the unified mentions menu.
  • Select a plugin mention from the @ popup and confirm the inserted text is an @... mention with casing, then recall/edit the message and confirm it still renders as @....
  • Mention a skill and verify that skills still insert as $skill mentions rather than @ mentions.
  • Verify punctuated mentions such as @plugin. and ($skill) keep their bound mention behavior across editing and history recall.

@canvrno-oai
Copy link
Copy Markdown
Contributor Author

@codex review

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8dd875041

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/bottom_pane/chat_composer.rs Outdated
Comment thread codex-rs/tui/src/bottom_pane/chat_composer.rs Outdated
Comment thread codex-rs/tui/src/mention_codec.rs
Comment thread codex-rs/tui/src/mention_codec.rs
@canvrno-oai canvrno-oai changed the title TUI: Make Mentions 2.0 default, remove gate, polish rendering TUI: Default to unified mentions, deprecate gate, polish mentions rendering May 18, 2026
@canvrno-oai canvrno-oai force-pushed the canvnro/mentions_cleanup_enable branch from 898e68b to 0b55450 Compare May 19, 2026 01:52
@canvrno-oai canvrno-oai force-pushed the canvnro/mentions_cleanup_enable branch 3 times, most recently from f62a94c to 911b9cf Compare May 26, 2026 17:19
@canvrno-oai canvrno-oai force-pushed the canvnro/mentions_cleanup_enable branch from 1b1718c to 684482e Compare May 26, 2026 21:58
@canvrno-oai
Copy link
Copy Markdown
Contributor Author

@codex review

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 325669b771

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/bottom_pane/mentions_v2/search_catalog.rs
@canvrno-oai canvrno-oai marked this pull request as ready for review May 27, 2026 19:12
@canvrno-oai canvrno-oai changed the title TUI: Default to unified mentions, deprecate gate, polish mentions rendering TUI: Unified mentions tweaks + polish mentions rendering May 27, 2026
Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

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

Ran some local tests with the flag enabled an disabled and it worked as expected.

Approved 👍

@canvrno-oai canvrno-oai merged commit 6c1215d into main May 28, 2026
31 checks passed
@canvrno-oai canvrno-oai deleted the canvnro/mentions_cleanup_enable branch May 28, 2026 17:30
@github-actions github-actions Bot locked and limited conversation to collaborators May 28, 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