Repository navigation
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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.
Fixes #230.
A native Gemini reply can contain a truthy
Contentobject withparts=Noneorparts=[]. Explorer currently appends that object to history: the next turn either crashes while pruning images or sends an empty model turn back to Gemini. Treat these replies like missing content and reuse the existing synthetic model text and retry reminder. Valid model content and turn limits retain their existing behavior.Add regression coverage through the real google-genai client with an
httpx.MockTransport. The tests cover omitted parts, empty content withMALFORMED_FUNCTION_CALL, and an empty parts list in both Pro and Ultra, plus missing-content and plain-text controls. They verify successful recovery and the serialized retry request without a device, credentials, or live API calls. Thanks to @swf1996120 for the report and reproduction.Validation on Windows, Python 3.12.13, using the frozen development environment:
uv run --frozen pytest tests/unit/agents/test_explorer_tiers.py -q: 40 passed.ruff format --check .,ruff check .,scripts/quality_ratchet.py,scripts/check_dependency_sources.py, andpyright --project pyright-core.json: passed (run viauv run --frozen).The full deterministic suite was also executed on this branch and on an untouched worktree at
351ca8422f7b5b54e80a9c1ce03a222e02415b6b, using the same environment:There are 82 shared failing tests, mainly missing-credential and mock-provider configuration errors. The four differing test IDs concern background persistence/thread timing or Windows SQLite cleanup, outside this change. Sequential reruns of those four test bodies passed on both checkouts; the SQLite teardown error also reproduced on untouched main. The full suite is therefore not green in this environment. All added cases pass in the full run.
Live Gemini and Android-device execution were not performed. AI-assisted implementation and testing using OpenAI Codex.