Skip to content

chat: add opt-in persistent working progress - #336087

Merged
Justin Chen (justschen) merged 10 commits into
mainfrom
agents/enhanced-working-shimmer-animation
Sep 18, 2026
Merged

Justin Chen (justschen) merged 10 commits into
mainfrom
agents/enhanced-working-shimmer-animation

Conversation

@justschen

@justschen Justin Chen (justschen) commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds opt-in persistent chat progress with an animated VS Code logo and broad component-explorer coverage.

One setting

"chat.experimental.persistentProgress": "off"

The single enum defaults to Off, which preserves the original progress UI exactly. Select Weave (weave), Draw (draw), Orbit and Lock (orbit), Accordion (accordion), or Dial Rotation (dial) to enable persistent progress with that animation. For example:

"chat.experimental.persistentProgress": "draw"

The setting is tagged experimental and registered with experiment: { mode: 'auto' }, so the default stays Off while the experiment service can select an animation for a treatment group. Changes apply immediately. Reduced motion keeps enabled persistent progress visible with a static logo. The earlier separate .enabled and .animation settings have been removed.

Progress behavior (enabled)

  • One working indicator at the end of the active response until completion or cancellation — never a second shimmer, including during streaming tools, terminal output, subagent completion notices, questions, confirmations, plan review, worktree creation, and MCP startup.
  • Tool calls render as expanded, headerless chains with tool icons and a connector rail, without an internal scrolling limit. Reasoning is separated into collapsible previews that break the chain; standalone tools keep their icons.
  • Spacing is uniform across chain rows, reasoning previews, markdown, and edit pills.
  • Completed responses still follow chat.agent.collapseCompletedResponses: chain rows count as individual steps in Completed N steps, and the summary gains a +added −removed button (shared with the thinking header pill) that opens the multi-diff editor for the response.
  • The footer DOM and animation are retained across streaming updates. Working phrases refresh on logical activity changes with a minimum dwell time, not per token.
  • Terminal activity animations and rich subagent pills are unchanged.

Logo and fixtures

  • Same three-piece Stable silhouette for Stable blue and Insiders green, with theme colors and high-contrast support.
  • Fixed SVG faces animated through HTML-wrapper transforms and opacity, without per-frame JavaScript or path morphing. Draw traces the pieces counterclockwise and undraws them in the same order and direction.
  • Fixtures cover all thinking styles and setting values, questions, confirmations, plans, terminals, worktree creation, MCP startup, parallel subagents, tool chains, completed-response folding with edit totals, and Off-mode legacy comparisons. Tests cover geometry, ribbon paths, loop seams, reduced motion, disposal, layout preservation, and Off parity.

Toolbar rollback

Removes the three picker-label translateY(1px) offsets introduced in 6230521f531d4a9daab79dac0dc2c53e3b967710, as requested during iteration. Picker functionality and newer spacing changes are preserved.

Validation

The branch includes origin/main at 880d57b8320 (merge 118dc6bd9d8). Conflicts with main's thinking finalization refactor, the new handleRenderedCodeblocks template argument, the renderer test imports, the picker centering assertions, and the fixture widget stubs were resolved without rewriting published history.

  • npm run typecheck-client and repository hygiene (commit hooks enabled): passed.
  • Renderer, configuration, working-logo, and picker suites: 461 passing, 1 existing pending (146 of those exercise persistent/completed/footer behavior).
  • Headless component-explorer sweep of all 642 persistent-progress fixtures (Dark and Light): 642 passing, 0 hung. The MCP autostart fixtures now advance virtual time past the part's 2.5s scheduler instead of timing out and hanging on dispose — this is what stalled the previous "Screenshots & Tests" run for six hours. The legacy fixed-scrolling ExpandedSubagents fixture is dropped because that container reports a ResizeObserver loop independent of this setting; the enabled variant still covers the scenario.

Commits are GPG-signed and verification hooks remain enabled.

Keep a stable progress indicator through thinking, tools and interactive prompts while preserving the collapsed-thinking exception and legacy behavior when disabled. Add configurable VS Code logo motion, regression coverage and live component fixtures. Preserve terminal and rich subagent activity animations, and undo the requested picker-label offsets.

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

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

