[Fix] Anthropic Opus 4.7 fails when reasoning is enabled#111
Merged
Conversation
Contributor
Author
|
1 issue outstanding. Action required. See task
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
edelauna
reviewed
May 14, 2026
edelauna
approved these changes
May 15, 2026
8a1884c to
f7bf252
Compare
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
Fixes an issue where users hitting the direct Anthropic provider with
claude-opus-4-7would get a 400 error once reasoning was enabled, because Zoo Code still sent the legacy budget-based thinking payload that Opus 4.7 rejects.Why this change was made
This switches the direct Anthropic Opus 4.7 path to an adaptive reasoning payload and updates the model metadata so the UI treats reasoning as a binary toggle for that provider/model combination. It also strengthens regression coverage at both the provider layer and the VS Code e2e boundary so the outbound request shape is checked directly.
User impact
Anthropic Opus 4.7 reasoning requests now use the payload the provider expects, so enabling reasoning no longer trips the
"thinking.type.enabled"request error on that path. The updated e2e also guards the extension-host wiring so future changes are less likely to regress this again.