Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 7, 2026, 7:15 AM ET / 11:15 UTC. Summary PR surface: Source +1062, Tests +1363, Docs +142, Config +7, Generated 0, Other +10. Total +2584 across 46 files. Reproducibility: no. bug reproduction is applicable for the feature itself. The current merge blocker is source-reproducible: Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land only after maintainer acceptance of the public SDK surface, a clean rebase/merge conflict resolution, and refreshed current-head live catalog proof; otherwise narrow the change back to provider-local catalog repair. Do we have a high-confidence way to reproduce the issue? No bug reproduction is applicable for the feature itself. The current merge blocker is source-reproducible: Is this the best way to solve the issue? Unclear as a merge-ready solution: the owner-boundary shape is plausible and uses a generic SDK seam, but it is not currently mergeable and the public API/default-output change needs maintainer acceptance plus current-head proof. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 66b91d78feb3. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +1062, Tests +1363, Docs +142, Config +7, Generated 0, Other +10. Total +2584 across 46 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Land-ready proof for Summary:
Local proof:
Autoreview:
Crabbox proof:
CI:
Known proof gap:
|
Summary
openclaw/plugin-sdk/provider-catalog-live-runtime, a public SDK route for provider plugins that can discover live model catalogs from a provider/modelsAPI.models list --all --provider ...so provider runtime catalog hooks are tried before stale static manifest rows when the provider has a live runtime catalog.How it works
Provider plugins keep static catalog rows as canonical metadata and fallback. A provider with a model-list API can call
buildLiveModelProviderConfig(...)for OpenAI-style model IDs, orgetCachedLiveProviderModelRows(...)/fetchLiveProviderModelRows(...)when it needs to project richer API rows into OpenClaw model definitions.The SDK helper performs an SSRF-guarded fetch, composes caller abort signals with a bounded timeout, builds provider/discovery auth headers, parses OpenAI-style
{ data: [...] }and top-level array bodies by default, releases guarded fetch resources, caches successful live rows by provider/endpoint/credential with a bounded process-local TTL cache, throws structuredLiveModelCatalogHttpErrorfor HTTP fallback handling, and falls back to provider-owned static rows when live discovery is unavailable.OpenAI stays scoped to the
openaiprovider id; Azure hook aliases remain hook aliases only. OpenCode Go is marked runtime-discovered so model browsing loads the plugin runtime instead of stopping at the stale two-row manifest catalog. xAI OAuth discovery uses the Grok CLI proxy/v1/modelsendpoint. Chutes preserves its bounded token/fallback cache while using the SDK fetch route. DeepInfra, Venice, Vercel AI Gateway, NVIDIA, and OpenCode Go share the guarded live-model fetch path while retaining provider-specific parsing.Maintainer decision surface
Landing this PR intentionally publishes the new
openclaw/plugin-sdk/provider-catalog-live-runtimesubpath as a plugin SDK contract and intentionally lets authenticated live catalogs win over static rows for provider-filtered model listing when a provider has a runtime catalog hook. Static fallback remains available when live discovery is unavailable.Verification
node scripts/run-vitest.mjs extensions/openai/openai-provider.test.ts extensions/xai/index.test.ts extensions/opencode-go/index.test.ts src/commands/models/list.provider-catalog.test.ts src/commands/models/list.source-plan.test.ts src/commands/models/list.list-command.forward-compat.test.ts src/plugin-sdk/provider-auth-runtime.test.ts src/plugin-sdk/provider-catalog-live-runtime.test.ts src/plugin-sdk/provider-catalog-shared.test.ts extensions/deepinfra/provider-models.test.ts src/plugin-sdk/qa-runner-runtime.integration.test.tscorepack pnpm plugin-sdk:api:checkcorepack pnpm run lint:tmp:no-raw-channel-fetchgit diff --check upstream/main..HEADcorepack pnpm openclaw models list --all --provider openai --jsoncorepack pnpm openclaw models list --all --provider xai --jsoncorepack pnpm openclaw models list --all --provider opencode-go --json8221079caf2bfc05e34e2f6f889d82b1ee5a2e70for OpenAI OAuth, xAI OAuth, and OpenCode Go auth, using the PR checkout's provider catalog mappers for the model-list calls. Current PR head90c49c85fec1a4045e1dfb8d58524bfc0c01836dis an empty CI-rerun commit on top of that code, so the tested code is identical. Credential values, account/profile IDs, local paths, and process details are redacted.Real behavior proof
Behavior addressed: provider plugins now have a reusable SDK route for live model discovery, bundled providers with model-list APIs use it, and user-facing
models listreaches runtime catalog hooks instead of stopping at stale static manifest rows.Real environment tested:
8221079caf2bfc05e34e2f6f889d82b1ee5a2e70; current PR head90c49c85fec1a4045e1dfb8d58524bfc0c01836dis an empty CI-rerun commit.fc7007e82b983bbdbc77818ef877eb767b8a3ac7, runrun_4d0150612794, for public unauthenticated live providers.Sanitization applied before posting: token values, bearer headers, account IDs, auth profile IDs, email/account text, local filesystem paths, raw machine targets, and process identifiers are omitted or redacted. Logs preserve provider names, endpoint URLs, HTTP statuses or command exit status, durations, returned counts, auth modes, and model IDs.
Exact steps or command run after this patch:
Evidence after fix:
{ "codeHead": "8221079caf2bfc05e34e2f6f889d82b1ee5a2e70", "currentPrHead": "90c49c85fec1a4045e1dfb8d58524bfc0c01836d", "currentPrHeadNote": "empty CI-rerun commit; code is identical to codeHead", "focusedVerification": [ { "command": "node scripts/run-vitest.mjs <focused model catalog files>", "exitCode": 0 }, { "command": "corepack pnpm plugin-sdk:api:check", "exitCode": 0, "result": "OK docs/.generated/plugin-sdk-api-baseline.sha256" }, { "command": "corepack pnpm run lint:tmp:no-raw-channel-fetch", "exitCode": 0 }, { "command": "git diff --check upstream/main..HEAD", "exitCode": 0 } ], "cliModelList": [ { "provider": "openai", "command": "corepack pnpm openclaw models list --all --provider openai --json", "exitCode": 0, "count": 3, "available": 0, "keys": ["openai/gpt-5.4", "openai/gpt-5.4-mini", "openai/gpt-5.5"] }, { "provider": "xai", "command": "corepack pnpm openclaw models list --all --provider xai --json", "exitCode": 0, "count": 5, "available": 0, "keys": [ "xai/grok-4.20-beta-latest-non-reasoning", "xai/grok-4.20-beta-latest-reasoning", "xai/grok-4.3", "xai/grok-build-0.1", "xai/grok-composer-2.5-fast" ] }, { "provider": "opencode-go", "command": "corepack pnpm openclaw models list --all --provider opencode-go --json", "exitCode": 0, "count": 18, "available": 18, "keys": [ "opencode-go/deepseek-v4-flash", "opencode-go/deepseek-v4-pro", "opencode-go/glm-5", "opencode-go/glm-5.1", "opencode-go/hy3-preview", "opencode-go/kimi-k2.5", "opencode-go/kimi-k2.6", "opencode-go/mimo-v2-omni", "opencode-go/mimo-v2-pro", "opencode-go/mimo-v2.5", "opencode-go/mimo-v2.5-pro", "opencode-go/minimax-m2.5", "opencode-go/minimax-m2.7", "opencode-go/minimax-m3", "opencode-go/qwen3.5-plus", "opencode-go/qwen3.6-plus", "opencode-go/qwen3.7-max", "opencode-go/qwen3.7-plus" ] } ], "liveEndpointCatalog": [ { "provider": "openai", "testedCode": "PR checkout extensions/openai/openai-provider.ts", "auth": "oauth", "profileId": "<redacted>", "endpoint": "https://chatgpt.com/backend-api/codex/models?client_version=1.0.0", "httpStatus": 200, "durationMs": 329, "bodyShape": "{models:[]}", "rawRows": 5, "baseUrl": "https://chatgpt.com/backend-api/codex", "api": "openai-chatgpt-responses", "mappedCount": 4, "ids": ["gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.3-codex-spark"] }, { "provider": "xai", "testedCode": "PR checkout extensions/xai/provider-catalog.ts", "auth": "oauth", "profileId": "<redacted>", "endpoint": "https://cli-chat-proxy.grok.com/v1/models", "httpStatus": 200, "durationMs": 195, "bodyShape": "{data:[]}", "rawRows": 2, "baseUrl": "https://cli-chat-proxy.grok.com/v1", "api": "openai-responses", "mappedCount": 2, "ids": ["grok-composer-2.5-fast", "grok-build"], "hasComposer25": true }, { "provider": "opencode-go", "testedCode": "PR checkout extensions/opencode-go/provider-catalog.ts", "auth": "api-key", "profileId": "<redacted>", "endpoint": "https://opencode.ai/zen/go/v1/models", "httpStatus": 200, "durationMs": 198, "bodyShape": "{data:[]}", "rawRows": 18, "baseUrl": "https://opencode.ai/zen/go/v1", "api": "openai-completions", "mappedCount": 18, "ids": [ "deepseek-v4-pro", "deepseek-v4-flash", "glm-5", "glm-5.1", "hy3-preview", "kimi-k2.5", "kimi-k2.6", "mimo-v2-omni", "mimo-v2.5", "mimo-v2-pro", "mimo-v2.5-pro", "minimax-m2.5", "minimax-m2.7", "minimax-m3", "qwen3.5-plus", "qwen3.7-max", "qwen3.7-plus", "qwen3.6-plus" ] } ] }Crabbox public-provider live catalog proof:
Observed result after fix: focused tests passed, SDK API metadata is current after merging
main, no conflict markers/whitespace issues remain, OpenAI/xAI/OpenCode Go model-list commands return the expected OpenClaw row shape, OpenAI OAuth maps 4 live Codex/ChatGPT models, OpenCode Go returns 18 available live rows, and xAI OAuth live/v1/modelsreturnsgrok-composer-2.5-fastthrough the PR provider catalog mapper.What was not tested: authenticated completion calls for every discovered model were not run; this proof is scoped to live model-list discovery and OpenClaw catalog row mapping.