Two moderate unresolved issues affect accessibility announcements and persistent-progress lifecycle handling.

Get a fresh assessment by requesting another Copilot review.

Review tier: Lite (auto)
Findings: 1 Medium severity

Note

Copilot is running an experiment and ran this review at Lite.

Open findings (1)
What changed in this PR

Adds opt-in persistent chat progress with configurable VS Code logo animations, reduced-motion support, interaction refreshes, fixtures, and tests.

Changes:

  • Adds persistent progress rendering across chat activity states.
  • Adds themed Stable/Insiders logo animations and accessibility updates.
  • Updates fixtures, tests, and picker styling.
File Reviewed change
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatWorkingLogo.fixture.ts Working-logo motion fixtures
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatWorkingLogo.fixture.css Fixture gallery styles
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatWidget.fixture.ts Persistent-progress chat scenarios
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatSubagentContent.fixture.ts Subagent progress scenarios
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatProgressContentPart.fixture.ts Progress-content scenarios
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatFixtureUtils.ts Shared chat fixture helpers
src/​vs/​workbench/​contrib/​chat/​test/​common/​chatColors.test.ts Chat theme-color tests
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​chatWorkingLogo.test.ts Logo geometry and animation tests
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​chatContentParts/​chatSubagentContentPart.test.ts Subagent preservation tests
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​chatContentParts/​chatMcpServersStartingContentPart.test.ts MCP startup tests
src/​vs/​workbench/​contrib/​chat/​test/​browser/​chatIcons.test.ts Progress icon tests
src/​vs/​workbench/​contrib/​chat/​test/​browser/​chatConfiguration.test.ts Configuration tests
src/​vs/​workbench/​contrib/​chat/​test/​browser/​agentSessions/​agentHostChatInputPicker.test.ts Picker layout tests
src/​vs/​workbench/​contrib/​chat/​common/​widget/​chatColors.ts Progress theme colors
src/​vs/​workbench/​contrib/​chat/​common/​model/​chatViewModel.ts Chat progress state
src/​vs/​workbench/​contrib/​chat/​common/​constants.ts Progress configuration constants
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​media/​chatWorkingLogo.css Logo animation and reduced-motion styles
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​media/​chat.css Progress and picker styling
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatWorkingLogo.ts Logo geometry and animation behavior
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatListWidget.ts Configuration refresh integration
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatListRenderer.ts Persistent-progress lifecycle
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​toolInvocationParts/​chatToolStreamingSubPart.ts Tool streaming progress handling
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​toolInvocationParts/​chatToolProgressPart.ts Tool progress integration
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​media/​chatThinkingContent.css Thinking progress styles
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatThinkingContentPart.ts Thinking progress ownership
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatTaskContentPart.ts Task progress handling
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatSubagentContentPart.ts Subagent progress handling
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatProgressContentPart.ts Persistent working row and announcements
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatMcpServersStartingContentPart.ts MCP startup refresh handling
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatMcpServersInteractionContentPart.ts MCP interaction refresh handling
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatMcpAuthenticationContentPart.ts Authentication refresh handling
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​chatContentParts/​chatContentParts.ts Content-part integration
src/​vs/​workbench/​contrib/​chat/​browser/​chatProgressConfiguration.ts Experimental progress settings
src/​vs/​workbench/​contrib/​chat/​browser/​chatIcons.ts Branded progress icons
src/​vs/​workbench/​contrib/​chat/​browser/​chat.shared.contribution.ts Chat feature contribution wiring
src/​vs/​workbench/​contrib/​chat/​browser/​agentSessions/​agentHost/​media/​agentHostModePicker.css Mode-picker styling
src/​vs/​workbench/​contrib/​chat/​browser/​agentSessions/​agentHost/​media/​agentHostChatInputPicker.css Input-picker styling
src/​vs/​workbench/​contrib/​chat/​browser/​actions/​chatAccessibilityHelp.ts Accessibility guidance
build/​lib/​stylelint/​vscode-known-variables.json Stylelint variable definitions

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Use one off-by-default animation enum for persistent progress. Keep approval status and footer ordering correct, preserve progressive reveal after interactions, track MCP authentication completion in the producer and response model, and restore verbose progress announcements.\n\nFix the reduced-motion terminal assertion and the nested MCP test, with configuration, lifecycle, and live-fixture regression coverage.\n\nCo-authored-by: Copilot <[email protected]>
Preserve main's late-subagent thinking-group rebuilds and tool reuse while retaining the persistent footer and approval-state observers. Add regression coverage for all three thinking styles.

Co-authored-by: Copilot <[email protected]>
Persistent progress now honors chat.agent.collapseCompletedResponses: completed
responses fold their expanded tool chains into "Completed N steps", counting
individual chain rows, and the summary gains a shared edit-stats button that
aggregates the response's file changes and opens the multi-diff editor. The
same button backs the thinking-header diff pill.

Also normalizes spacing for edit pills and markdown inside persistent tool
chains, adds a mock editing session so native markdown edit pills render in
tests and fixtures, and marks the setting as experiment-controlled
(default Off) with matching accessibility help and setting descriptions.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 582f8a6c-b5dc-415f-a695-2ed8fdd8effd
Resolve conflicts with main's thinking finalization refactor (carry the
persistent-mode collapse override into finalizeThinkingPart), the new
handleRenderedCodeblocks template argument, and the rebuilt renderer test
imports; adopt main's picker centering assertions and fixture widget stubs.

Also unblock the screenshot job: the MCP autostart fixtures now run virtual
time past the part's 2.5s scheduler instead of timing out and hanging on
dispose, and the legacy fixed-scrolling ExpandedSubagents fixture is dropped
because that container reports a ResizeObserver loop independent of this
setting.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 582f8a6c-b5dc-415f-a695-2ed8fdd8effd
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: b029fb14 Current: fd74cd37

4 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Added (80)

chat/widget/chatWidget/PersistentProgress/CompletedResponses/RestoredCollapsed/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/RestoredCollapsed/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEdits/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEdits/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsExpanded/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsExpanded/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsInProgress/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsInProgress/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsLiveCompletion/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsLiveCompletion/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsNarrow/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithEditsNarrow/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEdits/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEdits/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEditsNarrow/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEditsNarrow/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEditsLiveCompletion/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEditsLiveCompletion/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEditsInProgress/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/WithMarkdownEditsInProgress/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyWithMarkdownEdits/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyWithMarkdownEdits/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/AdditionsOnly/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/AdditionsOnly/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/DeletionsOnly/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/DeletionsOnly/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/ZeroEdits/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/ZeroEdits/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyWithEdits/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyWithEdits/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/SingleToolChain/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/SingleToolChain/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LiveCompletion/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LiveCompletion/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/ExpandedSteps/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/ExpandedSteps/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/ExpandedReasoning/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/ExpandedReasoning/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/InProgress/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/InProgress/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/CollapseDisabled/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/CollapseDisabled/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/EnabledAfterCompletion/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/EnabledAfterCompletion/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/DisabledAfterCompletion/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/DisabledAfterCompletion/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyCollapsed/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyCollapsed/Light

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyExpanded/Dark

current

chat/widget/chatWidget/PersistentProgress/CompletedResponses/LegacyExpanded/Light

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Off/ReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Off/ReducedMotion/Light

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Weave/ReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Weave/ReducedMotion/Light

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Draw/ReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Draw/ReducedMotion/Light

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/OrbitAndLock/ReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/OrbitAndLock/ReducedMotion/Light

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Accordion/ReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/Accordion/ReducedMotion/Light

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/DialRotation/ReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/AnimationStyles/DialRotation/ReducedMotion/Light

current

chat/widget/chatWidget/PersistentProgress/CollapsedThinkingReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/CollapsedThinkingReducedMotion/Light

current

chat/widget/chatWidget/PersistentProgress/ReducedMotion/Dark

current

chat/widget/chatWidget/PersistentProgress/ReducedMotion/Light

current

chat/logoMotion/chatWorkingLogo/DrawComparisonReducedMotion/Dark

current

