fix(vscode): smooth reasoning block transitions - #13962
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: 3 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (9 files)
Fix these issues in Kilo Cloud Reviewed by grok-4.6 · Input: 319.3K · Output: 28.3K · Cached: 930.8K Review guidance: REVIEW.md from base branch |
marius-kilocode
enabled auto-merge
September 9, 2026 11:12
iscekic
approved these changes
Sep 9, 2026
5 tasks
This was referenced Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Reasoning blocks could flicker during fast responses. The viewport could show a scrollbar briefly, the finished block could jump while collapsing, and a tool that arrived immediately afterward could pop in before the reasoning settled.
Why This Change Was Made
The reasoning viewport now stays capped and in place when streaming ends instead of auto-collapsing. New live parts grow in with the same spring used by the reasoning details, so the reasoning and following tool transition overlap. The streaming follow uses an eased animation frame loop, and the capped viewport hides its scrollbar. Historical reasoning remains collapsed, while streamed blocks preserve their compact-open state across virtualized remounts. A collapsed block without an explicit heading gets a short summary title.
User Impact
Evidence
Focused browser verification used a temporary Storybook scenario rendered through the real sidebar
AssistantMessage:Checks:
bun run compilefrompackages/kilo-vscode/bun run typecheckfrompackages/kilo-vscode/bun run lintfrompackages/kilo-vscode/bun run knipfrompackages/kilo-vscode/bun test src/components/reasoning-heading.test.tsfrompackages/kilo-ui/bun test tests/unit/kilo-ui-contract.test.ts tests/unit/font-size-arch.test.ts tests/unit/agent-manager-arch.test.tsfrompackages/kilo-vscode/