Skip to content

fix(ui): say a cloud model needs reconnecting, not downloading - #8209

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
burgulvedant:fix/cloud-model-missing-text
Nov 14, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
burgulvedant:fix/cloud-model-missing-text

Conversation

@burgulvedant

Copy link
Copy Markdown
Contributor

When Lemonade loses a cloud model's key, the next message said the model "isn't downloaded yet", though a cloud model can't be downloaded and the status line before it already says to reconnect it in Settings > Model. The chat now says the model isn't connected and names the provider to reconnect. With Local only on, it says cloud models can't answer instead.

Test plan

  • New unit test for a cloud model that lost its key, with Local only on and off: python -m pytest tests/unit/chat/ui/test_email_query_dispatch.py -q (22 passed)
  • python -m pytest tests/unit/chat/ui -q (3892 passed, 21 skipped)
  • python util/lint.py --black --isort

Closes #7719

When Lemonade lost a cloud model's key, the next message said the model
"isn't downloaded yet", though a cloud model can't be downloaded and the
status line before it already said to reconnect it in Settings > Model.

The chat now says the model isn't connected and names the provider to
reconnect. With Local only on it says cloud models can't answer instead.

Closes amd#7719
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

When a cloud model loses its key, the Email chat now tells people to reconnect the provider instead of saying the model "isn't downloaded yet", which a cloud model never could be. With Local only on, it says cloud models can't answer. The fix is correct, local models keep their old wording, and a test covers both Local only states.

  • Nothing blocks the merge. Two optional follow-ups: rename the helper so its name covers cloud models too, and add a screenshot of the new message to the PR.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review alone. This CI environment couldn't run pytest (the module isn't installed), so the new test was not re-run here; the PR reports 22 passing.

🔍 Technical details

Issues

  • 🟡 Evidence nudge, non-blocking (src/gaia/ui/_chat_helpers.py:2654): this is a chat message users see in the Agent UI, but the PR shows only unit-test output. A before/after screenshot of an Email turn on a cloud model whose key Lemonade dropped would match the rubric. It's a one-string change with a direct test, so this doesn't block.
  • 🟢 Helper name is now too narrow (_chat_helpers.py:2641): _missing_local_model_text now handles cloud models too. Something like _unavailable_model_text would match its new docstring. There is one caller, at line 3011.

Checked

  • cloud_provider_name falls back to _ui_cloud_provider, so cloud ids GAIA learned only from Lemonade's list still get the cloud wording. display_name strips the provider prefix, and the test's "big-model" in content assertion pins that.
  • The function-local import of routers.providers matches the lazy-import pattern that module already uses back into _chat_helpers, so it adds no import cycle.
  • Reconnect does live in Settings › Model (ModelSettings), so the remedy names a real control.
  • Doc drift: the local-model wording is unchanged, and no doc describes the old message for a cloud model.

Strengths

  • It reuses the existing provider and display-name helpers rather than parsing the model id a second time.
  • The test is parametrized over Local only on and off, and asserts that "downloaded" never appears.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 14, 2026
Merged via the queue into amd:main with commit 5619ba9 Nov 14, 2026
38 checks passed
@kovtcharov-amd kovtcharov-amd mentioned this pull request Nov 17, 2026
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.

fix(ui): a cloud model whose key was lost is called "not downloaded"

2 participants