Files
kilocode/packages/tui
Johnny Eric Amancio 3acb1ec386 fix(tui): keep Kilo Gateway models visible in the model picker (#13170)
* fix(tui): keep Kilo Gateway models visible in the model picker

Selecting a model removed it from its provider section, so a recently
used Kilo sonnet vanished from "Recommended"/"Kilo Gateway" and only
survived under "Recent". Search also keyed off title and section header
only, so filtering by `kilo` never matched titles like "Anthropic Claude
Sonnet 4.5" grouped under "Recommended".

Recents now stay in their provider section (favorites are still deduped
into their own section) and search additionally keys off the provider
name, provider id, and model id, matching the VS Code selector.

Option building moves to kilocode/model-picker.ts so the grouping and
search rules are unit testable.

* chore: add changeset for TUI gateway picker

* fix(tui): identify the selected picker row by reference

Keeping recents in their provider section means a model can legitimately
appear twice in the list (once under "Recent", once under its provider or
"Recommended" section). DialogSelect resolved the selected row by value
equality, so both copies lit up as active whenever either was selected —
visible on every picker open, since the current model is usually a recent
— and hovering the provider-section copy warped selection and scroll to
the "Recent" copy instead.

Match the selected row by object reference instead. Rows are always
distinct objects, so this is a strict refinement for every other dialog;
`current` still uses value equality, which is correct — both rows really
are the current model.
2026-08-18 13:25:46 +02:00
..
2026-07-13 19:15:48 +02:00
2026-08-13 22:26:16 +00:00
2026-07-13 19:15:48 +02:00