Commit Graph
5 Commits
Author SHA1 Message Date
webtecnica c784ef7a12 fix(ui): preserve endpoint-style custom slugs host:port in model parsers (#6884) 2026-09-24 08:50:30 -03:00
webtecnica cef2521f2a fix(ui): restore "Selected" row for bare custom model ids (#6884)
After the send path emits the bare model id (e.g. "model-a:free"), the
restore/refresh path compared the qualified catalog row value
(@custom:hetmer.net:model-a:free) against the bare state model, so no
row rendered as active/"Selected". Normalize both sides through
_modelPickerOptionIdentity (the same identity used for picker dedup)
and keep the provider equality gate, so exactly one row is restored.

Adds a round-trip regression test (send -> persist -> restore) with a
colon-bearing custom model id asserting exactly one "Selected" row with
the model intact, and updates the #5748 source-assertions to the
normalized comparison.
2026-08-30 21:37:05 -03:00
webtecnica c82c6a542a fix(ui): use option metadata provider for @custom prefix strip (#6884)
The #6884 prefix strip built its prefix from explicitProvider, which
re-parses the value at its LAST colon. For a colon-bearing model id
rendered by the normal catalog path (e.g. @custom:backup:model-a:free,
no data-model), the strip truncated the model to just "free". Build the
strip prefix from the option metadata's authoritative provider
(routedProvider, e.g. custom:backup), falling back to the parsed
provider only when no option metadata exists. The #1771 gate is kept:
non-custom namespaces like @safe:gpt-4o-mini are still preserved.

Adds regression coverage for the colon-bearing model case beside the
existing #6884 normal-catalog test.
2026-08-30 21:37:04 -03:00
webtecnica 377087da06 fix(ui): strip @custom:<slug>: prefix when sending non-default custom-provider models 2026-08-30 21:37:04 -03:00
happy5318andhappy5318 76690c66e5 fix: deduplicate configured model badges (#6221)
Deduplicate configured model badges so one configured model shows a single picker entry, with provider-collision + colon-bearing-id routing correctness. Thanks @happy5318.

Co-authored-by: happy5318 <happy5318@users.noreply.github.com>
2026-07-18 12:43:43 -07:00