Settings: the backend selector repeats itself when a backend's name is its kind and model #191

Closed
opened 2026-10-18 01:34:59 -04:00 by cmoriarty · 1 comment
Owner

Seen on production after #187's deploy (fdd6c70; archived in OpenSpec as settings-page-tidy in 874eb27). For a backend whose name is the same as its kind and model, Settings' "Backend runs use" selector reads:

vLLM · qwen3.8-27b — vLLM · qwen3.8-27b

The label comes from backendOption() in ui/src/lib/settings.ts, which builds <name> — <kind> · <model>. When the name already says the kind and the model, the second half repeats it.

What it should do

  • When the name matches <kind> · <model> (ignoring case and spacing), show it once: vLLM · qwen3.8-27b.
  • When the name says something else, keep <name> — <kind> · <model>, e.g. GPU box — vLLM · qwen3.8-27b.
  • (not saved) and the Free profile's labels stay as they are.

Done when

  • A vitest for backendOption() covers a name equal to its kind and model, and a name that differs.
  • On production the selector reads vLLM · qwen3.8-27b once.

Cosmetic.

Seen on production after #187's deploy (fdd6c70; archived in OpenSpec as `settings-page-tidy` in 874eb27). For a backend whose name is the same as its kind and model, Settings' "Backend runs use" selector reads: `vLLM · qwen3.8-27b — vLLM · qwen3.8-27b` The label comes from `backendOption()` in `ui/src/lib/settings.ts`, which builds `<name> — <kind> · <model>`. When the name already says the kind and the model, the second half repeats it. ## What it should do - When the name matches `<kind> · <model>` (ignoring case and spacing), show it once: `vLLM · qwen3.8-27b`. - When the name says something else, keep `<name> — <kind> · <model>`, e.g. `GPU box — vLLM · qwen3.8-27b`. - ` (not saved)` and the Free profile's labels stay as they are. ## Done when - A vitest for `backendOption()` covers a name equal to its kind and model, and a name that differs. - On production the selector reads `vLLM · qwen3.8-27b` once. Cosmetic.
Author
Owner

Shipped in #301 (5355515, deployed), archived in #302.

On production, Settings' "Backend runs use" now reads vLLM · qwen3.8-27b and llama.cpp · qwen3.8-flash-next once each, while a backend with a name of its own keeps both parts (fastllm qwen38-27b — fastllm · qwen3.8-27b). A vitest covers both cases.

Shipped in #301 (5355515, deployed), archived in #302. On production, Settings' "Backend runs use" now reads `vLLM · qwen3.8-27b` and `llama.cpp · qwen3.8-flash-next` once each, while a backend with a name of its own keeps both parts (`fastllm qwen38-27b — fastllm · qwen3.8-27b`). A vitest covers both cases.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/braid#191
No description provided.