Skip to content

feat(tui): add minimal thinking mode with click-to-expand#27623

Merged
nexxeln merged 9 commits into
devfrom
emdash/thinking-minimal-u451e
May 15, 2026
Merged

feat(tui): add minimal thinking mode with click-to-expand#27623
nexxeln merged 9 commits into
devfrom
emdash/thinking-minimal-u451e

Conversation

@nexxeln

@nexxeln nexxeln commented May 14, 2026

Copy link
Copy Markdown
Member

summary

  • new tri-state thinking mode (show / minimal / hide) replacing the boolean thinking_visibility kv key
  • in minimal, reasoning streams in fully, then collapses to ▶ Thought for 12s ~2s after finishing
  • click the line to expand ( indicates the expanded/collapsible state), click again to collapse
  • legacy thinking_visibility migrates on first read: true → show, false → hide
  • /thinking slash command cycles show → minimal → hide
  • OPENCODE_EXPERIMENTAL_MINIMAL_THINKING=1 forces minimal for the process
  • v2 debug session view (/session.v2.messages) now honors the thinking mode too (previously ignored visibility entirely)
  • historical sessions snap straight to collapsed; only freshly-finalized reasoning gets the 2s grace

testing

  • bun typecheck passes in packages/opencode
  • manual flows to validate: stream→grace→auto-collapse, click during grace, click-to-expand from collapsed, click-to-collapse from expanded, mode switching mid-stream, env flag override, legacy kv migration

@nexxeln
nexxeln merged commit f060874 into dev May 15, 2026
4 checks passed
@nexxeln
nexxeln deleted the emdash/thinking-minimal-u451e branch May 15, 2026 20:40
zenoda pushed a commit to zenoda/opencode that referenced this pull request May 16, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
WarGloom added a commit to WarGloom/opencode that referenced this pull request Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant