Repository navigation
fix(gaia-agent): stop pointing users at the removed lemonade-server CLI - #4181
Conversation
…r CLI When Lemonade was down, the flagship agent told users to run `lemonade-server serve`, a command Lemonade 10.7/10.8 removed. The `GET /v1/gaia/init` hint, run errors, and `/model` errors now use describe_start_hint(), which gives the start step for the user's own install (tray app, macOS app, systemd service, or CLI). SKILL.md's sample /v1/gaia/init response and the scorecard reproduction recipe are updated to match, and the CHANGELOG has an entry.
|
Approve with suggestions This replaces the hard-coded One thing to fix before merge: the Worth knowing: the same dead command is hard-coded in about six places in the email agent (its API errors, its playground page, its SKILL and scorecard). Out of scope for a Real-world evidenceNo evidence bundle was produced for this run, and the PR's own test plan leaves the one item that would prove the fix — checking the readiness hint with Lemonade stopped — unchecked. This change is user-visible copy on an HTTP endpoint and on CLI-facing error output, so the matching evidence is the real request and its response; unit tests gate the string assembly, not what a user sees. Please paste the actual output of that check into the description. My verdict otherwise rests on static review alone. 🔍 Technical detailsIssues🟡 The unreachable branch of else f"(none — {describe_client_hint('pull', target).instruction})"…with 🟡 Missing endpoint evidence — see the visible section. Nits🟢 The appended period lands on a bare command ( 🟢 Shared user-facing helper lives in the stdio transport module ( 🟢 Two env vars in one breath ( Strengths
|
# Conflicts: # hub/agents/gaia/npm/CHANGELOG.md # hub/agents/gaia/python/gaia_agent/server.py
`/model <unknown>` with nothing downloaded still hard-coded
`lemonade-server pull <model>` — the other half of the CLI Lemonade
10.7/10.8 removed, and the same dead end this branch set out to delete.
It now goes through `describe_client_hint("pull", ...)`, which names the
client the host actually has and substitutes the real model id.
Two tests cover it: one pins the resolved wording, one asserts the
unpatched path still substitutes the model name (a legacy install
legitimately resolves to `lemonade-server pull`, so the literal
`<model>` placeholder is the tell, not that command's absence).
|
Fixed the
🔍 Technical detailsFix — Tests — two new cases in
Both fail on the pre-fix line and pass after: The 3 failures the description noted as also failing on Merge — Not addressed here (unchanged from the review): the |
# Conflicts: # hub/agents/gaia/npm/CHANGELOG.md
When a model was missing, GAIA told users to run `gaia download <model>`. The CLI rejects that with exit 2, so the only fix it offered couldn't work. The model-not-found and agent-builder errors now give the pull command for the user's actual Lemonade install, and the image-gen skill no longer tells the model to suggest the removed `lemonade-server pull`. A new guard test fails CI on any runtime string that names `lemonade-server serve`/`pull`, so these can't come back. This covers the part of amd#4216 that no other PR does. The `lemonade-server serve` strings are fixed in amd#3122 (email agent, readiness, provider timeout, TUI, webui README, tests) and amd#4181 (hub gaia agent). The guard lists those files as pending. It fails whichever of those PRs merges second until its entries are removed from the list, which keeps the list from going stale. ## Test plan - [x] `python -m pytest tests/unit/test_remedy_commands_are_runnable.py tests/unit/test_no_removed_lemonade_cli.py tests/unit/test_lemonade_error_classification.py tests/unit/agents/test_builder_model_selection.py -q`: 7 failed on main before the fix, 107 passed after - [x] Neighbouring tests (`test_lemonade_launcher.py`, `test_sd_error_messages.py`, `test_llamacpp_backend.py`, `test_amd_gaia_urls.py`): 197 passed in total - [x] black, isort, and pylint (errors only) are clean on the changed files - [ ] `gaia eval agent`: the model-not-found text is returned as the agent's answer, and the image-gen skill text is shown to the LLM Part of amd#4216 --------- Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
When Lemonade was down, the flagship agent told users to run
lemonade-server serve, a command current Lemonade installs don't have (10.7/10.8 removed it), so the fix it offered was a dead end. The readiness check (GET /v1/gaia/init), run errors, and/modelerrors now give the start step for the user's own install (tray app, macOS app, systemd service, or CLI). SKILL.md's sample response and the scorecard recipe match the new wording.Test plan
pytest hub/agents/gaia/python/tests: 471 pass. 3 fail identically on unmodifiedmain(tool-count checks affected by optional deps in the local venv).test_lemonade_start_hint.pychecks the/v1/gaia/inithint and run errors use the resolved start instruction and never namelemonade-server serve.python util/lint.py --all: black and flake8 pass. isort and pylint findings are all insrc/gaia/tests, which this PR doesn't touch.curl -s http://127.0.0.1:8141/v1/gaia/init | jq .hintshows this machine's start step.