Repository navigation
fix(core): share native model defaults with v1 config migration - #45760
Merged
Merged
Conversation
rekram1-node
enabled auto-merge (squash)
August 28, 2026 00:25
rekram1-node
disabled auto-merge
August 28, 2026 00:25
jinhuang712
pushed a commit
to jinhuang712/opencode
that referenced
this pull request
Sep 26, 2026
…alyco#45760) Co-authored-by: rekram1-node <[email protected]>
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.
Summary
V1 model configuration with only
modalities.input,modalities.output, ortool_callpopulated the other capabilities withfalseand empty arrays. This could disable tools or remove supported outputs despite those fields being omitted.tool_call: falseand empty modality arrays. Leave wholly omitted capabilities unset so existing catalog inheritance is unchanged.Regression coverage
Compare complete catalog models through normalization and the real config-provider path, not only schema validity:
This fixes capability defaults; it does not change disabled-variant handling or claim request-level provider compatibility is fully audited.
Validation
bun typecheck --singleThreaded(the parallel compiler hit the shared host thread limit).git diff --checkpass.Requested by: @rekram1-node (Aiden via Slack)