Repository navigation
Description
Environment
- OpenClaw 2026.6.10 (npm package; gateway self-reports
v2026.6.1in logs) - Node v22.22.2, Ubuntu, systemd
--userservice - Providers affected:
minimax,nvidia(NVIDIA NIM)
Summary
On gateway start, model-registry logs model catalog load issue: Invalid models.json schema for the auto-fetched per-agent plugin catalogs (agents/<agent>/agent/plugins/{minimax,nvidia}/catalog.json). Validation fails because the fetched catalog entries declare input modalities (video, audio) that the models.json schema does not allow — its input enum is effectively limited to text / image. The offending model entries are dropped, so an agent whose primary model is one of them silently falls back.
Exact errors (gateway journal)
[agents/model-registry] model catalog load issue: Invalid models.json schema:
- providers.minimax.models.1.input.2: must be equal to constant
- providers.minimax.models.1.input.2: must match a schema in anyOf
File: .../agents/commander/agent/plugins/minimax/catalog.json
Invalid models.json schema:
- providers.nvidia.models.3.input.2: must be equal to constant
- providers.nvidia.models.3.input.2: must match a schema in anyOf
File: .../agents/commander/agent/plugins/nvidia/catalog.json
Offending data (from the fetched catalog.json)
| Provider | Model id | input (fetched) |
Rejected value |
|---|---|---|---|
| minimax | MiniMax-M3 |
["text","image","video"] |
video |
| nvidia | microsoft/phi-4-multimodal-instruct |
["text","image","audio"] |
audio |
OpenClaw's own static model defs use ["text","image"] / ["text"] (e.g. dist/models-*.js: input: supports?.vision === true ? ["text","image"] : ["text"]), i.e. the schema enum is effectively {text, image}, but the catalog-fetch path introduces audio/video.
Impact
- Startup warning on every affected agent.
- The invalid model entry is dropped from the validated catalog → an agent whose primary is that model falls back. Observed:
[model-fallback/decision] requested=minimax/MiniMax-M3 candidate=minimax/MiniMax-M2.7 reason=unknownMiniMax-M3is the primary for several agents in our setup.
Reproduction
- Configure
minimaxand/ornvidiaproviders and let OpenClaw fetch their catalogs. - Restart the gateway; observe
Invalid models.json schemaforMiniMax-M3/microsoft/phi-4-multimodal-instruct.
Root cause
Inconsistency between (a) the catalog-fetch normalization, which carries provider-reported audio/video modalities, and (b) the models.json input schema, which only permits text/image.
Suggested fix (any of)
- Extend the models.json
inputmodality enum to includeaudioandvideo(and treat unknown modalities leniently), or - Normalize/clamp fetched
inputto the supported set during catalog fetch (drop unsupported modalities instead of failing validation), or - Make schema validation non-dropping for unknown
inputvalues (warn + keeptext/image) so primaries are not silently downgraded.
Note for others hitting this
Editing the cached agents/*/agent/plugins/*/catalog.json to drop video/audio is only temporary — the active agent re-fetches and reverts on restart, so it is not a durable workaround.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 26, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 26, 2026, 11:12 AM ET / 15:12 UTC.
Summary
Keep open: current main and v2026.6.10 still let the session model registry reject generated plugin catalog rows containing
audioorvideoinputs, even though adjacent config and catalog surfaces already preserve those modalities. The issue is not fixed on main and the older related reports/PRs are closed or only partially cover the remaining generated-catalog path.Reproducibility: yes. from source inspection: a generated catalog row with
input: ["text", "image", "video"]oraudioreachesvalidateModelsConfig, whose schema only allowstextandimage. I did not run a live provider fetch in this read-only review.Root-cause cluster
Relationship:
canonicalCanonical: #97048
Summary: This issue is the clearest current open item for the remaining audio/video input schema rejection in generated plugin catalog loading; older schema reports and PRs are closed or only partially overlap.
Members:
partial_overlap: [Bug]: models.input type union rejects "video" / "audio" — blocks Gemini native multimodal config #20721 - Earlier report covered Zod/type rejection for user config audio/video inputs; current main now accepts that path but still rejects generated plugin catalog shards in the session registry.partial_overlap: Fix model input schema to accept audio and video modalities #20738 - Closed unmerged prior-art PR changed config schema/types but not the current registry validator gap.partial_overlap: fix: allow 'video' and 'audio' in models.input config #20867 - Closed unmerged prior-art PR likewise targeted config schema and Bedrock discovery, not generated plugin catalog loading.partial_overlap: [Bug]: media-understanding silently routes images to user-declared vision models without validating declared capabilities #81525 - Overlaps on capability metadata disagreement causing routing failures, but targets user-declared vision capability validation rather than OpenClaw-generated audio/video inputs.partial_overlap: Bug: Poe image/video-output models are accepted in config but fail at runtime (Nano Banana 400, Veo/Sora fallback) #45655 - Overlaps on richer media modalities and fallback behavior, but focuses on media-output model support rather than input schema validation for fetched catalogs.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
This is a narrow source-reproducible bug with clear likely files and regression coverage; it is not eligible for strict automatic bug intake only because no live or failing-test reproduction was run in this review.
Review details
Best possible solution:
Align the generated plugin catalog validator and model input types with the broader
audio/videocontract, then add a focused regression for a generated plugin catalog shard so OpenClaw-owned refreshes cannot produce rows the registry rejects.Do we have a high-confidence way to reproduce the issue?
Yes from source inspection: a generated catalog row with
input: ["text", "image", "video"]oraudioreachesvalidateModelsConfig, whose schema only allowstextandimage. I did not run a live provider fetch in this read-only review.Is this the best way to solve the issue?
Yes, the best fix is a generic schema/type alignment plus generated-catalog regression coverage. A provider-specific clamp for MiniMax or NVIDIA would leave the split validator behavior in place.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 1cd6f81a46ae.
Label changes
Label changes:
P2: The issue is a normal-priority provider catalog bug with a clear fallback/user-routing impact but no crash or security emergency.impact:auth-provider: The reported failure drops provider model catalog entries and causes model routing/fallback away from the configured primary provider model.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P2: The issue is a normal-priority provider catalog bug with a clear fallback/user-routing impact but no crash or security emergency.impact:auth-provider: The reported failure drops provider model catalog entries and causes model routing/fallback away from the configured primary provider model.Evidence reviewed
Acceptance criteria:
What I checked:
AGENTS.md:1, 1cd6f81a46ae)src/agentsscoped guide was read; it applies to the model registry and catalog tests reviewed here. (src/agents/AGENTS.md:1, 1cd6f81a46ae)ModelDefinitionSchema.inputin the session model registry is still restricted totextandimage; a generated plugin catalog row containingaudioorvideofailsvalidateModelsConfig.Checkbefore parsing models. (src/agents/sessions/model-registry.ts:165, 1cd6f81a46ae)src/agents/sessions/model-registry.ts:413, 1cd6f81a46ae)text,image,video, andaudiofor model definitions, so the remaining failure is a registry/schema drift rather than a product-wide rejection. (src/config/zod-schema.core.ts:373, 1cd6f81a46ae)text,image,audio,video, anddocument, showing another current-main path already expects wider input modalities. (src/agents/model-catalog.ts:345, 1cd6f81a46ae)Likely related people:
src/agents/sessions/model-registry.ts,src/config/zod-schema.core.ts,src/plugin-sdk/provider-catalog-shared.test.ts)packages/model-catalog-core/src/model-catalog-normalize.ts,src/agents/model-catalog.ts)src/config/types.models.ts,src/config/zod-schema.core.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.Pick-cat commentedon Jun 27, 2026
Working on this via a narrow schema/type-alignment fix + regression tests covering the issue's MiniMax-M3 and phi-4-multimodal catalog inputs. PR incoming from fork.
fix(agents): align model input type contract with widened catalog schema
fix(agents): widen ProviderModelConfig.input to the Model.input contract
steipete commentedon Jul 9, 2026
Fixed by #97858.
The session registry now accepts the same known
audio/videocatalog metadata already supported by the public model configuration contract, while projecting runtime LLM inputs back to the existingtext/imageexecution contract. Unsupported-only non-empty rows are not exposed to runtime selection, and explicit empty input lists retain their existing semantics. The regression covers the reported MiniMaxMiniMax-M3video row and NVIDIAmicrosoft/phi-4-multimodal-instructaudio row as separate generated plugin catalog shards.Verification:
tbx_01kx3hzy5pjxnbgpzk137ybt48(Actions run 29022563114): focused registry suite 9/9, core and core-test typechecks, targeted lint, and changelog attribution all passed.run_6a7283abde04: focused registry suite 9/9, core and core-test typechecks, targeted lint, and changelog attribution all passed.run_9cd01e7b3f4c: both generated shards loaded with no registry error and both models remained available with runtime inputs['text', 'image'].git diff --checkpassed.The first Testbox lease remained capacity-queued for 4m35s, so the isolated public-network AWS fallback supplied early proof before the fresh replacement Testbox passed. The test and loader probes used synthetic in-memory API-key values, contacted no provider endpoint, and required no live credentials.
Thanks @zackchiutw for the precise catalog rows, fallback symptom, and reproduction details, and @ly-wang19 for the original patch. Please reopen or file a new issue with a current generated shard if either provider is still rejected after this lands.