Repository navigation
Conversation
Contributor
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
5 of 7 tasks
This branch has not been deployed
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.
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a developer replays a Gemini tool turn through the Responses API and loses its signed reasoning state
http://localhost:4000/v1/responsesusing Gemini with thinking and a toolAfter: the same tool turn preserves its text signature when replayed
http://localhost:4000/v1/responsesusing Gemini with thinking and a toolRelevant issues
Fixes #43011
Local verification
The two affected Responses transformation test files pass: 239 tests. The regression follows a serialized Responses message through tool-history replay into the Gemini request and checks both signed and unsigned text, preserving whitespace
Running the added test against the merge base
f4308bc1gives one failure and one pass. The signed case fails because the outgoing text part lacksthoughtSignature. Restoring this fix makes both cases passRuff and
git diff --checkpass. The affected module has the same diagnostic counts as the merge base under basedpyright and the type discipline checkerPre-Submission checklist
Type
Bug Fix
Caveats
Low
Final Attestation