Repository navigation
refactor(models): preserve catalog metadata through one normalization path - #130381
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 26, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Model catalogs normalized and projected the same fields independently in several places. These copies drifted: scoped model listing dropped selectable context windows and thinking maps, while agent manifest catalogs dropped image-input policy. Cached rows could also inherit capabilities from a different API endpoint with the same provider/model id.
Why This Change Was Made
Reuse the existing model-field normalizer, derive normalized-row fields from the model contract, and share one dependency-light, allowlisted catalog-entry projection. Keep provider ordering at its existing owner. Use the existing transport matcher before enriching persisted rows, so capabilities stay bound to their physical route.
Discovery, auth, model defaults, persistence formats, and public SDK exports are unchanged. The shared projection does not expose transport headers or authoring metadata.
Production LOC: +55/-126 (net -71). Tests: +71/-3 (net +68). Docs: +2.
User Impact
Agent and CLI catalog paths preserve provider-declared model metadata consistently. Custom endpoints no longer borrow a different route's context limits or reasoning capabilities. This also reduces the number of places future model metadata additions must update.
Evidence
--allZ.AI model views in isolated state. Both listedzai/glm-5.3-flashwith text+image input, context 1048576, and missing=false. Temporary state was removed; no live Gateway or credential changes.Related follow-ups intentionally remain separate: consolidate MiniMax's duplicated model builders; prepare model-policy alias indexes once while preserving distinct policy and selection scopes.