CLI: include synthetic Codex gpt-5.4 rows in models --all#38696
CLI: include synthetic Codex gpt-5.4 rows in models --all#38696vicjayjay wants to merge 2 commits intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR merges synthetic forward-compat catalog entries (e.g., Key changes:
Issue found: The Confidence Score: 3/5
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2d3ebf0a8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| mergedByKey.set(key, model); | ||
| } | ||
|
|
||
| models = [...mergedByKey.values()]; |
There was a problem hiding this comment.
Preserve auth-based availability for synthetic --all rows
Merging catalog-only entries into models here introduces rows that are not present in availableKeys, but the later --all rendering path still calls toModelRow without allowProviderAvailabilityFallback; per toModelRow’s logic this forces available to false whenever getAvailable() lacks that key. In practice, a synthetic forward-compat model like openai-codex/gpt-5.4 can be usable (auth exists and non---all mode marks it available) yet models list --all will incorrectly report it as unavailable.
Useful? React with 👍 / 👎.
Upstream refactored --all listing into appendDiscoveredRows/appendCatalogSupplementRows and expanded forward-compat tests. Accept upstream's structure since the feature is already covered by the new test suite. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Thanks for the patch. I pulled latest Current
Closing as already in |
Summary
Describe the problem and fix in 2-5 bullets:
openclaw models list --allonly used discovered registry models, so synthetic forward-compat catalog entries likeopenai-codex/gpt-5.4were omitted even though source-level fallback support already existed.models list --allsaw inconsistent Codex OAuth model coverage.models list --allvialoadModelCatalog()andresolveModelWithRegistry(), and update/add tests for theopenai-codex/gpt-5.4path.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
openclaw models list --allnow includes synthetic forward-compat entries likeopenai-codex/gpt-5.4when the catalog exposes them.openclaw models auth login --provider openai-codextest expectations now match the currentgpt-5.4default.Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation:Repro + Verification
Environment
openai-codex/gpt-5.4Steps
openai-codex/gpt-5.4via the source-level model catalog fallback.openclaw models list --all.Expected
models list --allincludes the syntheticopenai-codex/gpt-5.4row.gpt-5.4default.Actual
models list --allcould omitopenai-codex/gpt-5.4, and auth tests still expectedgpt-5.3-codex.Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
src/commands/models/auth.test.tsandsrc/commands/models/list.list-command.forward-compat.test.ts.Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoFailure Recovery (if this breaks)
b2d3ebf0a.src/commands/models/list.list-command.ts,src/commands/models/auth.test.ts,src/commands/models/list.list-command.forward-compat.test.ts.models list --allfor forward-compat catalog entries.Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.modelKey(provider, id)before printing, and the new test covers the syntheticopenai-codex/gpt-5.4path.