Skip to content

[FEATURE]: Config option to show thinking blocks by default #28322

@Russellx2000

Description

@Russellx2000

Problem

Currently, thinking/reasoning blocks in the TUI are collapsed by default. Users must click each block or toggle visibility every session to see the model's chain-of-thought. There is no config option to control this default.

The only related setting is the display_thinking keybind, which defaults to "none" (no key assigned). Even when assigned, the toggle state may not persist across sessions.

Proposed solution

Add a config option (in opencode.json or tui.json) to control the default visibility of thinking blocks:

{
  "display": {
    "thinking": "show"
  }
}

Where "thinking" accepts "show" or "collapse" (default).

Or alternatively, a top-level TUI option:

{
  "show_thinking_default": true
}

Use case

Users who want to always see the model's reasoning without having to click or use a keybind every session. Particularly useful for debugging prompts or understanding why a model made certain decisions.

Additional context

  • The TUI already has a display_thinking keybind to toggle visibility
  • The thinkingOpacity theme property exists for styling
  • This would be the natural third piece: a config option to control default state
  • The state could also be persisted in TuiKV so it remembers the user's last choice

See also: existing thinking-related issues (#20023, #21548, #21997)

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