Repository navigation
v2.0.5 - Fix thinking effort on wrapped requests (#37)
v2.0.5 - Fix: thinking effort ignored on wrapped requests (#37)
Fixed
- Thinking variant (effort) ignored on wrapped requests (closes #37). In
prepareAntigravityRequest, the backend model (gemini-3.8-flash-{low|medium|high}) was resolved from the name-derived tier before the variant/effort (providerOptions.google.thinkingLevel/generationConfig.thinkingConfig.thinkingLevel) was applied. As a result, wrapped requests — what OpenCode sends — always fell back to-lowregardless of the selected effort. The variant is now extracted and applied before any backend-model resolution, for both wrapped and unwrapped bodies.
| Case | Before | After |
|---|---|---|
wrapped + effort high (providerOptions) |
gemini-3.8-flash-low |
gemini-3.8-flash-high |
wrapped + effort high (generationConfig) |
gemini-3.8-flash-low |
gemini-3.8-flash-high |
| unwrapped + effort high | gemini-3.8-flash-high |
gemini-3.8-flash-high |
Tests
- 2 regression tests added. Full suite: 39/39 files, 1059 passed.
Credit
- Approach inspired by community PR #38 (@Atharva-G1205); landed as a minimal change that keeps the variants design.
What's Changed
- fix(request): apply thinking variant before backend model resolution (#37) by @JoshRob297 in #39
New Contributors
- @JoshRob297 made their first contribution in #39
Full Changelog: v2.0.4...v2.0.5