Skip to content

Feature request: add "auto" thinking mode — show reasoning while streaming, auto-collapse when done #41195

Closed as not planned

Description

@creepermw

Summary

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.

Implementation pointers

  • ThinkingMode enum: packages/tui/src/context/thinking.ts
  • Slash command toggle cycle: packages/tui/src/routes/session/index.tsx (session.toggle.thinking, nextThinkingMode)
  • The stream-complete signal already exists in the session route, so the collapse trigger should be straightforward to wire.

Notes

  • Default can stay hide — no behavior change for existing users.
  • nextThinkingMode cycle would become show → hide → auto → show (or similar).

Activity

  1. github-actions commented on Aug 8, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • 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:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. added
    needs:compliance
    on Aug 8, 2026
  3. github-actions commented on Aug 8, 2026

    @github-actions
    Contributor

    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.

  4. removed
    needs:compliance
    on Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions