Repository navigation
fix(ui): honest answers when the user's own model server is down - #8753
Conversation
…er is down With "use my server" pointed at a stopped server, a non-streamed message waited about 20 seconds and then said the model "may be loading or briefly busy", though retrying could never help. It now ends at once with the same words the streamed path gives: the model server at that address isn't answering. Both paths share the one check. Refs amd#8703
… tray With GAIA pointed at a server the user chose (say 127.0.0.1:4328) and that server stopped, Settings › Advanced and setup said to start Lemonade Server from the tray icon. The tray starts the default server, not the one GAIA uses, so the advice could not fix it. A chosen server now gets "The model server GAIA uses is at <address>." followed by the existing "start it the way you usually do" line, on every surface that shows the start hint. Refs amd#8703
Setup listed Gemma 4 E4B at 5.56 GB and Qwen3.6 35B A3B at 21.7 GB while Settings said 6.0 and 23.3 GB. Lemonade's catalog figures are GiB; Settings shows GAIA's decimal GB. amd#8431 switched only models outside setup's own set, on the belief that Lemonade already listed setup's own at GAIA's figures, which not every Lemonade does. Setup's displayed sizes are now GAIA's decimal figures for every model. Only the shown size changed. The memory-fit verdicts and the download total the disk check sums still use the server's figure, as amd#8243 required. Refs amd#8703
The start hint for a server the user chose now names its address, which broke the app's exact-text match: in Arabic the banner and Settings › Advanced showed the English sentence. The app now recognises the address-bearing sentence and words both parts in the app's language, keeping the address as sent. Setup's server-problem fixtures now carry the sentence a chosen server really gets instead of the tray advice it no longer gets, and a backend test checks the app's pattern against the sentences the backend builds. Refs amd#8703
|
Verdict: Approve with suggestions All three fixes do what the description says. A non-streamed chat on a stopped server now fails right away, the start hint names the server the user chose instead of the tray, and setup shows the same model sizes as Settings. The tests pin each one, including that the app's text pattern matches the backend's sentence. Two messages that reuse the new hint now read worse, and the Settings screenshot is still to come. 🟡 The terminal error for a stopped server now argues with itself. When GAIA is set to use your own server and it's down, the error reads roughly: "Your Lemonade Server at … is not answering … Start it (The model server GAIA uses is at 127.0.0.1:4328. GAIA doesn't run this model server, so it can't start it. Start it the way you usually do.), or run 🟡 Too-small-context errors no longer say how to fix the context. If the server you chose is your own Lemonade on this PC, a context-size error used to say "set the context size to N in Lemonade's model settings and reload the model". It now only says to start the server, which does nothing for a server that is already running at the wrong size. Keep the context-size step whenever a size is passed in. 🟡 No screenshot yet of the new Settings › Advanced text in English and Arabic. Your test plan already lists it. Please add it to the PR before merge. 🔍 Technical details
|
Three backend rough edges from the v0.27.0-rc4 sweep, mostly about a model server the user pointed GAIA at:
Refs #8703
🔍 Technical details
_get_chat_responsenow calls the same_refuse_turn_on_stopped_users_server()the streamed path got in fix(ui): a chat fails at once when the model server the user chose is down #8436, before the warm-up wait.describe_start_hintreturnschosen_server_start_hint(url)wheneverconfigured_lemonade_url()is set, before the tray, install and systemctl branches.ErrorNotice.startInstructionTextmatches the address-prefixed form and translates it with an{address}param; a Python test pins the pattern against the backend's output for IPv4, IPv6 and host-name addresses.options[].size_gband the catalog'sfull_size_gbusemodel_choice.download_size_gb(decimal GB). Deliberately unchanged: the remaining-downloadsize_gbthat feeds the disk and fit checks, since fix(ui): leave the setup plan's own size figures alone #8243 reverted that switch after the Setup journey CI stalled. So before download a row can still read 5.6 GB to download against a 6.0 GB total.Test plan
pyteston the touched areas: server-down, start hint and remedy, setup plan and runner, providers router, GPU detection,tests/unit/agents(no failures)npx vitest run src/components/__tests__/ConnectionBanner src/components/settings src/components/__tests__/SetupScreen src/i18n,npx tsc --noEmit,npm run test:rtlpython util/lint.py --black --isort