Repository navigation
chat: stabilize streaming progress and wrapped tool summaries - #339944
Merged
Merged
Conversation
Reserve the full height of wrapped compact tool summaries. Align bottom-following progress with rounded list rows, and limit synchronous measurement to the latest anchored response.\n\nAdd regression coverage for streaming, resizing, scrolling, and collapse behavior alongside visual fixtures. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Unresolved progress-alignment gaps need fixes, and native layout and scroll timing require final human validation.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
This PR improves VS Code’s streaming chat layout, aiming to prevent wrapped-summary overlap and progress-indicator movement.
Changes:
- Reserves layout space for wrapped compact tool summaries.
- Aligns persistent progress with rounded row heights while following the bottom.
- Adds geometry regressions and themed interactive fixtures.
| File | Description |
|---|---|
src/vs/workbench/test/browser/componentFixtures/chat/chatScrollAnchoring.fixture.ts |
Adds interactive streaming and scrolling checks. |
src/vs/workbench/test/browser/componentFixtures/chat/chatRendering.fixture.ts |
Adds a themed wrapped-summary fixture. |
src/vs/workbench/contrib/chat/test/browser/widget/chatListWidget.test.ts |
Tests progress positioning during streaming and scrolling. |
src/vs/workbench/contrib/chat/test/browser/widget/chatListRenderer.test.ts |
Tests wrapped-summary geometry and resizing. |
src/vs/workbench/contrib/chat/browser/widget/chatListWidget.ts |
Exposes bottom-scroll state to rendering and styling. |
src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts |
Calculates progress-position rounding offsets. |
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css |
Reserves summary height and applies progress alignment. |
build/lib/stylelint/vscode-known-variables.json |
Registers the rounding-offset CSS variable. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Account for the exact fractional bottom-alignment offset in fixture spacing checks without relaxing other gaps. Include the validated pending-row, completion-catch-up, and incremental-rendering follow-ups with regression coverage. Co-authored-by: Copilot <[email protected]>
Use the computed footer translation for shared spacing checks, including MCP startup before alignment is applied. Reject invalid offsets and keep in-flow gap checks exact. Co-authored-by: Copilot <[email protected]>
Derive the sample array element type from the measurement helper so strict type checking handles writes inside the async retry callback. Co-authored-by: Copilot <[email protected]>
Use the provider's live shell count so ongoing background commands remain visible instead of falling back to the inactivity message. Preserve transcript-based detection for providers without this state and avoid double-counting shell activity. Co-authored-by: Copilot <[email protected]>
Preserve both the upstream progress-mode override and the background-shell count option in the shared renderer test helper. Co-authored-by: Copilot <[email protected]>
Keep the upstream thinking content implementation and adapt the wrapped-summary regression and visual fixture to deterministic step-count titles. Co-authored-by: Copilot <[email protected]>
Preserve native activity and outcomes in compact tool-group headers without utility-model requests. Prioritize edits and commands, show up to three named groups plus remaining steps, and keep failures explicit. Handle raw shell inputs, restored history, and provider-aware resource identities. Coalesce terminal output reflow outside ResizeObserver delivery and cover grouped activity, overflow, and expansion behavior with tests and fixtures. Co-authored-by: Copilot <[email protected]>
Justin Chen (justschen)
marked this pull request as ready for review
October 7, 2026 17:25
Logan Ramos (lramos15)
requested changes
Oct 7, 2026
Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15)
approved these changes
Oct 7, 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.

Summary
Validation
Validated with Node.js 24.18.0.
npm run transpile-client- passed.The following focused test command - 203 passed:
./scripts/test.sh \ --run src/vs/workbench/contrib/chat/test/browser/widget/chatListWidget.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/widget/chatListRenderer.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/widget/chatContentParts/chatThinkingContentPart.test.ts \ --grep 'compact|Persistent tool previews|persistent progress|persistent reasoning|one item gap|reconcileChatItemHeight|scroll-down button|bottom padding'The following ESLint command - passed. The two production TypeScript files were also linted again after the final measurement-scoping change.
npm run stylelint -- src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css- passed; existing advisory design-token suggestions remain.git diff --checkand the commit's pre-commit hygiene hook - passed.Live browser sampling after the final change recorded 0px movement across 57 frames for the progress row, text, and icon while eight paragraphs streamed.
Wrapped-summary fixtures passed dark, light, and both high-contrast stability checks. Bottom-progress fixtures passed dark/light stability and teardown checks.
Local compile limitation
npm run compile-client- blocked by shared dependency versions: the manifest declares Copilot runtime1.0.92-4, while the installed SDK bundles1.0.89-3.node --input-type=module -e "import { compileTask } from './build/lib/compilation.ts'; await compileTask('src', 'out')();"- JavaScript emission succeeded, but the core type-check reported 35 diagnostics in unchanged Agent Host and local transcription files. A clean full compile is not claimed.Manual checks