Skip to content

Add a bounded Thinking panel to Studio chat - #11704

Closed
Biotrioo wants to merge 1 commit into
unslothai:mainfrom
Biotrioo:fix/issue-11703
Closed

Biotrioo wants to merge 1 commit into
unslothai:mainfrom
Biotrioo:fix/issue-11703

Conversation

@Biotrioo

Copy link
Copy Markdown
Contributor

Summary

  • Constrain reasoning output to an independently scrollable panel with a 24rem / 40vh maximum height.
  • Follow streamed tokens inside the panel, pausing when the reader scrolls away from the bottom and resuming at the bottom.
  • Keep long transcripts virtualized against the panel and clarify the existing show / hide control.

Closes #11703

Validation: Not run in this session; the local command runner could not initialize.

@danielhanchen

Copy link
Copy Markdown
Member

Thank you for the PR and for writing up #11703.

Closing this one for now. #11522 recently removed the streaming height cap and inner scroll-follow on purpose, replacing them with a continuous windowed transcript that follows through the thread viewport. This PR brings a capped panel back, and a few parts of it do not hold up:

  1. The min(24rem, 40vh) cap applies whether or not the block is streaming, so a finished or reopened trace stays boxed and "Show full thinking" never shows the full trace.
  2. ReasoningTranscript still calls the thread-level detach() when protecting rows, so scrolling inside the panel can still stop the thread from following, and the reading-anchor logic ends up split across two scroll containers.
  3. There is no test that fails on main; the existing UI contract test only checks the old cap's helper names.

If a bounded panel is still wanted, it would need to build on the #11522 transcript: cap only while streaming, lift the cap when the block is expanded, keep scroll writes going through the thread controller, and add a test that fails without the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add a collapsible, fixed-height Thinking panel in Unsloth Studio chat

2 participants