Repository navigation
fix(models): stop model checks from rediscovering providers - #142375
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: blocked before merge. Reviewed September 8, 2026, 3:18 PM ET / 19:18 UTC (Revision 4). ClawSweeper reviewWhat this changesModel selection, capability checks, and probe planning reuse published model inventory instead of acquiring additional provider catalogs. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: current main still needs this repair, and no blocking code defect was established. The previous startup-test finding is resolved; the remaining concern is acceptance of the shipped capability-fallback change. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s prepared model catalog combines configured models and completed provider inventory. Chat selection, subagent validation, and model probes consume its capability facts before choosing or running a model. flowchart LR
A[Configured models] --> C[Published catalog owner]
B[Explicit provider refresh] --> C
C --> D[Model selection]
C --> E[Capability checks]
E --> F[Thinking and image support]
D --> G[Selected session model]
Decision needed
Why: The central workflow is demonstrated, but the submitted evidence explicitly excludes stable upgrades and does not demonstrate the public SDK getter’s changed results. Before merge
Agent review detailsSecurityNone. PR surfaceSource -71, Tests -3, Docs +2. Total -72 across 13 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one published inventory with explicit Refresh, and establish an accepted upgrade path that preserves configured capabilities and makes missing capability recovery understandable. Do we have a high-confidence way to reproduce the issue? Yes: current main falls through to provider-scoped live discovery when selected-model capability facts are missing; the submitted baseline Gateway observations report the corresponding tags/show requests. This review did not execute target code. Is this the best way to solve the issue? Yes for the core repair: reusing the existing catalog owner removes competing acquisition paths while preserving configured settings and route checks. Upgrade acceptance remains separate from code correctness. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dcba0d6c580c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
Proof: A real authenticated Gateway model command saves
|
…#142375) Make ordinary model selection and capability readers consume captured published inventory. Keep explicit Refresh as the acquisition path, preserve native harness reads and temporary owner lifetime, and retire the connected manifest/discovery fallback and duplicate getter. The baseline made two unrequested catalog calls during a normal model selection. The candidate saves the same selection with no catalog or inference calls; explicit Refresh still acquires and publishes capabilities. Validation includes 59 distinct focused controls, the real authenticated Gateway sequence, independent public acceptance, exact-head local review, and required CI. Compiled checkout and source-plugin limits and prior failed proof remain in the PR evidence. Co-authored-by: Ayaan Zaidi <[email protected]>
Avoid full provider module loading during cold session resets. Reuse published catalog owners and leave missing thinking/input facts absent without acquiring temporary inventory; preserve native harness observations and explicit catalog acquisition. Follow up on #142375.
Avoid full provider module loading during cold session resets. Reuse published catalog owners and leave missing thinking/input facts absent without acquiring temporary inventory; preserve native harness observations and explicit catalog acquisition. Follow up on openclaw#142375.
Related: #136257, #125969, #142100.
What Problem This Solves
Fixes an issue where an ordinary session model-selection command started provider discovery even though browsing should use published inventory.
Why This Change Was Made
Turn capability, subagent/hook validation and probe planning read the published catalog. Remove separate live and manifest fallbacks for missing facts, retain catalog ownership through asynchronous projection, and reuse configured rows already captured by visibility policy.
User Impact
Model selection saves the requested model without unrequested discovery. Explicit Refresh still acquires new inventory. Existing route checks, tool refusals and authentication boundaries remain.
Consumers: model selection, capability validation and public cached catalog reads use published facts.
Evidence
A real Gateway reproduced two unrequested discovery calls before the fix. The candidate saved the exact selection with no catalog or inference requests; explicit Refresh then published the model. Fifty-nine focused controls passed. Compiled public-interface checks confirmed passive getters; standalone installation and external inference were not tested.