You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tokenizer offers Create for a label that is already selected when the token id differs from the label #6366
with a selected token like {id: 'u1', label: 'Alice'}, typing "Alice" again still offers Create "Alice", and committing it adds a duplicate token under a fresh id.
why
the hasCreate duplicate check compares the typed label against the set of selected ids, not labels. the search results can't catch it either because they are pre-filtered to remove selected items.
repro
select a token whose label differs from its id
type that label again
the create action is offered and duplicates the entry
expected
the create action is suppressed when the typed label matches an already-selected token's label (case-insensitive), same as it is today when label equals id.
Activity
fix(Tokenizer): suppress Create option for already-selected labels (m…
fix(Tokenizer): suppress Create when the typed label matches a select…