Repository navigation
Closed
Labels
Description
Parent: #738
Why this is first
Effort is currently a provider-wide ProviderInfo.efforts array. Several models reject levels the provider advertises. The existing contract (setReasoningEffort rejects unknown, maybeEmitEffort drops unknown, Claude unknown is a silent default) says we must not advertise a level the selected model will not honour.
Without this, adding Codex ultra or OpenCode --variant as provider-wide lists will send values Luna / big-pickle / grok-4.5 / Haiku reject.
Live mismatches
| Provider | Model | Advertised today | Live supported |
|---|---|---|---|
| Codex | gpt-5.5 (this machine cache) | low medium high xhigh max | low medium high xhigh |
| Codex | gpt-5.6-sol (docs/SDK) | same, no ultra | low medium high xhigh max ultra |
| Codex | gpt-5.6-luna (SDK) | same | low medium high xhigh max, no ultra |
| Grok | grok-4.6 | low medium high xhigh | matches |
| Grok | grok-4.5 | low medium high xhigh | low medium high only |
| Claude | haiku-4-5 | low through max | not effort-capable |
| Kimi | k3 / k3-256k | low high max | matches support_efforts |
| Kimi | kimi-for-coding* | same | no support_efforts in config.toml |
| OpenCode | (all) | none | per-model variants in opencode models --verbose |
Shape
Additive, so existing callers keep working:
interface ModelInfo {
// existing fields...
/** When present, the effort pill uses this instead of ProviderInfo.efforts. */
efforts?: ReasoningEffort[];
}- Picker:
effortOptions(modelInfo.efforts ?? provider.efforts) setReasoningEffort: same lookup; still reject rather than store a dead settingbuildArgs: keep using the provider allow-list intersected with the selected model's list- Switching model: snap stored effort down if the new model does not support it (same idea as
snapPermissionMode) - Profiles: validate effort against the profile's provider+model, not the global union alone
- Tests: grok-4.5 cannot select xhigh; haiku cannot select any effort (pill hidden or empty); Codex luna cannot select ultra once ultra exists
Do not
- Do not invent per-model lists. Copy from the same live CLI caches the catalog comments already cite.
- Do not treat Cursor as in scope: effort is the model id.
Files
electron/providers.js, src/shared/ipc.ts (ModelInfo), electron/services.js setReasoningEffort, src/modelPicker.ts, electron/test/reasoning-effort.test.js, picker tests.
Activity
currentbits commentedon Aug 28, 2026
Shipped on this thread as part of #738.
currentbits commentedon Aug 28, 2026
Shipped additive
ModelInfo.efforts. Picker,setReasoningEffort,buildArgs, and agent-profile validation use the selected model's list when the field is present (including empty), else the provider list. Model switches snap an unsupported stored effort to null.