[codex] Add Gemini default_api canary tests#25
Draft
gold-silver-copper wants to merge 3 commits into
Draft
Conversation
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
Adds an ignored live Gemini canary for a
default_apitool-call namespace leak in Gemini streaming tool flows.What Changed
tests/providers/gemini/live/default_api.rswith a workspace-like Gemini streaming tool flow.tests/providers/gemini/mod.rs.gemini-3.1-pro-preview, thinking config, a declaredJavaScripttool, aJavaScriptProgramschema viaschema_for!, anExecutorResponse(Result<Value, String>),.default_max_turns(...),.with_history(...), and stream consumption that records reasoning, tool calls, tool results, usage, and final text.Notes
The live canary is ignored by default because it requires
GEMINI_API_KEYand calls the live Gemini API. When run manually, it can expose the namespace leak in Gemini reasoning text, e.g.default_api:JavaScript, even when the structured tool call is correctly namedJavaScript.Validation
cargo fmtcargo test --test gemini streaming_javascript_tool_does_not_surface_default_api_or_empty_final_responsegit diff --check