You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Note: This is different from #2875, which requests controlling the model's thinking mode. This request is specifically about TUI rendering of thinking blocks, not about toggling the model's thinking behavior.
Current Behavior
The TUI already has a runtime toggle for thinking block visibility (accessible via Ctrl+P → "Toggle thinking blocks" or the /thinking command). However, this preference is not persisted between sessions. Every time you start a new session or restart OpenCode, thinking blocks are shown by default regardless of your previous preference.
Requested Enhancement
Add one or both of the following:
Persist the runtime toggle (similar to how sidebar visibility is persisted using kv store)
When users toggle thinking block visibility via the command palette or /thinking command, save this preference
Apply the saved preference when starting new sessions
Users who prefer a cleaner view without thinking blocks currently have to manually toggle them in every session. The sidebar already has this persistence behavior, so thinking block visibility should work similarly for consistency.
Implementation Notes
The sidebar persistence can be found at packages/opencode/src/cli/cmd/tui/routes/session/index.tsx:110-111 where it uses:
Activity
feat: persist thinking blocks display to KV and indicate its current…
feat: persist thinking blocks display to KV and indicate its current…
feat: persist thinking blocks display to KV and indicate its current…
feat: persist thinking blocks display to KV and indicate its current…
feat: persist thinking blocks display to KV and indicate its current…
feat: persist thinking blocks display to KV and indicate its current…