fix(web): say when the primary model has no key and which model chats use (UF-054)

Settings showed the configured primary while the status bar showed the
model new chats fall back to, so the two screens disagreed. Model Pilot now
says the primary needs a key and names the model in use.
This commit is contained in:
shumeiko.it
2026-10-27 14:20:05 +01:00
parent 97b2c984d8
commit c2998f1a6b
4 changed files with 107 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ Baseline: commit `b20b138` of `git.os-dev.tech/oleg.m/waggle-os`.
| UF-051 | The memory recall step looks unfinished after the answer | Fixed | Sidecar, chat, memory |
| UF-052 | Home offers the same workspace twice | Fixed | Web UI |
| UF-053 | The user's chat bubble is squared on the wrong corner | Fixed | Web UI, chat |
| UF-054 | Settings and the status bar name different default models | Fixed | Web UI, models |
## Entries
@@ -535,3 +536,12 @@ Entries UF-010 to UF-019 come from the UI audit `anti-slop/audit-001-2026-10-14.
- Cause: the four-value radius puts the 4px corner first, which is the top left.
- What we did: the radius is `rounded-[14px_4px_14px_14px]`, so the square corner is the top right. A chat test checks it.
- Recommendation: apply the same change in the main project.
### UF-054. Settings and the status bar name different default models
- Status: Fixed
- Found: 2026-10-26
- Where: at commit `b20b138`, `apps/web/src/components/os/ModelPilotCard.tsx:361` (the Primary lane) and `apps/web/src/components/os/StatusBar.tsx:160` ("Default model:")
- Symptom: Settings → Models shows Claude Sonnet 4.6 as the primary model, while the status bar says "Default model: Llama3.1 (8b)".
- Cause: both are true. The primary has no API key, so the server's usable-model check routes new chats to the local model, and the status bar shows that model. Model Pilot only shows the configured primary and never says it cannot answer.
- What we did: when the primary's provider needs a key the vault lacks, Model Pilot says so under Primary and names the model new chats use until a key is added. Settings reads that model from the server. A test covers the keyless, unknown and keyed cases.
- Recommendation: apply the same change in the main project.