Repository navigation
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Summary
Preserve Gemini function-call thought signatures and call IDs in opaque continuation state, then replay them with tool results for normal, streaming, and deferred interactions. This fixes Gemini 3 tool continuations that previously failed with
400: Function call is missing a thought_signature.Related issue
None
Test plan
just checkENABLE_API_TESTS=1 uv run pytest tests/test_api.py::test_gemini3_tool_call_signature_roundtrip -qENABLE_API_TESTS=1 uv run pytest tests/test_api.py::test_live_tool_calls_conversation_and_reasoning_roundtrip[gemini] -qNotes
Intended for the 2.0.0 RC3 release line. Signatures remain provider-bound and opaque: callers should keep using the untouched Pollux
continuationuntil a pending Gemini tool exchange is complete. Portable application-authored history intentionally does not expose provider signatures.just checkpasses