Repository navigation
fix(lemonade): restart on GAIA's port, timeout key, gaia llm errors - #5166
Conversation
…fusal After GAIA's Lemonade Server stopped (idle timeout or any stop), the next start resolved to the default port 13305: a client used whatever other Lemonade answered there, and with nothing there the daemon's /lemonade/start answered a bare 500, because the supervisor read the owner's started_pid, which #5118 removed. A stopped GAIA server is now always started by the daemon on its recorded port, and a start failure is an actionable error, never a bare 500. `gaia config set lemonade_idle_timeout_minutes N`, the documented command, was always rejected: every lemonade_* key went to the "use my Lemonade" handler. Only the three keys that pick a server go there now; the timeout is an ordinary setting (0 = never, negative or non-numeric refused). `gaia llm` replaced the "Not enough free memory" refusal with generic restart advice and exited 0. The refusal is now shown unchanged and the command exits 1. Any other `gaia llm` failure also exits 1 and prints its own error; the install/start advice is added only when Lemonade really does not answer, so a stalled stream is no longer reported as "not installed".
|
Verdict: Approve with suggestions This PR fixes three bugs found on Strix Halo hardware. After an idle stop, GAIA's own Lemonade now always restarts through the daemon on its recorded port, so it no longer quietly connects to another Lemonade on 13305 or fails with a bare 500. Nothing blocks merge. One small gap remains: when Real-world evidenceThe evidence stage ran the real CLI and daemon at Spot checks of nearby behavior all came back as expected: a call without a token gets 401, 🔍 Technical details🟢 Minor
Strengths
|
…tand-in address The install/start advice probed the default address, where another Lemonade can answer once GAIA's own server has stopped. Probe GAIA's recorded server instead, and drop the reimport pylint flagged.
|
Both points taken:
|
The restart port fallback, the `gaia config set lemonade_idle_timeout_minutes` rejection and `gaia llm` hiding the memory refusal were fixed in #5166, so their strict xfails would XPASS and fail against any release carrying it. Drop the markers, the comment calling the CLI command broken, and the "KNOWN BUG" evidence prefix.
The restart port fallback, the `gaia config set lemonade_idle_timeout_minutes` rejection and `gaia llm` hiding the memory refusal were fixed in #5166, so their strict xfails would XPASS and fail against any release carrying it. Drop the markers, the comment calling the CLI command broken, and the "KNOWN BUG" evidence prefix.
After GAIA's Lemonade Server stopped (the idle timeout, or any stop), the next start went to the default port 13305: on one Strix Halo lab host GAIA silently used another Lemonade already there, and on another the daemon answered a bare "Internal Server Error". A stopped GAIA server now always comes back through the daemon on its recorded port, and a failed start says why. Two smaller bugs the same hardware CI pinned are fixed too:
gaia config set lemonade_idle_timeout_minutes N, the command the docs give, is accepted and validated (0 = never) instead of always rejected, andgaia llmshows the "Not enough free memory… needs about X GB" refusal word for word and exits 1, rather than generic restart advice and exit 0. Everygaia llmfailure now exits non-zero and prints its own error; the install/start advice appears only when Lemonade really does not answer, so a stalled stream is no longer reported as "not installed".These are the three strict xfails in #5163's
tests/hardware/test_linux_halo_user_issues.py; the markers come off there once this merges.Test plan
pytest tests/unit/test_lemonade_restart_keeps_port.py tests/unit/test_llm_memory_refusal.py tests/unit/test_cli_config.py tests/unit/test_gaia_lemonade_start_path.pyplus the daemon/Lemonade supervisor, service, embedded, choice and manager suites: 826 passed on Windows. Every new test fails onmainbefore this change.python util/lint.py --black --isort