Repository navigation
🪑 fix: Keep Gemini Function Calls in Place During Fallback Replay - #735
Conversation
|
Review head: |
|
@codex review the latest head, final review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #725. Supersedes #726. Thanks to @roman-redl for the live reproducer and the in-place replay approach.
Gemini grounding can wrap client function calls between a native
toolCallandtoolResponse. Fallback replay used to append those calls after the native response. Keep them in their original slots using the parsed calls and stored signatures. Reserve explicit IDs first, then fill ID-less slots by name in parsed order. Drop unmatched native mirrors and append unused parsed calls. Leave exact replay and cross-providertool_usededuplication unchanged.Regression coverage includes complete and split responses, repeated and mixed IDs, unmatched mirrors, unused calls, signatures, and cross-provider history.