Skip to content

Conversation

@justschen
Copy link
Collaborator

fixes issue where some requests would re-render with the wrong height, causing edits to jump around.

also makes sure that the questions carousel doesn't randomly render above the editing input part.

Copilot AI review requested due to automatic review settings February 6, 2026 06:12
@justschen justschen enabled auto-merge (squash) February 6, 2026 06:13
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 6, 2026
Copy link
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

This PR fixes visual glitches in the chat UI where edits would jump around during rendering and question carousels would appear in inappropriate locations during edit mode.

Changes:

  • Synchronized blocked state management between requests and their responses in checkpoint operations
  • Added auto-scroll suppression during edit operations to prevent unwanted scrolling
  • Refined tree rendering identity calculation to check per-element states instead of global states, reducing unnecessary re-renders
  • Prevented question carousels from rendering in the input area during edit mode

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/common/model/chatModel.ts Added setBlockedState(false) calls for responses in resetCheckpoint() and setCheckpoint() to synchronize blocked state between requests and responses
src/vs/workbench/contrib/chat/browser/widget/chatWidget.ts Set suppressAutoScroll flag to true when starting edits and false when finishing to prevent scroll jumps
src/vs/workbench/contrib/chat/browser/widget/chatListWidget.ts Implemented suppressAutoScroll mechanism and refined diff identity calculation to check per-element blocked state instead of global checkpoint
src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts Added isEditing check to prevent question carousel from rendering in input area during edit mode

@justschen justschen merged commit ea0bcdf into microsoft:main Feb 6, 2026
22 of 23 checks passed
daviddossett pushed a commit to daviddossett/vscode that referenced this pull request Feb 7, 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.

2 participants