Skip to content

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

Closed as not planned

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

Activity

  1. eloklam commented on Apr 1, 2026

    @eloklam

    same issue

  2. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  3. yangsengui commented on May 8, 2026

    @yangsengui

    same

  4. github-actions commented on Jul 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  5. Stihotvor commented on Aug 21, 2026

    @Stihotvor

    same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions