Skip to content

fix stale rendering applying edits#310004

Merged
justschen merged 2 commits intomainfrom
justin/pangoro
Apr 14, 2026
Merged

fix stale rendering applying edits#310004
justschen merged 2 commits intomainfrom
justin/pangoro

Conversation

@justschen
Copy link
Copy Markdown
Collaborator

fix issue where this was happening for edits:
Screenshot 2026-04-14 at 3 00 40 PM

Copilot AI review requested due to automatic review settings April 14, 2026 22:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes stale rendering when applying edits by ensuring replaced pinned markdown edit pills are fully removed from the thinking container’s bookkeeping and DOM.

Changes:

  • Add removeEditPillByPartId to clean up thinking-part internal state for replaced markdown edit pills.
  • Call the cleanup from ChatListItemRenderer before replacing a pinned markdown part, and remove the old DOM node.
  • Add a browser test asserting aggregated diff stats update after removing an edit pill.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/browser/widget/chatContentParts/chatThinkingContentPart.test.ts Adds coverage for removing an edit pill and updating aggregated diff stats.
src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts Cleans up thinking-part state before replacing pinned markdown parts; removes old DOM node after replacement.
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.ts Introduces removeEditPillByPartId to remove stale bookkeeping for replaced edit pills.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

Screenshot Changes

Base: ec754977 Current: 995cc2b0

Changed (2)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after

@justschen justschen marked this pull request as ready for review April 14, 2026 22:20
@justschen justschen enabled auto-merge (squash) April 14, 2026 22:25
@justschen justschen merged commit 1fe7101 into main Apr 14, 2026
26 checks passed
@justschen justschen deleted the justin/pangoro branch April 14, 2026 23:07
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants