Skip to content

[Bug]: Resolved default model google/gemini-3.1-pro-preview cannot be inspected or executed in 2026.6.5 #92009

Closed

Description

@mattsfraser

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

  1. Upgrade to OpenClaw 2026.6.5 with a configuration containing google/gemini-3.1-pro-preview as the default model.
  2. Run openclaw infer model auth status and observe google/gemini-3.1-pro-preview as the resolved default model.
  3. Run openclaw infer model inspect --model google/gemini-3.1-pro-preview.
  4. Observe Model not found.
  5. Run openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only.".
  6. Observe Unknown model.
  7. Run openclaw infer model list | grep -i '"provider":"google"'.
  8. Observe that only google/gemini-2.5-pro is 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

google

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-preview returned Model not found.
  • openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only." returned Unknown 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-preview returned Model not found.
  • 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 provider catalog.

Workaround: change the default model to google/gemini-2.5-pro.

Activity

  1. clawsweeper commented on Jun 10, 2026

    @clawsweeper
    Contributor

    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:

    • The exact failing layer remains unisolated: plugin packaging/activation, provider discovery, or model suppression could each produce the observed declared-versus-exposed catalog mismatch.
    • A fix must verify an installed/package-like build, because source-only unit coverage can pass while the npm-distributed runtime still omits the model.

    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:

    • node scripts/run-vitest.mjs extensions/google/manifest.test.ts
    • node scripts/run-vitest.mjs extensions/google/provider-registration.test.ts
    • Run the package-like build’s openclaw infer model list and confirm google/gemini-3.1-pro-preview is exposed when supported
    • Run the package-like build’s openclaw infer model inspect --model google/gemini-3.1-pro-preview
    • Run the package-like build’s openclaw infer model run --model google/gemini-3.1-pro-preview --prompt "Reply with OK only." with valid Google credentials, redacting secrets

    What I checked:

    • Shipped declaration versus observed runtime: Release v2026.6.5 declares gemini-3.1-pro-preview in the Google static catalog, while the issue’s exact release CLI output exposes only gemini-2.5-pro, proving a concrete declared-versus-packaged/runtime mismatch. (extensions/google/provider-catalog.ts:39, 5181e4f7c82b)
    • Current registration path: The Google provider registration supplies buildGoogleStaticCatalogProvider() as the canonical google provider catalog used by provider discovery and runtime registration. (extensions/google/provider-registration.ts:78, 3d6252a51772)
    • No implemented-on-main fix: The catalog, registration entry point, manifest, manifest tests, and model normalization surfaces have no relevant change from v2026.6.5 to current main, so current main does not provide source provenance for a repair. (extensions/google/index.ts:345, 3d6252a51772)
    • Model suppression invariant: Current tests explicitly require that google/gemini-3.1-pro-preview not be suppressed, reinforcing that omission from the installed native Google catalog is unintended behavior. (extensions/google/manifest.test.ts:81, 3d6252a51772)
    • Provider ownership policy: The scoped extension policy assigns provider catalog selection and vendor-specific behavior to the owning plugin, making the Google plugin the correct repair boundary. (extensions/AGENTS.md:24, 3d6252a51772)
    • Release provenance check: The current-main catalog entry is already present in v2026.6.5, and no distinct post-release implementation change appears on the relevant surfaces; therefore there is no shipped or main-only fix to close against. (extensions/google/provider-catalog.ts:39, 5181e4f7c82b)

    Likely related people:

    • Vincent Koc: The available shallow-history blame ties the current Google static catalog and adjacent provider work to this contributor, making them a useful routing candidate while finer pre-boundary history is unavailable. (role: recent area contributor; confidence: medium; commits: d4fcc3869621, 60e818f563d8; files: extensions/google/provider-catalog.ts, extensions/google/index.ts)
    • Leon GyeongMan Baek: Recent merged history includes Google authentication and diagnostics work in the same plugin, providing adjacent ownership context for packaged Google provider behavior. (role: recent Google plugin contributor; confidence: low; commits: 96e1b8c3ba37; files: extensions/google/oauth.credentials.ts, extensions/google/oauth.test.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2Normal backlog priority with limited blast radius.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    P1High-priority user-facing bug, regression, or broken workflow.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    P2Normal backlog priority with limited blast radius.
    on Jun 11, 2026
  3. self-assigned this
    on Jun 11, 2026
  4. added a commit that references this issue on Jun 12, 2026
    d69282d
  5. joshavant commented on Jun 12, 2026

    @joshavant
    Collaborator

    Thanks for the detailed report, @mattsfraser.

    This is now fixed on main by #92293. The issue was a mismatch between the bundled provider static catalog and the model execution fallback: the Google provider could expose google/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 as Unknown model.

    The merged fix makes infer model run use 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 ran google/gemini-3.1-pro-preview.

    Fixed by #92293.

  6. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.regressionBehavior that previously worked and now fails

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions