Skip to content

track tools inside thinking#308903

Merged
justschen merged 2 commits intomainfrom
justin/pyroar-male
Apr 10, 2026
Merged

track tools inside thinking#308903
justschen merged 2 commits intomainfrom
justin/pyroar-male

Conversation

@justschen
Copy link
Copy Markdown
Collaborator

fixes issue where terminals can get cutoff when thinking

Copilot AI review requested due to automatic review settings April 9, 2026 23:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a UI issue in the chat “thinking” content (fixed-scrolling/collapsed mode) where terminal/tool output can grow without the scroll container updating, causing content to appear cut off.

Changes:

  • Add a dedicated DisposableResizeObserver that watches child elements (thinking markdown, spinner, and per-item wrappers) for resizes during streaming.
  • When child resizes occur, refresh cached scroll height and update scroll dimensions so the scrollable area stays accurate.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.ts Adds child resize observation in fixed-scrolling mode to keep scroll dimensions in sync as tool/terminal output expands.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

…chatThinkingContentPart.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@justschen justschen merged commit afba0a4 into main Apr 10, 2026
26 checks passed
@justschen justschen deleted the justin/pyroar-male branch April 10, 2026 00:00
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 10, 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.

3 participants