Skip to content

Fix clear model cache race#273929

Merged
lramos15 merged 1 commit intomainfrom
lramos15/late-baboon
Oct 29, 2025
Merged

Fix clear model cache race#273929
lramos15 merged 1 commit intomainfrom
lramos15/late-baboon

Conversation

@lramos15
Copy link
Member

Copilot AI review requested due to automatic review settings October 29, 2025 10:46
@lramos15 lramos15 enabled auto-merge (squash) October 29, 2025 10:46
@lramos15 lramos15 self-assigned this Oct 29, 2025
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 29, 2025
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 timing issue in the language model cache management by moving the _clearModelCache() call to occur after model metadata is mapped, but before the new models are stored in the cache.

Key changes:

  • Moves _clearModelCache(vendor) from line 176 (before provider call and mapping) to line 217 (after mapping, before cache population)
  • Removes an unnecessary blank line in the for loop

@lramos15 lramos15 merged commit d49049e into main Oct 29, 2025
33 of 34 checks passed
@lramos15 lramos15 deleted the lramos15/late-baboon branch October 29, 2025 14:48
dmitrivMS pushed a commit that referenced this pull request Oct 29, 2025
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 13, 2025
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.

4 participants