Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
After upgrading to OpenClaw 2026.6.5, a configured default model of google/gemini-3.1-pro-preview was retained in config but was no longer recognized by openclaw infer model inspect or openclaw infer model run, causing Gemini-backed agent responses to fail until the model configuration was manually repaired.
Steps to reproduce
- Upgrade to OpenClaw 2026.6.5 with a configuration containing
google/gemini-3.1-pro-previewas the default model. - Run
openclaw infer model auth statusand observegoogle/gemini-3.1-pro-previewas the resolved default model. - Run
openclaw infer model inspect --model google/gemini-3.1-pro-preview. - Observe
Model not found. - Run
openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only.". - Observe
Unknown model. - Run
openclaw infer model list | grep -i '"provider":"google"'. - Observe that only
google/gemini-2.5-prois present in the native Google model catalog.
Expected behavior
A configured default model should either remain runnable after upgrade or be automatically migrated, removed, or flagged with a clear validation error if the model is no longer supported by the runtime catalog.
Actual behavior
google/gemini-3.1-pro-preview remained configured as the default and resolved default model, but openclaw infer model inspect --model google/gemini-3.1-pro-preview returned Model not found and openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only." returned Unknown model; openclaw infer model list showed only google/gemini-2.5-pro in the native Google model catalog.
OpenClaw version
2026.6.5
Operating system
Linux Mint 22.3 Zena, based on Ubuntu 24.04 LTS
Install method
npm global
Model
google/gemini-3.1-pro-preview
Provider / routing chain
Additional provider/model setup details
Configured default model:
google/gemini-3.1-pro-preview
Observed after upgrade:
openclaw infer model inspect --model google/gemini-3.1-pro-previewreturnedModel not found.openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only."returnedUnknown model.openclaw infer model list | grep -i '"provider":"google"'showed only:
{"id":"gemini-2.5-pro","name":"Gemini 2.5 Pro","provider":"google"}The system was restored by changing the default model to google/gemini-2.5-pro.
Logs, screenshots, and evidence
### Auth status
{
"defaultModel": "google/gemini-3.1-pro-preview",
"resolvedDefault": "google/gemini-3.1-pro-preview"
}
### Model inspection
$ openclaw infer model inspect --model google/gemini-3.1-pro-preview
Model not found
### Model execution
$ openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only."
Unknown model
### Native Google model catalog
$ openclaw infer model list | grep -i '"provider":"google"\|"gemini-3"\|"gemini-2.5"'
{"id":"gemini-2.5-pro","name":"Gemini 2.5 Pro","provider":"google","contextWindow":200000,"reasoning":false,"input":["text"]}Impact and severity
Affected: Users with configurations that still reference google/gemini-3.1-pro-preview after upgrading to OpenClaw 2026.6.5.
Severity: High. The configured default model cannot be inspected or executed, which can prevent agent responses until the model configuration is manually corrected.
Frequency: Observed consistently in this environment.
Consequence: Gemini-backed agents may stop responding because the configured default model is not runnable by the inference runtime.
Additional information
The configuration contained google/gemini-3.1-pro-preview as both the configured default model and the resolved default model.
Observed runtime behavior:
openclaw infer model inspect --model google/gemini-3.1-pro-previewreturnedModel not found.openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only."returnedUnknown model.openclaw infer model listshowed onlygoogle/gemini-2.5-proin the native Google provider catalog.
Workaround: change the default model to google/gemini-2.5-pro.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 10, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 11, 2026, 11:07 AM ET / 15:07 UTC.
Summary
The release and current-main source still share the same Google catalog wiring, so no merged repair currently resolves the reported packaged-runtime mismatch; this remains a credible upgrade regression needing a focused plugin-side fix.
Reproducibility: yes. at source level. The reporter provides a deterministic v2026.6.5 list/inspect/run sequence, and release inspection confirms a concrete mismatch between the model declared by the plugin and the model catalog exposed by the installed runtime.
Next step
This is a bounded shipped regression with a clear Google plugin/catalog boundary, likely files, and deterministic package-like CLI validation.
Review details
Best possible solution:
Make the packaged Google plugin expose one canonical callable model set consistently across list, inspect, and run, with retained-default upgrade coverage and plugin-owned doctor repair only if the model is intentionally retired.
Do we have a high-confidence way to reproduce the issue?
Yes at source level. The reporter provides a deterministic v2026.6.5 list/inspect/run sequence, and release inspection confirms a concrete mismatch between the model declared by the plugin and the model catalog exposed by the installed runtime.
Is this the best way to solve the issue?
Yes in repair boundary, but the exact code change requires a package-like reproduction first. The narrow maintainable solution is to fix Google plugin registration/discovery/packaging or, if support was intentionally removed, add the plugin-owned doctor migration rather than a core fallback.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 3d6252a51772.
Label changes
Label justifications:
P1: The v2026.6.5 upgrade can leave an existing default model unusable and stop Gemini-backed agent responses until manual configuration repair.impact:auth-provider: The defect affects Google provider catalog exposure, model resolution, and configured default routing.Evidence reviewed
Acceptance criteria:
openclaw infer model listand confirmgoogle/gemini-3.1-pro-previewis exposed when supportedopenclaw infer model inspect --model google/gemini-3.1-pro-previewopenclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only."with valid Google credentials, redacting secretsWhat I checked:
gemini-3.1-pro-previewin the Google static catalog, while the issue’s exact release CLI output exposes onlygemini-2.5-pro, proving a concrete declared-versus-packaged/runtime mismatch. (extensions/google/provider-catalog.ts:39, 5181e4f7c82b)buildGoogleStaticCatalogProvider()as the canonicalgoogleprovider catalog used by provider discovery and runtime registration. (extensions/google/provider-registration.ts:78, 3d6252a51772)extensions/google/index.ts:345, 3d6252a51772)google/gemini-3.1-pro-previewnot be suppressed, reinforcing that omission from the installed native Google catalog is unintended behavior. (extensions/google/manifest.test.ts:81, 3d6252a51772)extensions/AGENTS.md:24, 3d6252a51772)extensions/google/provider-catalog.ts:39, 5181e4f7c82b)Likely related people:
extensions/google/provider-catalog.ts,extensions/google/index.ts)extensions/google/oauth.credentials.ts,extensions/google/oauth.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.fix(doctor): warn when resolved default model is not in the catalog
joshavant commentedon Jun 12, 2026
Thanks for the detailed report, @mattsfraser.
This is now fixed on
mainby #92293. The issue was a mismatch between the bundled provider static catalog and the model execution fallback: the Google provider could exposegoogle/gemini-3.1-pro-preview, but the execution path did not consult the provider static-catalog fallback after dynamic discovery missed, so the configured model could still fail asUnknown model.The merged fix makes
infer model runuse the same bundled provider static-catalog source, while keeping the fallback scoped to trusted bundled provider owners. We also verified the fix with a packaged install and a live Google call: the baseline reproduced the failure, and the patched package successfully inspected and rangoogle/gemini-3.1-pro-preview.Fixed by #92293.