Skip to content

Conversation

@tamuratak
Copy link
Contributor

fix: ensure finishedEditing is called in ChatWidget. Fix #281734

Copilot AI review requested due to automatic review settings December 7, 2025 09:32
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 a bug where the finishedEditing() method was not being called when the ChatWidget's model is cleared or switched to a different session. This ensures proper cleanup of editing state, preventing state leaks in the chat editing UI.

Key Changes

  • Added finishedEditing() call when setModel is called with undefined (clearing the model)
  • Added finishedEditing() call when setModel is called with a different model (switching sessions)

Copy link
Collaborator

@justschen justschen left a comment

Choose a reason for hiding this comment

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

good catch, thank you!

@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 12, 2025
@justschen justschen merged commit 382ac20 into microsoft:main Dec 30, 2025
22 of 23 checks passed
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.

Loading a previous session while editng a previous request leads to a weird state.

3 participants