Gemini CLI fix: explicitly pinned gemini-2.5-flash was silently rewritten to 3.5-flash

TECHIE-TITAN · ghdev · 2026-09-05

A PR in google-gemini/gemini-cli fixes a bug where isFlashModel() used a broad model.endsWith('flash') match to auto-upgrade models to gemini-3.5-flash once 3.5 Flash GA was active, which also caught explicitly pinned gemini-2.5-flash and silently rewrote it — causing ModelNotFoundError on backends like Vertex AI where GA isn't actually available.

The fix narrows isFlashModel() to only match known flash aliases/pointers, not arbitrary pinned model IDs, and removes the equivalent auto-upgrade rule from the experimental dynamic model-config table. Includes a regression test reproducing the original issue; 371 tests pass, lint and typecheck clean.

Original post →

More from coding & agent

coding & agent channel →