Repository navigation
fix(ui): no Load button for a model Lemonade doesn't have - #7866
Conversation
Settings › Advanced offered "Wrong model loaded. [Load model]" for a custom model ID that doesn't exist, a button that can only fail. The banner now needs the expected model to be downloaded. Custom model ID also gets a jump target so the failed-turn card can open Settings on it. Refs #7861
|
Verdict: Approve with suggestions Settings › Advanced no longer offers a Load button for a custom model ID that Lemonade doesn't have, such as a typo. The Custom model ID section is also now a place Settings can jump to. The typo fix is correct and tested. One side effect is worth checking before merge. The server reports "not downloaded" for two different cases: a model ID Lemonade has never heard of, and a real model that just hasn't been pulled yet. The new rule hides the banner in both. So a user whose chosen model is real but not yet downloaded, with some other model loaded, now gets no action button at all: no Load, and no Download either, because the Download banner only appears when nothing is loaded. They still see "Expected: X" on the Model row. Before this change they had a Load button, so it's worth confirming whether that button used to fetch the model. If it did, this PR removes the only fix on that screen for them. Real-world evidenceThe evidence stage ran the server route behind this banner for real. The rendered Settings screen is pending the strix-halo lane.
The verdict rests on this route evidence plus static review. The before/after screenshot of the Advanced pane is still owed by the strix-halo lane. 🔍 Technical details🟡 A real but undownloaded expected model loses its action ( In Options:
Whichever you choose, add a component test for "model loaded, expected model in the catalog but not downloaded" so the intended behaviour is pinned. Checks run
Strengths
|
Skill audit
✅ All audited skills cleared the tier they claim. Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the |
|
Verdict: Approve with suggestions With a mistyped custom model ID, Settings › Advanced used to show a Load button that could only fail. This PR hides it, and lets Settings jump straight to the Custom model ID field. The change is small and tested, and fixes the reported case. One gap to fix here or file: the new check can't tell "this ID doesn't exist" apart from "this is a real model that isn't downloaded yet". The server marks both as not downloaded. So if you pick a real model you haven't downloaded while another one is loaded, Settings now shows only "Expected: X", with no Load or Download button. Before this PR it offered Load. A small server-side "found in catalog" flag would let the screen hide Load for a typo and still offer Download for a real model. Real-world evidenceThe evidence stage exercised the HTTP routes behind this screen. Lemonade wasn't running, and the rendered Settings screen is pending strix-halo lane.
🔍 Technical details🟡 A real model that isn't downloaded loses its action when another model is loaded (
Suggested fix: have the status route report whether the ID was found in the catalog (
If that's out of scope, add a test that pins the found-but-not-downloaded case, and file it as Follow-up: Settings › Advanced offers no Download for an unpulled expected model while another is loaded. Checks run
Strengths
|
…nd (amd#7729) A turn that failed on a mistyped Custom model ID showed "Something went wrong", the raw model-server error, and a line telling a desktop user to run a terminal command and "re-run your GAIA command". The card is now headed with the cause ("This model isn't available"), says what to do in plain words, offers a button for each Settings tab the fix lives on, and keeps the server's own words under a closed Details. "Open Settings › Advanced" opens Custom model ID itself, focused, rather than the top of the tab (the target amd#7866 added). Wording sent to the app no longer carries the terminal remedies: the restart line of a failed model load, the client pull command for a model that isn't downloaded, and the start command for GAIA's own model server. Closes amd#7705 Closes amd#7861 Refs amd#7364 Error classification gains one case (a model name the server doesn't list), which only affects a turn that fails before it starts; no eval category should move, and `tool_calling` and `rag_quality` are the ones to watch on the next RC. ## Test plan - [x] `npx vitest run src/components/__tests__/MessageBubble.failedTurn.test.tsx src/components/__tests__/uxFixes.test.tsx src/i18n src/components/settings src/stores` (new: the Advanced button lands on Custom model ID with no way "back") - [x] `npx tsc --noEmit -p .` - [x] `npm run test:rtl -- -g "failed turn"`, screenshots read in English and Arabic, Details closed and open, and the new scene from the card's Advanced button to an opened, focused Custom model ID - [x] `pytest tests/unit/test_app_errors_name_no_command.py tests/unit/test_provider_error_surface_advice.py tests/unit/test_lemonade_error_classification.py hub/agents/gaia/python/tests/test_server_query.py` - [ ] Looked at in the packaged app --------- Co-authored-by: Kalin Ovtcharov <[email protected]>
With a mistyped custom model ID, Settings › Advanced offered "Wrong model loaded. Load no-such-model-xyz-123", a Load button that can only fail. The fix the user needed, Custom model ID, sat closed below the fold. Now that banner only appears when Lemonade actually has the expected model. Custom model ID is also a jump target, so a failed-turn card can open Settings straight to it.
Refs #7861. The card's button is added in #7729, which still isn't merged. That PR needs to call
jumpToSetting({ section: 'advanced', target: '[data-settings-target="custom-model"]' })to close the issue.Test plan
npx vitest run src/components/settingspasses (276), including two new casesnpx tsc --noEmitis cleanno-such-model-xyz-123and save. No "Wrong model loaded" banner or Load button appears, and the Model row still saysExpected: no-such-model-xyz-123.npm run test:rtl)🔍 Technical details
wrongModelinAdvancedSettings.tsxnow also requiresstatus.model_downloaded !== false. When the expected model isn't loaded, the backend (routers/system.pyaround line 711) checks/models?show_all=true. An ID missing from the catalog comes back asmodel_downloaded = false, so a typo'd ID hides the banner.null(unknown) keeps today's behavior.smallContextdescribes the loaded model, so it is left unchanged.targetId="custom-model"is added to the Custom model IDSettingsDisclosure.SettingsDialog'sjumpToSettingpath then opens it, scrolls to it and focuses it, the same waymodel-serverworks.rtl.visual.tsjump check belongs with fix(ui): failed turn names the cause and offers Settings, not a command #7729, where the button that jumps lives.python util/lint.py --allfails Import Validation and Bandit on main. This PR changes no Python. Python unit tests didn't collect on this runner because theresponsesdev dependency is missing.