Skip to content

feat(tui): add off mode for thinking blocks - #46234

Open
yauhenifutryn wants to merge 1 commit into
anomalyco:devfrom
yauhenifutryn:fix/tui-hide-thinking-completely
Open

feat(tui): add off mode for thinking blocks#46234
yauhenifutryn wants to merge 1 commit into
anomalyco:devfrom
yauhenifutryn:fix/tui-hide-thinking-completely

Conversation

@yauhenifutryn

@yauhenifutryn yauhenifutryn commented Aug 30, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #40671

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds an opt-in off state to the persisted TUI thinking display mode. /thinking now cycles show -> hide -> off -> show. Unlike collapsed hide, off removes the complete reasoning subtree, including live spinners, completed headers, opaque placeholders, bodies, and spacing. Model reasoning, stored parts, provider streams, and transcript exports are unchanged.

How did you verify your code works?

  • focused OpenTUI test: 11 passed
  • full packages/tui suite: 199 passed, 1 skipped, 0 failed
  • TUI typecheck, Prettier, and standalone macOS ARM64 build passed
  • isolated tmux test loaded the same copied session database in both modes: hide rendered 25 visible Thought tokens; off rendered 0 Thought and 0 Thinking tokens

Screenshots / recordings

TUI capture comparison from the same 120-row tmux viewport:

hide:  25 visible Thought labels
off:    0 Thought labels, 0 Thinking indicators

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

[FEATURE]: Add Zen mode to hide thinking blocks completely

1 participant