fix(models): default Cursor fast tier OFF, add picker toggle#23
Merged
Conversation
The variant builder only mapped reasoning/effort params and dropped Cursor's `fast` toggle, so it never reached providerOptions.cursor. Cursor marks the default variant of several models as fast:true (composer-2.5, composer-2, gpt-*-codex), so omitting the param ran the fast tier with no opt-out. Now `fast` defaults off: fast-capable models seed options.params.fast="false" (sent every turn, and pinned into each reasoning variant so picking a reasoning level can't re-enable it), and a `fast` picker variant opts back in. Override per model via provider.cursor.models.<id>.options.params.fast.
Merged
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.
Problem
The variant builder (
buildModelVariants) only mapped reasoning/effort params (/think|reason|effort/) and dropped Cursor'sfasttoggle entirely, so it never reachedproviderOptions.cursor.Cursor's catalog marks the default variant of several models as
fast: true—composer-2.5,composer-2, and thegpt-*-codexline. Because the provider omitted the param, opencode silently ran the fast tier with no way to opt out from the picker.Fix
fastnow defaults off:defaultModelParams()pins non-reasoning boolean params (fast) OFF.options.params.fast = "false"(viatoOpencodeModels+buildModelV2Map), sent every turn through the existingoptions.params→providerOptions.cursor.paramschannelresolveControlsalready reads.fast: "false", so picking a reasoning level can't silently re-enable fast (robust regardless of how opencode merges variant vs. options params).fastpicker variant lets you opt back in.provider.cursor.models.<id>.options.params.fast.No
resolveControlschange required.Deliberate constraint
opencode variants are single-select, so you can't pick
fastand a reasoning level from the picker at once — use staticoptions.paramsconfig for that combo (noted in README).Tests
TDD (tests written and watched fail first):
test/model-variants.test.ts—fastopt-in toggle, default-off, baked-in reasoning variants,defaultModelParams.test/model-discovery.test.ts—toOpencodeModelsseedsoptions.params.test/model-v2.test.ts(new) —buildModelV2Mapseedsoptions.tsc --noEmitclean · 192/192 tests pass ·tsupbuild success.Docs updated (README per-request controls + CHANGELOG Unreleased).