Repository navigation
refactor: simplify Google, Qwen, and xAI model catalogs - #119627
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 10:23 AM ET / 14:23 UTC. ClawSweeper reviewWhat this changesThe PR replaces repeated Google, Qwen, and xAI model-definition literals with compact provider-local catalog rows and assembly helpers while preserving catalog behavior. Merge readinessNo blocking correctness or security finding. This is a well-scoped, net-negative provider-catalog refactor, but the protected Priority: P3 Review scores
Verification
How this fits togetherBundled provider plugins construct model catalogs that feed provider registration, onboarding, stored model preferences, and routing. This changes only the local construction of those catalog objects. flowchart LR
A[Provider catalog rows] --> B[Catalog assembly]
B --> C[Provider model catalogs]
C --> D[Registration and onboarding]
D --> E[Model selection and routing]
Decision needed
Why: The code review found no defect, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource -247. Total -247 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the provider-local row assemblers and complete the protected-label maintainer review after the exact-head merge and check state is refreshed. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving refactor, so the relevant verification is catalog-output equivalence rather than reproduction of a bug. Is this the best way to solve the issue? Yes: provider-local typed rows and one assembler remove repeated policy while retaining each provider’s ownership boundary and existing public catalog shape. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1b4a60be15a1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: (130 commits) refactor(qa): consolidate scenario runtime helpers (openclaw#119623) fix(telegram): bind Mini App auth to dashboard launches refactor(agent-core): unify session projection and compaction summaries (openclaw#119639) fix(codex): allow natural reactions in the current conversation (openclaw#119649) refactor(providers): deduplicate bundled model catalogs (openclaw#119627) fix(ui): observe the active service worker after asset refresh (openclaw#119622) fix(agents): strip echoed base64 image payloads so photo-heavy turns no longer hit the per-turn output cap (openclaw#119488) improve: make state-heavy test suites faster (openclaw#119617) perf(agents): add concurrency benchmark (openclaw#119569) fix(browser): visibly report failed pairing and tab-sharing actions (openclaw#119526) refactor(lobster): consolidate embedded workflow execution (openclaw#119630) fix(plugin-sdk): stabilize tuple-derived API baseline ordering (openclaw#119635) docs(skills): make full-authority maintainer runs unattended (openclaw#119629) fix(managed-child): honor process groups that vanish before cleanup (openclaw#119614) fix(ci): stop label-driven automation churn (openclaw#119610) fix(media): keep the ttl sweep out of the managed outgoing tree (openclaw#119127) fix(claws): remove owner-qualified skills (openclaw#119606) fix(clawrouter): show stable error for malformed usage responses (openclaw#119580) fix(gateway): claim malformed plugin icon routes (openclaw#119559) fix(telegram): preserve truthful empty-content delivery (openclaw#88810) ...
What Problem This Solves
Bundled Google/Vertex, Qwen, and xAI catalogs repeated the same model-object assembly across 42 entries, increasing maintenance cost and the risk that equivalent provider metadata drifts.
Why This Change Was Made
Replace duplicate provider-owned model literals with typed, provider-local catalog rows and canonical assembly. The change removes 247 production lines (+142/-389) across exactly three files while preserving the existing provider boundaries, configuration, authentication, routing, and public contracts.
User Impact
No user-visible behavior changes: all 42 catalog records remain identical—9 Google/Vertex, 18 Qwen across Token Plan and Standard, and 15 xAI. Model IDs, ordering, object/property shapes, reasoning and input capabilities, context/output limits, pricing, public aliases, OAuth selection, and stored model preferences remain unchanged.
Google and Vertex still share their catalog; input arrays and compatibility objects retain their original independent identities; Qwen plan-specific capabilities and public catalog aliases remain distinct or shared exactly as before; and xAI preserves all four pricing-reference groups, alias resolution, and the Grok Build private maxTokens omission/public default.
Evidence
pnpm check:changedpassed, including production and test extension typechecks, formatting, plugin-boundary and dependency guards, dead-export checks, changed-file lint, database-first guards, and runtime import-cycle checks..agents/skills/autoreview/scripts/autoreview --mode local --engine codex --model gpt-5.6-sol --thinking xhigh; zero accepted/actionable findings, confidence 0.99.