Skip to content

fix(ui): honest answers when the user's own model server is down - #8753

Merged
kovtcharov-amd merged 5 commits into
amd:mainfrom
kovtcharov:kalin/rc4-sweep-backend
Nov 22, 2026
Merged

kovtcharov-amd merged 5 commits into
amd:mainfrom
kovtcharov:kalin/rc4-sweep-backend

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Three backend rough edges from the v0.27.0-rc4 sweep, mostly about a model server the user pointed GAIA at:

  • A non-streamed chat on a stopped server you chose waited about 20 s and then said the model "may be loading or briefly busy". It now fails at once with the same "isn't answering" message the streamed path already gives.
  • Settings › Advanced (and every other start hint) told you to start Lemonade from the tray even when GAIA points at your own server at another address, which would start the wrong server. It now names that address and says GAIA doesn't start it. The Agent UI translates the new sentence into Arabic.
  • Setup listed its own models at different sizes than Settings (Gemma 4 E4B 5.56 vs 6.0 GB, Qwen3.6 21.7 vs 23.3 GB). The sizes setup shows now match Settings.

Refs #8703

🔍 Technical details
  • _get_chat_response now 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_hint returns chosen_server_start_hint(url) whenever configured_lemonade_url() is set, before the tray, install and systemctl branches. ErrorNotice.startInstructionText matches 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.
  • Sizes: options[].size_gb and the catalog's full_size_gb use model_choice.download_size_gb (decimal GB). Deliberately unchanged: the remaining-download size_gb that 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.
  • Pinned fixtures that described a chosen server with the tray hint now use the address sentence.

Test plan

  • pytest on 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:rtl
  • python util/lint.py --black --isort
  • Setup journey workflow stays green with the new display sizes
  • Settings › Advanced with a stopped server at a custom address, looked at in English and Arabic (tested, not looked at)

…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
@github-actions github-actions Bot added documentation Documentation changes llm LLM backend changes tests Test changes performance Performance-critical changes labels Nov 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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 gaia config set lemonade_mode gaia …". It gives the address twice and says "start it" right next to "can't start it". This message now always takes the new path, so every person in that mode sees it. Use the plain sentence there, or drop the "Start it (…)" wrapper.

🟡 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
  • src/gaia/llm/lemonade_choice.py:756 external_down_message() runs only when external_mode_active() is true, so configured_lemonade_url() is always set and describe_start_hint() now always returns chosen_server_start_hint(...). It's reached from LemonadeClient (lemonade_client.py:5759) and lemonade_supervisor.py:217. The other wrappers that take the instruction and add their own verb ("restart it (…)" at lemonade_manager.py:1642 and lemonade_supervisor.py:456, "Start it (…)" at sd/mixin.py:1017) have the same doubled wording, though they show it less often.
  • src/gaia/llm/lemonade_launcher.py:390: the new early return comes before the systemctl + ctx_size branch. Callers that pass a size and want a context fix (lemonade_manager.py:453/503/560/988, lemonade_client._start_command_hint, routers/system.py:705 with _MIN_CONTEXT_SIZE) lose that advice for a chosen server. One option is to add the context sentence inside chosen_server_start_hint when ctx_size is given. If you add a new English sentence, the Agent UI's CHOSEN_SERVER_AT match and the Arabic strings need to cover it too.
  • Your known split, "5.6 GB to download" next to a 5.97 GB total, stays as you noted (fix(ui): leave the setup plan's own size figures alone #8243). No change asked.

@kovtcharov-amd
kovtcharov-amd merged commit 37eb3eb into amd:main Nov 22, 2026
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes llm LLM backend changes performance Performance-critical changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants