Skip to content

fix(ui): leave the setup plan's own size figures alone - #8243

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:fix/setup-plan-keep-own-sizes
Nov 15, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:fix/setup-plan-keep-own-sizes

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

#8231 merged with its setup journey red on all three platforms: besides the sizes people read, it also swapped the sizes the setup plan computes with for GAIA's larger figures. On a PC with little free disk the recommended model then no longer fits, and setup stays on "Choose your models" instead of moving on to its tests. This puts the plan's own figures back, so setup behaves as it did before #8231; the model picker, Settings and the status line keep the one-size rule.

Test plan

  • pytest tests/unit/chat/ui/test_setup_plan.py tests/unit/chat/ui/test_model_picker_routes.py tests/unit/installer/test_init_progress_json.py tests/unit/chat/ui/test_status_probe_failures.py
  • The "Setup journey" workflow is green on this PR (it failed on fix(ui): show one size for a model and one free-space figure everywhere #8231: "finishing setup without choosing a GPU size changes nothing", stuck on "Choose your models")

Using GAIA's larger figure inside the setup plan changed what fits on a
small disk, so the setup journey stopped at 'Choose your models' on CI.
The one-size rule now covers what people read (the model picker, Settings
and the status line); the plan keeps the sizes it already computed with.
@github-actions github-actions Bot added the tests Test changes label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This puts back the size figures setup works from, so setup stops getting stuck on "Choose your models" on a PC with little free disk. The revert matches the code from before #8231 line for line. Merge once the Setup journey checks go green; they were still pending when I reviewed.

  • Setup and the rest of the app now disagree on model size again, the other way round (follow-up). Setup will list Qwen3.6 at Lemonade's 21.7 while the model picker, Settings and the status line show 23.3. fix(ui): show one size for a model and one free-space figure everywhere #8231 set out to fix exactly this mismatch. Please file a follow-up that fixes setup's sizes and its disk check together, without restoring the stuck screen.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review alone. I couldn't run the unit tests here (pytest isn't installed on this runner), and the Setup journey workflow, which is this PR's real proof, was still pending.

🔍 Technical details

Issues

🟡 Follow-up: setup shows sizes in GiB but compares them to free space in decimal GB (src/gaia/ui/setup_plan.py:160, :442-444, :952-953)
Suggested issue title: "Setup plan sizes are Lemonade's GiB while the picker and Settings show GAIA's GB".

  • What users see: _options, _catalog and remove_model go back to catalog.get(...) / entry["size"], which are GiB. providers.py:557, system.py:719/805 and speech.py:133 still go through model_choice.download_size_gb, which uses decimal GB. So one model shows two sizes depending on the screen, and the "freed X GB" figure after Remove (5.6) won't match the size the picker showed (5.97).
  • Why it matters beyond the label: the disk-short warning ("Free 3.9 GB" in the test) adds up these GiB figures against free space that fix(ui): show one size for a model and one free-space figure everywhere #8231 made decimal GB. Setup can therefore underestimate what a download needs by about 7% and start a download that doesn't fit. Setup behaved this way before fix(ui): show one size for a model and one free-space figure everywhere #8231 too, so it's no reason to block this revert.
  • The likely real fix: let download_size_gb drive the sizes shown, and check whether the Setup journey fixture's free disk was sized to the old figures. The journey failure may be a fixture margin, not a product bug.

Checked

  • model_choice is still used elsewhere in setup_plan.py (lines 45, 146, 393+), so the import isn't left unused.
  • The test changes match the pre-fix(ui): show one size for a model and one free-space figure everywhere #8231 test file exactly, including test_switching_to_gaias_own_changes_the_plan going back to own["download_gb"] > mine["download_gb"].
  • The docs don't name either figure, so nothing there has gone stale.

Strengths

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 15, 2026
Merged via the queue into amd:main with commit 24b2a8f Nov 15, 2026
39 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/setup-plan-keep-own-sizes branch November 15, 2026 05:52
kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Nov 16, 2026
CI on the pull request failed for three reasons. The setup journey was
red because the branch sat on amd#8231, whose setup regression main fixed
in amd#8243; merging main clears it. The other two were this change's own.

- In a cloud chat, the row that says where it runs ran past the panel's
  edge in Arabic with Linux fonts. A row's label now wraps inside the
  panel instead of being held to one line. A new scene checks a cloud
  chat at the panel's narrowest width, which reproduces it on any OS.
- The plan's "3 of 5" count was forced left to right, so in Arabic it
  read "5 of 3". It now takes its language's direction, and the panel
  scenes check that no translated phrase is forced left to right.

