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.
More from coding & agent
- 105 Real Bugs Tested: GPT-6.1 Sol Over 10x Cheaper Than GPT-5.6 Sol — PawelHuryn · 2026-10-23
- Dev builds SkiFree-style sled game in one prompt, praises DeepSeek Flash — victormustar · 2026-10-23
- Every ditched personal agents for a shared Claude Managed Agents coworker in one week — every · 2026-10-23
- WorkOS shows how to let AI agents safely sign up for your app with auth.md and ID-JAG — AI Engineer · 2026-10-23
- Devs on Reddit swap tactics for stopping prompt regressions in AI agents — SleepFlimsy6963 · 2026-10-23
- Claude Code + ComfyUI MCP workflow for client work: paid models or open weights? — newaccount47 · 2026-10-23