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)
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_thinkingkeybind, 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.jsonortui.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
display_thinkingkeybind to toggle visibilitythinkingOpacitytheme property exists for stylingTuiKVso it remembers the user's last choiceSee also: existing thinking-related issues (#20023, #21548, #21997)