The merge also carries main's new "model server isn't answering" row
into the redesigned Environment section, and points main's checks for it
at the section's current row class. The two pixel baselines for the
finished answer are refreshed.

Test plan:
- npm test (4,392 pass; ConnectorsSection.groups focus test flaked once
  under full load and passes alone, as before)
- npm run test:rtl and test:scroll (762 pass)
kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Nov 17, 2026
Setup listed Muse Glimmer 30B as a 19.9 GB download while Settings said
21.4 GB, and Settings › Setup read "Running Qwen3.6-35B-A3B-GGUF ·
local" where every other screen says "Qwen3.6 35B A3B". Setup now shows
the same size and the same name as the rest of the app.

Closes amd#8349
Closes amd#8356

## Test plan

- [x] `python -m pytest tests/unit/chat/ui/test_setup_plan.py
tests/unit/chat/ui/test_model_picker_routes.py
tests/unit/installer/test_init_progress_json.py` — 211 pass, one new
- [x] `npx vitest run
src/components/settings/__tests__/SetupSettings.test.tsx` — 9 pass, one
new; `tsc --noEmit` clean
- [ ] The "Setup journey" workflow is green on this PR (it is what amd#8231
broke and amd#8243 restored)
- [ ] Reviewer: Settings › Setup shows "Running Qwen3.6 35B A3B", and
setup's model list shows Muse Glimmer 30B at 21.4 GB

<details>
<summary>🔍 Technical details</summary>

- Lemonade's catalog lists Muse Glimmer at 19.9 (GiB); GAIA's registry
has 21.36 GB (weights + vision projector + draft). The plan took the
server's figure first.
- Only models outside setup's own set (the profile's models and
`DEFAULT_MODEL_LADDER`) switch to `model_choice.download_size_gb`.
Setup's own models keep the server's size, so the fit checks amd#8243
protected are untouched; Lemonade 2026.44.1 lists those at GAIA's
figures already (23.3, 5.97).
- Not looked at in the app: verified by tests only. The "Installed: n,
size" total on the Setup tab sums the same catalog sizes, so it follows.
</details>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
Setup listed Muse Glimmer 30B as a 19.9 GB download while Settings said
21.4 GB, and Settings › Setup read "Running Qwen3.6-35B-A3B-GGUF ·
local" where every other screen says "Qwen3.6 35B A3B". Setup now shows
the same size and the same name as the rest of the app.

Closes amd#8349
Closes amd#8356

## Test plan

- [x] `python -m pytest tests/unit/chat/ui/test_setup_plan.py
tests/unit/chat/ui/test_model_picker_routes.py
tests/unit/installer/test_init_progress_json.py` — 211 pass, one new
- [x] `npx vitest run
src/components/settings/__tests__/SetupSettings.test.tsx` — 9 pass, one
new; `tsc --noEmit` clean
- [ ] The "Setup journey" workflow is green on this PR (it is what amd#8231
broke and amd#8243 restored)
- [ ] Reviewer: Settings › Setup shows "Running Qwen3.6 35B A3B", and
setup's model list shows Muse Glimmer 30B at 21.4 GB

<details>
<summary>🔍 Technical details</summary>

- Lemonade's catalog lists Muse Glimmer at 19.9 (GiB); GAIA's registry
has 21.36 GB (weights + vision projector + draft). The plan took the
server's figure first.
- Only models outside setup's own set (the profile's models and
`DEFAULT_MODEL_LADDER`) switch to `model_choice.download_size_gb`.
Setup's own models keep the server's size, so the fit checks amd#8243
protected are untouched; Lemonade 2026.44.1 lists those at GAIA's
figures already (23.3, 5.97).
- Not looked at in the app: verified by tests only. The "Installed: n,
size" total on the Setup tab sums the same catalog sizes, so it follows.
</details>
kovtcharov-amd added a commit that referenced this pull request Nov 22, 2026
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

<details>
<summary>🔍 Technical details</summary>

- `_get_chat_response` now calls the same
`_refuse_turn_on_stopped_users_server()` the streamed path got in #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 #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.
</details>

## Test plan

- [x] `pytest` on the touched areas: server-down, start hint and remedy,
setup plan and runner, providers router, GPU detection,
`tests/unit/agents` (no failures)
- [x] `npx vitest run src/components/__tests__/ConnectionBanner
src/components/settings src/components/__tests__/SetupScreen src/i18n`,
`npx tsc --noEmit`, `npm run test:rtl`
- [x] `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)

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants