Skip to content

chat: refine persistent progress rendering - #337425

Merged
Justin Chen (justschen) merged 10 commits into
mainfrom
agents/persistent-progress-rendering-cleanup
Sep 24, 2026
Merged

Justin Chen (justschen) merged 10 commits into
mainfrom
agents/persistent-progress-rendering-cleanup

Conversation

@justschen

Copy link
Copy Markdown
Collaborator

Summary

  • Enable persistent progress by default with the Weave animation and add Verbose (default) / Not Verbose presentation modes.
  • Collapse compact tool groups in place into expandable summary rows, while keeping single tools in their normal presentation.
  • Align the progress rail, connector hooks, and indentation across reasoning, tools, and answered questions.
  • Keep reasoning headers at Thinking while streaming; promote a single completed heading without duplicating it in the body, and summarize multiple headings when title generation is available.
  • Wait for preview-collapse animations before revealing following content, preserving streaming updates, focus, reduced motion, and virtualization behavior.
  • Hide redundant question-tool progress rows while retaining question controls, answered-question summaries, required approvals, and error states.
  • Fix disposal tracking for pending progress handoffs and add regression coverage, accessibility help, and component fixtures.

Validation

  • npm run typecheck-client — passed.
  • npm run transpile-client — passed.
  • Targeted renderer handoff/lifecycle tests — 17 passed, including three new disposal regressions covering collapse completion, template disposal, and renderer disposal.
  • Targeted ESLint for the renderer, renderer tests, and widget fixtures — passed.
  • Normal commit hygiene hooks — passed.
  • Exercised a thinking-to-answer handoff in an isolated workbench using the local mock model.

Draft follow-ups / known limitations

  • The test persistent progress waits before attaching the group after thinking still expects a group wrapper for a single following tool. It fails with the paused singleton-rendering changes, including before the disposal fix; it is not included in the 17 passing tests above.
  • The broader chat memory check exceeded its 10 MB threshold with +23.53 MB residual growth in one cold iteration across 16 scenarios. That run includes warm-up; further warm-run/baseline validation is still needed.
  • The question-tool approval-to-execution transition needs further verification.
  • Duplicate shell-approval handling and the native-title/custom-hover and workbench ResizeObserver investigations are deferred; this PR does not claim to fix those warnings.

Enable persistent progress by default with verbose and compact tool rendering. Collapse previews before revealing subsequent content, align progress connectors, and avoid duplicate reasoning headings and redundant question-tool rows.

Preserve standalone tool presentation, add rendering fixtures and regression coverage, and fix tracked disposal of pending progress handoffs.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 23, 2026 07:22

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.

Copilot review overview

🟡 Changes recommended

A committed test cannot pass under singleton rendering, and ordinary question-tool failures can be hidden.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Refines chat persistent-progress rendering, making Weave the default and improving compact tool, reasoning, and question presentation.

Changes:

  • Adds Verbose and Not Verbose tool-progress modes with collapsible summaries.
  • Improves reasoning titles, animated content handoffs, alignment, focus, and reduced-motion behavior.
  • Expands accessibility guidance, regression tests, and component fixtures.
File Description
build/​lib/​stylelint/​vscode-known-variables.json Registers progress layout variables.
src/​vs/​workbench/​contrib/​chat/​browser/​actions/​chatAccessibilityHelp.ts Documents new accessible interactions.
src/​vs/​workbench/​contrib/​chat/​browser/​chatProgressConfiguration.ts Defines defaults and verbosity setting.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatContentParts.ts Updates tool-chain context documentation.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatThinkingContentPart.ts Implements summaries, titles, and collapse behavior.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​media/​chatCollapsibleContentPart.css Refines nested collapse styling.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​media/​chatQuestionCarousel.css Aligns answered-question summaries.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​media/​chatThinkingContent.css Styles compact progress groups and connectors.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​toolInvocationParts/​chatToolInvocationPart.ts Uses search-specific tool icons.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatListRenderer.ts Coordinates grouping, suppression, and animated handoffs.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatListWidget.ts Refreshes when verbosity changes.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatWorkingLogo.ts Defaults progress animation to Weave.
src/​vs/​workbench/​contrib/​chat/​common/​constants.ts Adds verbosity configuration constants.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​chatConfiguration.test.ts Tests progress configuration defaults.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​chatContentParts/​chatThinkingContentPart.test.ts Covers summaries, focus, titles, and animation.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​chatListRenderer.test.ts Covers rendering and handoff lifecycle.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​chatWorkingLogo.test.ts Updates default-animation expectations.
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatWidget.fixture.ts Adds visual progress scenarios.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: ad77169b Current: a7a5fd74

The screenshot report exceeds GitHub's comment size limit. View the full report in the workflow summary.

Make Draw and Compact the persistent progress defaults, migrate the retired notVerbose value, and preserve explicit presentation choices.

Capture the confirmation carousel input owner during registration so session teardown never dereferences a disposed widget. Reuse one identical native shell approval without weakening managed approvals, request identity, or cancellation boundaries.

Fixes #337234

Co-authored-by: Copilot <[email protected]>
Keep preceding content and disclosure headers stationary by preserving the transcript's scroll height during collapse. Let subsequent content consume the released space while respecting user scroll intent and auto-scroll holds.

Cover automatic and manual reasoning, tool-chain, and completed-response collapse with regression tests and at-bottom fixtures.

Co-authored-by: Copilot <[email protected]>
Resolve the chat-list test setup conflict for #337425 while preserving both progress-rendering mocks and upstream context-menu coverage.

Co-authored-by: Copilot <[email protected]>
Honor the workbench motion override in collapse-body and compact-header styles while retaining the system reduced-motion fallback. Pin the configured-logo test to an explicit motion context and cover unconfigured system behavior.

Fix the macOS Electron-Unit failures in #337425.

Co-authored-by: Copilot <[email protected]>
Keep completed responses idle instead of repeatedly regrouping hidden tools. Preserve reasoning code, focused tool content, and explicit bottom navigation.

Retain tool failure state in live and restored responses and accessible output, and use MCP source icons consistently.

Refs #337425.

Co-authored-by: Copilot <[email protected]>
@justschen
Justin Chen (justschen) marked this pull request as ready for review September 24, 2026 02:05
@justschen
Justin Chen (justschen) merged commit 6e34610 into main Sep 24, 2026
53 of 54 checks passed
@justschen
Justin Chen (justschen) deleted the agents/persistent-progress-rendering-cleanup branch September 24, 2026 02:56
@vs-code-engineering vs-code-engineering Bot added this to the 1.140.0 milestone Sep 24, 2026
Justin Chen (justschen) added a commit that referenced this pull request Sep 24, 2026
* chat: stabilize collapse scrolling and simplify tool errors

- Prevent completed and stopped responses from retaining empty scroll space by limiting compensation to automatic collapses and bounding it to the viewport.
- Keep readers oriented by anchoring below pinned prompts, waiting for deferred collapse content before cleanup, and consuming existing space during manual expansion instead of briefly clamping the scroll position.
- Avoid adding padding for manual collapses, while preserving scroll-up intent and selection holds.
- Keep failed tool calls visually consistent with normal tool rows: restore the pre-card content renderer and change only the associated neutral error icon.
- Add regression coverage and interactive fixtures for animation-frame stability, lifecycle cleanup, sticky prompts, and live/restored tool errors.

Validation: 678 tests passed with one pre-existing skip; client type-check, targeted ESLint, Stylelint, and whitespace checks passed. Live component checks verified zero header movement during expansion and neutral error icons across dark, light, and high-contrast themes.

Follow-up to #337425.

(Commit message generated by Copilot)

Co-authored-by: Copilot <[email protected]>

* chat: preserve tool failure accessibility and align diff headers

- Preserve denial indicators when suppressing duplicate failure icons, without changing the neutral failed-tool presentation.
- Keep failures distinguishable to screen-reader users by including error reasons and terminal exit codes in response labels and the Accessible View.
- Keep diff totals centered with their disclosure title and use compact chevrons after they move outside the title button.
- Cover live and restored tool states, header geometry at multiple font sizes, and interactive failed/denied examples.

Validation: affected renderer, tool progress, accessibility, response-model, thinking, and chat-list suites passed; client type-check, targeted ESLint, Stylelint, and whitespace checks passed. Live dark/light and narrow-layout checks confirmed aligned counts and 12px compact chevrons.

Refs #337759.

(Commit message generated by Copilot)

Co-authored-by: Copilot <[email protected]>

* chat: make collapse tests use a reachable offscreen position

- Derive the offscreen header target from the preview's measured height instead of assuming the transcript can scroll 600px past it.
- Preserve the exact positioning, visibility, bounded-padding, and anchoring checks while covering both initially visible and offscreen headers.

The full CI stylesheet set makes the 48-tool preview shorter than in a focused run, clamping the old setup to -541px and failing the same two tests in Electron, Chromium, and WebKit.

Validation: reproduced both failures before the change; all 41 collapse-anchoring tests now pass with the full module/stylesheet set in Electron, Chromium, and WebKit, and in the focused Electron runner. Targeted ESLint and git diff --check pass.

Refs #337759.

(Commit message generated by Copilot)

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants