You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
image/pdf tool: 'Unknown model' for every provider, while the same models work as agent models (2026.5.28 and 2026.6.5) #92104
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):
Stock setup: alias entries in agents.defaults.models + a custom models.providers.google entry for gemini-3.5-flash.
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.
Custom models.providers removed entirely (models present in the bundled catalog).
agents.defaults.models alias map removed entirely.
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.
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.
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:
Current source implementation: The media-understanding runtime calls resolveModelAsync with bundled static-catalog fallback enabled for its fast, normalized, and post-discovery resolution attempts. (src/media-understanding/image.ts:150, 8d9ce35b92c4)
Shared provider catalog fallback: Current main first checks manifest catalog rows and then bundled provider static catalogs before dynamic discovery, applying configured provider overrides to the resulting model metadata. (src/agents/embedded-agent-runner/model.ts:1570, da4671ebccfb)
First-party image capability coverage: Current regression coverage verifies that stale text-only Anthropic configuration is enriched to text+image capability through the shared resolver. (src/agents/embedded-agent-runner/model.test.ts:2760, da4671ebccfb)
Current-main containment: The fix commit is an ancestor of the reviewed current main SHA 8d9ce35. (da4671ebccfb)
Release provenance: No release tag contains the fix commit. The latest release v2026.6.6 points to 8c802aa and predates the June 12, 2026 merge, so the fix is current-main-only. (da4671ebccfb)
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.
Activity
clawsweeper commentedon Jun 11, 2026
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:
src/media-understanding/image.ts:150, 8d9ce35b92c4)src/agents/embedded-agent-runner/model.ts:1570, da4671ebccfb)src/agents/embedded-agent-runner/model.test.ts:2760, da4671ebccfb)src/agents/embedded-agent-runner/model.static-catalog.ts:280, da4671ebccfb)Likely related people:
src/agents/embedded-agent-runner/model.ts,src/agents/embedded-agent-runner/model.static-catalog.ts,src/agents/embedded-agent-runner/model.test.ts)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.
fix(models): merge input capabilities from bundled catalog when not e…