Skip to content

feat: let mention results be listed but not picked - #9

Merged
petyosi merged 1 commit into
mainfrom
petyosi/mention-disabled-options
Oct 12, 2026
Merged

petyosi merged 1 commit into
mainfrom
petyosi/mention-disabled-options

Conversation

@petyosi

@petyosi petyosi commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Hosts sometimes need to show a mention candidate that cannot be picked in the current context. One example is an agent that needs resources the conversation does not have. Hiding the candidate leaves people guessing why it is missing. Showing it disabled, with the reason, explains the situation.

Mention options now accept disabled and description:

  • The initial highlight and keyboard navigation (arrows, Ctrl-N/P) skip disabled options.
  • confirmMention$ and insertMention$ refuse disabled options, so Enter, Tab, and click never insert them. If every result is disabled, the menu stays open.
  • The registry menu renders disabled options with aria-disabled, muted text, and the description. It does not highlight them on hover.

The mentions guide documents the fields, and the mentions story includes a disabled person.

Hosts sometimes need to show a candidate that cannot be mentioned in the
current context, such as an agent that needs resources the conversation
lacks. Hiding it leaves people guessing why it is missing.

Mention options accept disabled and description. Keyboard navigation and
the initial highlight skip disabled options, confirm and insert refuse
them, and the registry menu renders them with aria-disabled and the
description.
@petyosi
petyosi merged commit 39fe538 into main Oct 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant