Skip to content

image/pdf tool: 'Unknown model' for every provider, while the same models work as agent models (2026.5.28 and 2026.6.5) #92104

Closed

Description

@apiluguin

Versions: reproduced on 2026.5.28 (e932160) and 2026.6.5 (5181e4f), Linux x64, node 22.22.2, gateway as systemd user service.

Symptom: every pdf (and image) tool call fails with:

pdf failed: All image models failed (2): google/gemini-3.5-flash: Unknown model: google/gemini-3.5-flash | anthropic/claude-opus-4-8: Unknown model: anthropic/claude-opus-4-8

while the same model ids work fine as the default agent model and as explicit --model runs, and openclaw models list shows them all as text+image with auth yes:

anthropic/claude-opus-4-8   text+image 1024k  no  yes  default,configured
google/gemini-3.5-flash     text+image 1024k  no  yes  configured
openai/gpt-5.5              text+image 195k   no  yes  configured

Config permutations tried (same failure in all five):

  1. Stock setup: alias entries in agents.defaults.models + a custom models.providers.google entry for gemini-3.5-flash.
  2. Explicit agents.defaults.imageModel = { "primary": "google/gemini-3.5-flash", "fallbacks": ["anthropic/claude-opus-4-8"] } — the tool uses this list (failure order changes accordingly) but still reports Unknown model for both.
  3. Custom models.providers removed entirely (models present in the bundled catalog).
  4. agents.defaults.models alias map removed entirely.
  5. Both removed.

Possibly-related observation: with an alias entry present and models.providers absent, an explicit agent run produces a more informative variant of the same resolver error:

FailoverError: Unknown model: google/gemini-3.5-flash. Found agents.defaults.models["google/gemini-3.5-flash"], but no matching models.providers["google"].models[] entry. Add { "id": "gemini-3.5-flash" } to models.providers["google"].models...

i.e. an agents.defaults.models entry appears to shadow the bundled catalog for that resolver. Restoring the models.providers entry fixes explicit agent runs — but never the image/pdf tool, which fails regardless of whether the model is catalog-native, provider-defined, or both.

So the media-understanding tool path appears to resolve models against a registry instance that sees neither the bundled catalog nor models.providers — same shape as #66758 (ollama) and #65450, but affecting first-party anthropic/google/openai models.

Happy to run any debug build or provide verbose logs.

Activity

  1. clawsweeper commented on Jun 11, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    Current main now resolves bundled provider static-catalog models through the shared async resolver used by image/PDF understanding, addressing the reported divergence between model listing and execution. The implementation merged after v2026.6.6 and is not yet in a release.

    I found the merged PR that appears to have closed this: #92293: Fix provider static model fallback resolution.

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Review details

    Best possible solution:

    Keep the merged shared provider static-catalog fallback as the canonical resolution path and retire the older overlapping issue-specific PR rather than maintaining a second media-only capability repair.

    Do we have a high-confidence way to reproduce the issue?

    Yes at source level. The reported configurations map directly to the media resolver's static-catalog fallback path, and the merged fix includes live proof of the same visible-in-catalog but unknown-at-execution failure class plus focused regression coverage.

    Is this the best way to solve the issue?

    Yes. Fixing bundled provider static-catalog resolution in the shared async resolver is narrower and more maintainable than adding a media-only fallback, and it benefits every caller using the same resolution contract.

    Security review:

    Security review: This is issue triage without a proposed patch requiring a dedicated security review.

    AGENTS.md: found and applied where relevant.

    What I checked:

    Likely related people:

    • joshavant: Authored merged PR Fix provider static model fallback resolution #92293 and the current shared provider static-catalog fallback implementation. (role: recent resolver contributor; confidence: high; commits: da4671ebccfb; files: src/agents/embedded-agent-runner/model.ts, src/agents/embedded-agent-runner/model.static-catalog.ts, src/agents/embedded-agent-runner/model.test.ts)
    • shakkernerd: Authored the preceding shared resolver and media-understanding structure that the provider static fallback extends. (role: adjacent resolver contributor; confidence: medium; commits: 34a1102506d8; files: src/agents/embedded-agent-runner/model.ts, src/media-understanding/image.ts)

    Codex review notes: model internal, reasoning high; reviewed against 8d9ce35b92c4; fix evidence: merged PR #92293, commit da4671ebccfb, main fix timestamp 2026-06-12T11:14:00-05:00.

  2. added
    P2Normal backlog priority with limited blast radius.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    on Jun 13, 2026
  3. added a commit that references this issue on Jun 17, 2026
    85fb250
  4. 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

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions