Skip to content

chat: fix persistent progress and Draw animation lifecycles - #339050

Merged
Justin Chen (justschen) merged 1 commit into
mainfrom
agents/fix-rendering-issues-and-progress
Oct 1, 2026
Merged

Justin Chen (justschen) merged 1 commit into
mainfrom
agents/fix-rendering-issues-and-progress

Conversation

@justschen

Copy link
Copy Markdown
Collaborator

Summary

Fix three persistent chat-progress lifecycle issues:

  • Do not show "This is taking a little longer than usual" while a foreground terminal, another tool invocation, or a progress task is still active. Preserve the existing background-work handling and restart the inactivity window when work finishes.
  • Use the latest intersection entry when visibility changes are batched, preventing an outdated hidden state from leaving the Draw animation paused.
  • Observe response completion directly so retained progress hides and its inactivity timer stops on completion or cancellation, without waiting for another render or hover.

Includes regression tests for the 90-second threshold, completion/cancellation, response reopening, batched visibility changes, and real DOM hide/show/remounts. Updates chat accessibility help to describe the corrected inactivity behavior.

Validation

  • npm run transpile-client - passed.
  • Focused Electron tests below - 125 passed.
  • Changed-file ESLint below - passed.
  • Commit hygiene hook - passed for all five changed files.
  • npm run typecheck-client - attempted; blocked by existing Copilot SDK and local-transcription dependency type mismatches outside this change. No diagnostics in the changed files.
Exact focused test and lint commands
./scripts/test.sh \
  --run src/vs/workbench/contrib/chat/test/browser/widget/chatWorkingLogo.test.ts \
  --run src/vs/workbench/contrib/chat/test/browser/widget/chatListRenderer.test.ts \
  --grep 'ChatWorkingLogo|persistent progress|persistent footer|working progress|retained progress|working phrase' \
  --reporter dot

Result: 125 passing.

npm run eslint -- \
  src/vs/workbench/contrib/chat/browser/widget/chatWorkingLogo.ts \
  src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.ts \
  src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts \
  src/vs/workbench/contrib/chat/test/browser/widget/chatWorkingLogo.test.ts \
  src/vs/workbench/contrib/chat/test/browser/widget/chatListRenderer.test.ts

Result: all five files passed.

Recorded UI verification

All six UI checks passed in an isolated macOS arm64 Code OSS 1.141.0 dev window, using the production chat renderer with a locally simulated terminal tool and real-time waits (no external model or terminal command):

  1. Show the foreground terminal tool and verify the Draw SVG paths change.
  2. Keep it active for 96.1 seconds: 90 checks found no false inactivity warning.
  3. Switch away from and reopen the chat editor three times: Draw resumes each time.
  4. Complete the response with the pointer outside the response: progress clears without hovering.
  5. Start an idle response with no active tools: the warning appears at 90.28 seconds, while the previous completed response stays clear.
  6. Complete the idle response: neither completed response retains progress or an active logo.

Captioned FFmpeg recordings and the per-step report were verified locally; the videos are not attached to this PR.

Suppress delayed progress messages while tools or progress tasks are active. Observe response completion directly to hide retained progress and stop its inactivity timer. Use the latest intersection update so Draw resumes reliably after visibility changes.

Add lifecycle regression coverage and update chat accessibility help.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 06:04

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

🟢 Approval recommended

The scoped lifecycle fixes are consistent with their model contracts and have focused regression coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes persistent chat-progress timing, completion, and Draw animation visibility lifecycles.

Changes:

  • Defers inactivity warnings while tools or progress tasks remain active.
  • Reacts directly to response completion, cancellation, and reopening.
  • Uses the latest batched visibility entry and adds regression coverage.
File Description
chatWorkingLogo.ts Corrects batched visibility handling.
chatProgressContentPart.ts Fixes inactivity and completion lifecycle behavior.
chatAccessibilityHelp.ts Documents corrected inactivity behavior.
chatWorkingLogo.test.ts Tests visibility changes and remounts.
chatListRenderer.test.ts Tests timing, completion, cancellation, and reopening.

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

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: dc546cc3 Current: 210de123

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/DiscoverPluginsLoadingMore/Light
Before After
before after

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

@justschen
Justin Chen (justschen) marked this pull request as ready for review October 1, 2026 06:20
@justschen
Justin Chen (justschen) enabled auto-merge (squash) October 1, 2026 06:20
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.

4 participants