This repository was archived by the owner on May 20, 2026. It is now read-only.
Repository navigation
Don't recreate ToolCallRounds when missing - #2655
Merged
Merged
Conversation
So that they can be mutated and retain that state Fix #272987
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes issue #272987 by caching fallback ToolCallRound instances created for Turns that don't have tool call rounds (e.g., from Ask mode). Previously, a new ToolCallRound was created on each access to the rounds getter, which meant that mutations to these rounds (such as setting the summary property via normalizeSummariesOnRounds) would be lost.
Key changes:
- Added caching via
_filledInMissingRoundsfield to retain fallbackToolCallRoundinstances - Enabled
normalizeSummariesOnRoundsto successfully mutate and preserve summary data on fallback rounds
Dmitriy Vasyura (dmitrivMS)
approved these changes
Dec 21, 2025
btsd321
added a commit
to btsd321/vscode-copilot-chat
that referenced
this pull request
Dec 22, 2025
Don't recreate ToolCallRounds when missing (microsoft#2655)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
So that they can be mutated and retain that state Fix microsoft/vscode#272987