Repository navigation
fix(lemonade): ask the daemon once per poll while waiting for GAIA's server - #5444
Merged
Merged
Conversation
…server With no GAIA server recorded, each poll of the reconnect wait asked the daemon to start it twice: following an empty record already asks, and the loop asked again when the server was still not answering. That doubled the ensure calls and cloud-key replays for the whole wait. The loop now skips its own ask in a poll where following just made one. Raised in the review of amd#5264.
Contributor
|
Verdict: Approve While GAIA waits for its own model server to come back, each poll used to ask the daemon to start it twice when no server was on record. This PR cuts that to once per poll, which also halves the cloud-key replays during the wait. The fix is small and correct, and the new test fails on Real-world evidenceN/A. No evidence bundle was produced. This is an internal reconnect path inside the LLM client, with no new CLI, API, or UI surface, so the verdict rests on static review plus the PR's unit tests. 🔍 Technical detailsWhy it's correct
Issues found: none. Strengths
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While GAIA waits for its own model server to come back, each 2-second poll asked the daemon to start the server twice when no server was recorded. That doubled the daemon calls and cloud-key replays for up to 60 seconds. Now each poll asks once. This was the remaining open note from the #5264 review; the rest landed in #5282.
Test plan
python -m pytest tests/unit/test_lemonade_restart_wait.py tests/unit/test_lemonade_follows_restart.py tests/unit/test_lemonade_survives_idle_stop.py tests/unit/test_daemon_lemonade.py hub/agents/gaia/python/tests/test_stdio_lemonade_reconnect.py: 336 passed (Windows). The newtest_with_nothing_recorded_each_poll_asks_the_daemon_oncefails onmain.python util/lint.py --black --isort --flake8 --pylint --test-lanes: all pass