Description
OpenAI's reasoning_options for GPT-5.6 family models (gpt-5.6, gpt-5.6-terra, gpt-5.6-luna, gpt-5.6-sol) include max as a valid reasoning_effort value, but OpenCode only exposes efforts up to xhigh.
The versionedGpt5ReasoningEfforts function in transform.ts returns OPENAI_GPT5_2_PLUS_EFFORTS for all versions >= 2, which caps at xhigh. GPT-5.6+ models need an additional max tier.
Expected behavior
When selecting a GPT-5.6 family model, the reasoning effort selector should include: none, low, medium, high, xhigh, max.
Actual behavior
The selector only shows up to xhigh. The max effort variant is missing.
Steps to reproduce
- Configure OpenAI provider with a GPT-5.6 model (e.g. gpt-5.6-terra)
- Open the reasoning effort selector
- Observe
max is not available
Additional context
OpenAI API reference for gpt-5.6-terra shows:
"reasoning_options": [{
"type": "effort",
"values": ["none", "low", "medium", "high", "xhigh", "max"]
}]
Description
OpenAI's
reasoning_optionsfor GPT-5.6 family models (gpt-5.6, gpt-5.6-terra, gpt-5.6-luna, gpt-5.6-sol) includemaxas a validreasoning_effortvalue, but OpenCode only exposes efforts up toxhigh.The
versionedGpt5ReasoningEffortsfunction intransform.tsreturnsOPENAI_GPT5_2_PLUS_EFFORTSfor all versions >= 2, which caps atxhigh. GPT-5.6+ models need an additionalmaxtier.Expected behavior
When selecting a GPT-5.6 family model, the reasoning effort selector should include:
none,low,medium,high,xhigh,max.Actual behavior
The selector only shows up to
xhigh. Themaxeffort variant is missing.Steps to reproduce
maxis not availableAdditional context
OpenAI API reference for gpt-5.6-terra shows: