Repository navigation
feat: discover models from live provider catalogs - #112412
Conversation
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat: discover models from live provider catalogs This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Maintainer decision for the ClawSweeper rank-up move: approved.
Compatibility coverage is concentrated in |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat: discover models from live provider catalogs This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
ClawSweeper rank-up disposition for exact head
The latest ClawSweeper artifact reports no review findings and clears the security review. Proceeding through the repository-native prepare and merge gates. |
|
Merged via squash.
|
* feat: discover models from live provider catalogs * fix(provider-catalog): satisfy current catalog contracts * fix(deps): update fast-uri past new advisory * fix(deps): refresh fast-uri shrinkwraps * fix(openrouter): satisfy provider catalog lint * fix(agents): preserve refreshable catalog metadata * test(agents): keep catalog fallback proof within lint budget * fix(provider-catalog): honor live model contracts * fix(minimax): type discovery headers explicitly * docs(plugin-sdk): define live model discovery contract
… catalog consumers Fix openclaw#103532. PR openclaw#112412 introduced refreshable provider discovery mode for Novita (live catalog with static fallback), but every static-authoritative consumer required discovery === 'static' exactly, which filtered out all refreshable manifest rows. - manifest-planner: selection 'static' now accepts 'static' or 'refreshable' - model.static-catalog: refreshable entries no longer gate behind includeRuntimeDiscovery — they ship manifest rows as static fallback - list.manifest-catalog: uses planEffectiveModelCatalogRows with selection 'static', which now includes refreshable rows - novita/index.test: regression test asserts discovery mode is 'refreshable' Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Closes #112405
AI-assisted implementation. No agent transcript is attached.
What Problem This Solves
Users cannot select newly published provider models until OpenClaw ships a static catalog update, even when the configured provider exposes a model-list endpoint using the same inference credentials.
Why This Change Was Made
This adds one guarded, cached live-catalog path for OpenAI-compatible providers and provider-specific adapters where the vendor schema differs. Live chat/text IDs are merged with trusted static metadata, obvious specialist media/embedding models are excluded, and any authentication, network, parsing, or pagination failure retains the provider-owned static catalog.
The provider audit covers all bundled text providers with a usable same-credential list endpoint. Control-plane-only discovery, media-only providers, providers without a working list route, and ClawRouter remain out of scope.
User Impact
Users can see newly available chat/text models through
openclaw models listwithout waiting for an OpenClaw release. Existing known models remain available when live discovery is unavailable. Custom provider base URLs do not send credentials to a fixed vendor catalog endpoint.Maintainer SDK Contract Decision
Approved:
liveModelDiscoveryis a supported public Plugin SDK contract for provider-owned, same-credential model discovery. The contract is documented indocs/plugins/sdk-provider-plugins.mdand covers credential selection, custom/fixed endpoint isolation, the 60-second credential-scoped cache, bounded guarded pagination, conservative chat/text filtering, and static fallback.Focused compatibility coverage lives in
src/plugin-sdk/provider-catalog-live-runtime.test.ts, with provider-specific auth and schema coverage in the affected plugin tests.Current-Main Gate Repair
GHSA-v2hh-gcrm-f6hx temporarily made the required
security-fastgate fail on unchangedmain. The canonicalfast-uri3.1.4 repair is now merged independently onmainvia #112444/#112443. This branch includes that repaired base and no longer carries a dependency graph delta.Evidence
a37420aadceis based on canonicalupstream/main0f066eec811.git diff --check upstream/main...HEADpassed; the Testbox wrapper's final nonzero status came only from the delegated checkout not having anupstream/mainref for that final Git-only command.run_4d11107f0b53: 210 focused tests passed across 13 requested files and 5 Vitest shards, covering the shared catalog runtime and affected provider integrations.novita/moonshotai/kimi-k3present, upstream specialistgpt-image-2-oaiabsent, and repeated listings stable.deepseek/deepseek-chatpresent.pnpm build, all 140 public Plugin SDK subpaths, and Control UI performance budgets.Hosted exact-head CI remains required before merge.