Skip to content

Web UI does not reflect configured reasoning effort from model options #17588

@kdybicz

Description

@kdybicz

Description

When reasoning/thinking effort is configured through model options in opencode.json, the web UI does not reflect that value for a new session.

For example:

{
  "provider": {
    "openai": {
      "models": {
        "gpt-5.4": {
          "options": {
            "reasoningEffort": "high"
          }
        }
      }
    }
  }
}

With this config, requests use the configured effort, but the web UI still shows Default instead of High.

What would I expect

  • when creating a new session, the web UI should reflect the effective configured thinking effort
  • the first user message should persist the corresponding variant
  • refreshing the page should keep showing that same value for the session

What I get

  • a new session shows Default
  • the first user message is sent without a variant
  • after refresh, the session cannot restore the configured effort from message history

This seems to happen because the web UI only considers explicit session/agent variants, but not model-level configured options that map to provider variants.

Plugins

No response

OpenCode version

v1.2.26

Steps to reproduce

  1. Create an opencode.json with a model-level reasoning effort override, for example:
{
  "$schema": "https://opencode.ai/config.json",
  "enabled_providers": ["openai"],
  "model": "openai/gpt-5.4",
  "provider": {
    "openai": {
      "models": {
        "gpt-5.4": {
          "options": {
            "reasoningEffort": "high"
          }
        }
      }
    }
  }
}
  1. Start the web UI with opencode web
  2. Open the web session in the browser
  3. Create a new session
  4. Check the model/thinking effort control in the prompt area
  5. Send the first user message
  6. Refresh the page

Screenshot and/or share link

No response

Operating System

macOS 15.7.4

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

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