Skip to content

Revert "Fix single tool calls getting stuck inside thinking parts"#323184

Merged
justschen merged 1 commit into
mainfrom
revert-323059-justin/xurkitree
Jun 26, 2026
Merged

Revert "Fix single tool calls getting stuck inside thinking parts"#323184
justschen merged 1 commit into
mainfrom
revert-323059-justin/xurkitree

Conversation

@justschen

Copy link
Copy Markdown
Collaborator

Reverts #323059

reverting because it ended up flattening some of the items we pulled out of thinking, leading to weird padding changes....trying to find a better fix for this atm.

Copilot AI review requested due to automatic review settings June 26, 2026 18:00
@justschen justschen enabled auto-merge (squash) June 26, 2026 18:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reverts the earlier change that attempted to promote a single tool invocation out of the “thinking” container, after it caused unintended layout/padding regressions in the chat widget.

Changes:

  • Removes the “single tool promotion” bookkeeping and retry-on-complete logic in ChatThinkingContentPart.
  • Reintroduces a guard that prevents restoring a single item when its DOM has multiple child elements.
  • Deletes the regression tests that validated promotion/restoration edge cases for lone tool invocations.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/browser/widget/chatContentParts/chatThinkingContentPart.test.ts Removes regression tests for lone-tool promotion/restoration behaviors.
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.ts Reverts single-tool promotion support by removing original-position tracking/retry logic and restoring the multi-child restore guard.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Low

@justschen justschen merged commit 3b481b0 into main Jun 26, 2026
30 checks passed
@justschen justschen deleted the revert-323059-justin/xurkitree branch June 26, 2026 19:43
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 26, 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.

4 participants