Skip to content

Avoid blocking Copilot model selection on utility alias resolution#316811

Merged
rwoll merged 4 commits into
mainfrom
dev/vritant24/resolveUtilityModels
May 17, 2026
Merged

Avoid blocking Copilot model selection on utility alias resolution#316811
rwoll merged 4 commits into
mainfrom
dev/vritant24/resolveUtilityModels

Conversation

@vritant24
Copy link
Copy Markdown
Member

Summary

  • Keep Copilot language model metadata publication from waiting on utility alias endpoint resolution.
  • Resolve utility alias overrides in the background and republish when they become available.
  • Add regression coverage for stalled alias resolution and for selecting hidden Copilot utility aliases by id.

Copilot AI review requested due to automatic review settings May 16, 2026 22:58
@vritant24 vritant24 self-assigned this May 16, 2026
Copy link
Copy Markdown
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 adjusts Copilot language model alias publication so model metadata can be returned without waiting on utility alias override resolution, improving responsiveness of Copilot model selection.

Changes:

  • Publishes utility aliases from cached/default endpoints and refreshes override resolution in the background.
  • Adds regression coverage for stalled utility alias resolution.
  • Adds workbench coverage for selecting hidden Copilot utility aliases by id.
Show a summary per file
File Description
extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts Refactors utility alias publication and background override refresh behavior.
extensions/copilot/src/extension/conversation/vscode-node/test/languageModelAccess.test.ts Adds regression coverage for non-blocking model info publication.
src/vs/workbench/contrib/chat/test/common/languageModels.test.ts Adds coverage for selecting non-user-selectable Copilot models by id.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

@vritant24 vritant24 marked this pull request as draft May 16, 2026 23:01
@vritant24 vritant24 marked this pull request as ready for review May 16, 2026 23:05
@rwoll rwoll merged commit b53fa1a into main May 17, 2026
36 checks passed
@rwoll rwoll deleted the dev/vritant24/resolveUtilityModels branch May 17, 2026 23:12
@vs-code-engineering vs-code-engineering Bot added this to the 1.121.0 milestone May 17, 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.

4 participants