Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Don't recreate ToolCallRounds when missing - #2655

Merged
roblourens merged 1 commit into
mainfrom
roblou/legislative-ermine
Dec 21, 2025
Merged

roblourens merged 1 commit into
mainfrom
roblou/legislative-ermine

Conversation

@roblourens

@roblourens roblourens commented Dec 21, 2025 •

Copy link
Copy Markdown
Member

So that they can be mutated and retain that state Fix microsoft/vscode#272987

So that they can be mutated and retain that state
Fix #272987
Copilot AI review requested due to automatic review settings December 21, 2025 01:17
@roblourens
roblourens enabled auto-merge December 21, 2025 01:17
@roblourens roblourens self-assigned this Dec 21, 2025
@vs-code-engineering vs-code-engineering Bot added this to the December / January 2026 milestone Dec 21, 2025

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.

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 _filledInMissingRounds field to retain fallback ToolCallRound instances
  • Enabled normalizeSummariesOnRounds to successfully mutate and preserve summary data on fallback rounds

@roblourens
roblourens added this pull request to the merge queue Dec 21, 2025
Merged via the queue into main with commit f809049 Dec 21, 2025
@roblourens
roblourens deleted the roblou/legislative-ermine branch December 21, 2025 02:36
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)
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.

Endless summarization of conversation history

3 participants