Skip to content

[Bug] 404 Model Not Found when spawning sub-agents with google/gemini-3.1-flash-lite-preview #71932

Description

@soumoucookie
  • Description: Using google/gemini-3.1-flash-lite-preview works fine in the main session, but spawning sub-agents or resetting the session results in a 404 status code (no body) error.
  • Analysis: It appears the models/ prefix is missing in the actual request sent to the Google Generative AI API (v1beta), which requires the full resource name (e.g., models/gemini-3.1-flash-lite-preview).
  • Attempted Fix: I tried modifying provider-model-id-normalize.js to force the models/ prefix, but the issue persists, suggesting the prefix is stripped or overwritten in the transport layer.
  • Environment: Windows 10, OpenClaw v2026.4.23.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper: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.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions