Gemini CLI Fix Stops Custom Model Aliases From Silently Losing Generation Settings

sayaklearner-prog · ghdev · 2026-11-17

PR #30316 in google-gemini/gemini-cli fixes a subtle bug: applyModelSelection() compared the resolved model (e.g. gemini-2.5-flash-lite) against the requested tier name (flash-lite), and since they weren't string-equal, it falsely treated normal tier resolution as an availability fallback — silently dropping the alias's custom generation parameters like temperature and maxOutputTokens.

The fix distinguishes normal tier resolution from genuine fallbacks and preserves the alias's GenerateContentConfig, with regression tests added.

Original post →

More from coding & agent

coding & agent channel →