Repository navigation
fix(cli): inspect the agent model catalog without readding excluded rows - #142367
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 2:22 PM ET / 18:22 UTC (Revision 3). ClawSweeper reviewWhat this changesMakes model listing, inspection, and provider counts use the selected agent’s prepared catalog, with regression coverage and CLI documentation. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still rebuilds the excluded inventory. No actionable correctness or security defects were found, and the reported compiled-CLI observations cover the changed behavior. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s model catalog combines eligible plugin models and configured model details for an agent. The inference CLI reads that catalog to display models, inspect individual entries, and summarize providers. flowchart TD
A[Agent selection and configuration] --> B[Prepared model catalog]
C[Eligible plugin models] --> B
B --> D[Sort catalog entries]
D --> E[Model listing]
D --> F[Single model inspection]
D --> G[Provider counts and state]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -14, Tests +16, Docs +2. Total +4 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep model inspection as a read-only projection of the canonical agent catalog, preserving configured details and existing provider-state reporting. Do we have a high-confidence way to reproduce the issue? Yes, from source: a prepared catalog that excludes a manifest row is expanded again by current main’s inspection helper. The PR reports the corresponding compiled-CLI discrepancy; this review did not execute it. Is this the best way to solve the issue? Yes. Removing the redundant merge reuses the existing catalog owner and preserves selection, sorting, details, and command handling without adding another policy path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8128b418f050. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Landed the canonical model inspection repair. Proof: Compiled CLI checks confirm matching catalog/list membership, correct provider counts, preserved authored metadata, and the expected excluded-model/unknown-agent errors. All 76 focused tests pass. Independent source-blind acceptance passed six clauses and one fresh nonce command. Exact-head CI 34257732624, attempt 1, passed.
Authored model details, agent selection, sorting, empty output, and saved config bytes are preserved. The existing status-help wording also passes. No live inference or credential-readiness claim is made. Fresh exact-head local review found no code or security issue (proof A, patch B). |
…ows (openclaw#142367) Use the selected agent's prepared catalog for model listing, inspection, and provider counts. Remove the independent manifest merge that restored excluded models while preserving authored metadata, agent selection, sorting, and existing errors. Verified with compiled CLI baseline/candidate observations, focused regression tests, and exact-head CI. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #136257, #141859.
What Problem This Solves
Fixes an issue where model inspection commands showed manifest models excluded from the selected agent’s prepared catalog. One configuration listed three models normally but 292 through inference inspection.
Why This Change Was Made
Use the prepared catalog directly for model listing, inspection and provider listing. Remove the extra manifest load and merge while preserving selected-agent scope, sorting, model details and provider flags.
User Impact
Inspection commands agree with model listing and retain authored metadata, empty output and existing errors.
Consumers: inference model list, inspect and provider commands use prepared inventory.
Evidence
Compiled command-line checks returned the same three models, or four with an authored row, and matching provider counts. Excluded-model inspection and unknown-agent selection retained their errors; configuration bytes were unchanged. Three regressions failed before the fix and 76 focused tests passed. No external inference or operator credentials were used.