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
{{ message }}
Repository navigation
Feature request: add "auto" thinking mode — show reasoning while streaming, auto-collapse when done #41195
Add a third ThinkingMode value: "auto" — reasoning blocks expand while the model is streaming, then automatically collapse to the single-line header once generation finishes.
Motivation
Currently packages/tui/src/context/thinking.ts only defines "show" | "hide":
show — reasoning is fully visible but stays expanded forever, taking up screen space after the answer is done.
hide — reasoning is collapsed to a header by default; you lose the live "thinking in progress" feedback.
For users who want to watch the model reason during streaming but don't want the reasoning text permanently occupying the conversation after completion, neither mode fits. An "auto" mode would give the best of both: expand-on-stream, collapse-on-finish (similar to the UX in ChatGPT / Cherry Studio / Claude).
Suggested behavior
While a message is streaming and contains reasoning parts → block is expanded.
When the message finishes → block collapses to the single-line header (same rendering as hide mode's collapsed state).
User can still manually expand/collapse the block while it is collapsed.
The title should start with [FEATURE]: for feature requests (e.g., [FEATURE]: add "auto" thinking mode — show reasoning while streaming, auto-collapse when done)
Feature request issues should include the verification checkbox confirming you've searched for existing issues
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
Activity
github-actions commentedon Aug 8, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:for feature requests (e.g.,[FEATURE]: add "auto" thinking mode — show reasoning while streaming, auto-collapse when done)Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
github-actions commentedon Aug 8, 2026
This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.
Feel free to open a new issue that follows our issue templates.