Cap Gemini CLI below 0.45 and prefer newest model version#149
Merged
Conversation
Gemini CLI 0.45 introduced a "Gemini 3.5 Flash GA" router that rewrites any forced flash model id (e.g. databricks-gemini-3-5-flash) to Google's canonical gemini-3.5-flash, which the Databricks AI Gateway rejects as an invalid Unity Catalog endpoint name. 0.44.x passes the configured model through verbatim and works. - Cap the supported Gemini version below 0.45 and check it on every launch (a too-new build runs but misbehaves, so it's a correctness blocker). - Warn and offer a y/n downgrade to the latest working release rather than forcing it; honor --skip-upgrade by warning without prompting. - Steer update prompts toward the newest version below the broken ceiling instead of npm's `latest` tag, which points at the broken line. Adds published_versions() and latest_version_below() helpers. - Order discovered Gemini models newest-version-first so default_model() launches gemini-3.5-flash rather than gemini-2.5-flash. Codex and the generic discovery path keep their alphabetical default. - Re-enable the e2e Gemini launch test with a version-aware skip. Co-authored-by: Isaac
AarushiShah-db
approved these changes
Jun 10, 2026
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.
Gemini CLI 0.45 introduced a "Gemini 3.5 Flash GA" router that rewrites any forced flash model id (e.g. databricks-gemini-3-5-flash) to Google's canonical gemini-3.5-flash, which the Databricks AI Gateway rejects as an invalid Unity Catalog endpoint name. 0.44.x passes the configured model through verbatim and works.
latesttag, which points at the broken line. Adds published_versions() and latest_version_below() helpers.Co-authored-by: Isaac