chat/logoMotion/chatWorkingLogo/DrawComparisonReducedMotion/Light

current

chat/logoMotion/chatWorkingLogo/WeaveComparisonReducedMotion/Dark

current

chat/logoMotion/chatWorkingLogo/WeaveComparisonReducedMotion/Light

current

chat/logoMotion/chatWorkingLogo/ThreePieceStudies/ReducedMotion/Dark

current

chat/logoMotion/chatWorkingLogo/ThreePieceStudies/ReducedMotion/Light

current

chat/logoMotion/chatWorkingLogo/ReducedMotion/Dark

current

chat/logoMotion/chatWorkingLogo/ReducedMotion/Light

current

chat/logoMotion/chatWorkingLogo/FavoritesReducedMotion/Dark

current

chat/logoMotion/chatWorkingLogo/FavoritesReducedMotion/Light

current

chat/logoMotion/chatWorkingLogo/ExplorationsReducedMotion/Dark

current

chat/logoMotion/chatWorkingLogo/ExplorationsReducedMotion/Light

current

chat/logoMotion/chatWorkingLogo/Performance/Idle/Dark

current

chat/logoMotion/chatWorkingLogo/Performance/Idle/Light

current

…t order

The persistent spacing rules tied on specificity with main's
`.interactive-item-container .value > .chat-tool-invocation-part` margin,
so whichever stylesheet was imported first won; with every unit test file
loaded, the legacy 16px margin beat the shared gap token. Including the row
container class makes the persistent rules win outright.

Tool detail headers inherit a 1.5em line height computed at the response
font size while their label text is smaller, and Chromium builds disagree on
whether that block line height governs the label box (Playwright's Chromium
lays it out 1.5px short). Give the label text the header line height
directly so both engines agree.

Also allow one device pixel for the connector stroke checks at fractional
zoom, where Chromium snaps 1px strokes to whole device pixels.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 582f8a6c-b5dc-415f-a695-2ed8fdd8effd
Keep the persistent progress setting assertions alongside main's renamed
auto-delete setting and its migration coverage in chatConfiguration.test.ts.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 582f8a6c-b5dc-415f-a695-2ed8fdd8effd
Footer state: tools waiting for MCP authentication and unused legacy
confirmation parts now surface as blocking states instead of a generic
working phrase, the per-tool watcher refreshes on those transitions, and
blocking labels are announced to screen readers once (rotating phrases stay
silent). Participant progress messages and unfinished tasks become the
footer text instead of being hidden behind it, and their rows fall back to
the check icon rather than a static spinner glyph.

Carousel: tool parts built for the input part's confirmation carousel use a
context without persistent presentation, and the gutter icon is scoped to
the response so it can no longer leak layout into another host.

Edit totals: content parts that render edits expose their current diff
(IChatContentPartDiffSource) so chains and subagents seed from values that
were emitted before they attached, for example restored sessions with cached
diffs. The completed-response aggregation collects each chain once (hooks
returned the same instance at several indices, doubling totals), and now
includes standalone edit markdown and subagent edits.

Also: the disclosure fast path recounts steps when chain rows are removed
after completion, a persistent reasoning preview defers its auto-collapse
until keyboard focus leaves it, and unknown animation values warn once.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 582f8a6c-b5dc-415f-a695-2ed8fdd8effd
@justschen
Justin Chen (justschen) marked this pull request as ready for review September 18, 2026 01:23
…gress

Edit totals: intervals for one file are only joined when one provably
follows the other (its original snapshot is the previous modified one).
Restored subagent history inserts a child's edits beside its launch entry,
so unrelated snapshots arriving out of order stay separate diffs instead of
being spliced into a range nobody made. Re-streamed subagent edit markdown
retires the revision it replaces, so an unchanged edit is not counted once
per revision.

Footer: a pending progress task keeps its own row and announcement; only
trailing progress messages, which have no other surface, become the footer
text.

Subagents: the persistent footer only suppresses a child's working row while
the response is in progress. A background child that outlives its parent
shows its own row again on completion, including when it is first expanded
after its launch call already completed.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 582f8a6c-b5dc-415f-a695-2ed8fdd8effd
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 3, 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