Repository navigation
Commit 6fe6ced
committed
fix(opencode): show Reasoning selector for OpenCode models
OpenCode previously exposed its reasoning effort as a 'Variant'
option and only when a model advertised variants. Models without
variants (including custom models and several first-party providers)
showed only the Agent chip, leaving the composer with no reasoning
control while Codex/Grok/Cursor all offer one.
Add a Reasoning descriptor for all OpenCode models: keep the stored
'id' as 'variant' for compatibility but label it 'Reasoning', and
synthesize standard levels (low/medium/high/xhigh) when a model
advertises no variants so the TraitsPicker always has a primary
select to render. Provide the same fallback capabilities for custom
models and update the saved-option label for unavailable models.
This restores parity with other providers and makes the selected
effort visible in the composer footer (e.g. 'Medium · Build').1 parent c742edd commit 6fe6ced
2 files changed
Lines changed: 36 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
175 | 198 | | |
176 | 199 | | |
177 | 200 | | |
178 | 201 | | |
179 | 202 | | |
180 | 203 | | |
181 | 204 | | |
182 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
183 | 215 | | |
184 | 216 | | |
185 | 217 | | |
| |||
201 | 233 | | |
202 | 234 | | |
203 | 235 | | |
204 | | - | |
| 236 | + | |
205 | 237 | | |
206 | 238 | | |
207 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments