Nightly OSS: gemini-3-flash-preview openai compatible tool call error#3178
Nightly OSS: gemini-3-flash-preview openai compatible tool call error#3178xodn348 wants to merge 1 commit intoopenai:mainfrom
Conversation
… tool call error Nightly Codex produced a focused contribution for openai#2806. Constraint: Automated nightly run; keep changes small and reviewable. Confidence: medium Scope-risk: narrow Tested: See uploaded nightly artifacts and workflow logs. Not-tested: Maintainer CI beyond this workflow.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46bd5d59e9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| if index is None: | ||
| return fallback_index |
There was a problem hiding this comment.
Derive missing tool-call index from stream state
When tool_call_delta.index is None, this helper falls back to the delta’s position within the current chunk, but many OpenAI-compatible streams emit one tool-call delta per chunk, so that fallback is repeatedly 0. In responses that contain multiple tool calls with missing indices, later tool-call argument chunks get merged into tool_calls[0], causing incorrect tool_calls.function.arguments.* events and a corrupted final tool-call snapshot instead of preserving separate calls.
Useful? React with 👍 / 👎.
Automated nightly Codex contribution for #2806.
Verification:
This PR is generated by xodn348/oss-nightly-control and is opened ready for maintainer review when the local nightly verification step succeeds.