#11464: feat(models): add forward-compat fallback for gemini-3-pro-image
agents
stale
Cluster:
Gemini 3.1 Model Enhancements
Added a forward-compat fallback for the google-antigravity/gemini-3-pro-image model using gemini-3-pro-high as a template. This ensures the model is available even if it's missing from the underlying SDK catalog.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds a forward-compat model resolver in `src/agents/pi-embedded-runner/model.ts` to synthesize `gemini-3-pro-image` for the `google-antigravity` / `google-gemini-cli` providers by cloning the first available template model (`gemini-3-pro-high`, then `gemini-3-pro-preview`, then `gemini-3-pro`) from the local `ModelRegistry`. The resolver is invoked in `resolveModel()` after existing Codex and Anthropic forward-compat checks, and before the generic provider-config fallback, so missing catalog entries can still be selected when explicitly requested by ID.
<h3>Confidence Score: 5/5</h3>
- This PR looks safe to merge with minimal risk.
- Change is small and self-contained: it only adds a narrowly-scoped forward-compat resolver for a single model ID and integrates it into the existing resolveModel fallback chain. No behavioral changes occur for other providers/models unless the exact missing ID is requested.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(5/5) You can turn off certain types of comments like style [here](https://app.greptile.com/review/github)!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#22899: fix(models): synthesize antigravity Gemini 3.1 pro high/low models
by Phineas1500 · 2026-02-21
85.8%
#22337: fix(models): add fallback Gemini 3.1 Pro Preview catalog entry
by AIflow-Labs · 2026-02-21
85.6%
#21181: fix(models): add gemini-3.1-pro-preview forward-compat for google-g...
by Mellowambience · 2026-02-19
84.7%
#21263: fix: add google-vertex support for Gemini 3.1 models
by pdd-cli · 2026-02-19
84.4%
#13119: fix: add forward-compat for google-antigravity claude-opus-4-6 models
by sdb001 · 2026-02-10
82.0%
#11882: fix: accept openai-codex/gpt-5.3-codex model refs
by jackberger03 · 2026-02-08
79.6%
#11349: fix(agents): do not filter fallback models by models allowlist
by liuxiaopai-ai · 2026-02-07
78.2%
#10984: OpenClaw lists gemini-2.0-flash but misses gemini-2.5-flash-lite (G...
by jatinb92 · 2026-02-07
78.1%
#21257: # feat: add Gemini 3.1 Pro (low/high reasoning) model support
by GhadiSaab · 2026-02-19
78.0%
#23040: Upgrade default Google model to Gemini 3.1 Pro and add Venice catal...
by Clawborn · 2026-02-21
77.7%