Skip to content

Bug: TUI shows medium reasoning despite reasoningEffort: high being applied #25126

@pangialernios

Description

@pangialernios

Description

Description

The OpenCode TUI model badge shows openai/gpt-5.5 medium even when the resolved agent config has reasoningEffort: "high" and OpenAI receives the configured reasoning effort.
This appears to be a display/model-label issue rather than a request configuration issue.

Environment

  • OpenCode version: 1.14.30
  • Provider: openai
  • Model: gpt-5.5
  • OS: macOS

Config

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["oh-my-opencode-slim"],
  "provider": {
    "openai": {
      "models": {
        "gpt-5.5": {
          "options": {
            "reasoningEffort": "high",
            "textVerbosity": "low",
            "reasoningSummary": "auto"
          }
        }
      }
    }
  },
  "agent": {
    "orchestrator": {
      "reasoningEffort": "high",
      "textVerbosity": "low",
      "reasoningSummary": "auto"
    }
  }
}

Expected behavior

The TUI should show the effective reasoning effort, e.g.:
openai/gpt-5.5 high
or otherwise indicate that reasoningEffort: high is active.

Actual behavior

The TUI still shows:
openai/gpt-5.5 medium
even after restarting OpenCode.

Verification

opencode debug agent orchestrator shows:

"options": {
  "reasoningEffort": "high",
  "textVerbosity": "low",
  "reasoningSummary": "auto"
},
"variant": "high"

To confirm the option is actually passed through, I temporarily set:
"reasoningEffort": "definitely-invalid"
Then ran:
opencode run "say hi" --agent orchestrator --print-logs --log-level DEBUG
OpenAI rejected the request with:

{
  "error": {
    "message": "Invalid value: 'definitely-invalid'. Supported values are: 'none', 'minimal', 'low', 'medium', 'high', and 'xhigh'.",
    "type": "invalid_request_error",
    "param": "reasoning.effort",
    "code": "invalid_value"
  }
}

The debug log showed OpenCode sent:

"reasoning": {
  "effort": "definitely-invalid",
  "summary": "auto"
}

So reasoningEffort is passed through correctly, but the TUI badge still displays medium.

Possible cause

The TUI may be rendering the model’s default/internal variant label instead of the effective agent/provider reasoningEffort option.

Plugins

oh-my-opencode-slim But this appears reproducible without the plugin by setting reasoningEffort directly in opencode.json.

OpenCode version

1.14.30

Steps to reproduce

  1. Configure OpenAI GPT-5.5 with high reasoning effort:
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openai": {
      "models": {
        "gpt-5.5": {
          "options": {
            "reasoningEffort": "high",
            "textVerbosity": "low",
            "reasoningSummary": "auto"
          }
        }
      }
    }
  },
  "agent": {
    "orchestrator": {
      "model": "openai/gpt-5.5",
      "reasoningEffort": "high",
      "textVerbosity": "low",
      "reasoningSummary": "auto"
    }
  }
}
  1. Restart OpenCode.
  2. Check the TUI model badge.
  3. Run:
    opencode debug agent orchestrator
    It shows:
"options": {
  "reasoningEffort": "high",
  "textVerbosity": "low",
  "reasoningSummary": "auto"
}
  1. The TUI still displays openai/gpt-5.5 medium.
  2. To verify the option is passed through, temporarily set:
    "reasoningEffort": "definitely-invalid"
    Then run:
opencode run "say hi" --agent orchestrator --print-logs --log-level DEBUG

OpenAI rejects the request with:

{
  "message": "Invalid value: 'definitely-invalid'. Supported values are: 'none', 'minimal', 'low', 'medium', 'high', and 'xhigh'.",
  "param": "reasoning.effort"
}

So reasoningEffort is being passed to OpenAI, but the TUI still displays medium.

Screenshot and/or share link

Image

Operating System

macOS 26.4.1

Terminal

macOS terminal, zsh shell

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions