Skip to content

Check language model session target#298862

Merged
DonJayamanne merged 1 commit intomainfrom
don/past-koi
Mar 3, 2026
Merged

Check language model session target#298862
DonJayamanne merged 1 commit intomainfrom
don/past-koi

Conversation

@DonJayamanne
Copy link
Contributor

Fixes #297337

Copilot AI review requested due to automatic review settings March 3, 2026 03:14
@DonJayamanne DonJayamanne marked this pull request as ready for review March 3, 2026 03:15
@vs-code-engineering vs-code-engineering bot added this to the March 2026 milestone Mar 3, 2026
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 an issue where fresh VS Code Insiders instances could not process chat responses after signing in. The root cause was that getDefaultLanguageModel() could inadvertently select a model with targetChatSessionType set (e.g., a background/CLI-targeted model) as the "default" model, even though such models are scoped exclusively to specific session types and should not be used for general chat.

Changes:

  • The getDefaultLanguageModel() method now additionally requires that a candidate default model has no targetChatSessionType set, preventing session-specific models from being selected as the general default.

@DonJayamanne DonJayamanne merged commit 397d3e1 into main Mar 3, 2026
24 checks passed
@DonJayamanne DonJayamanne deleted the don/past-koi branch March 3, 2026 05:19
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.

Chat: Fresh insiders cannot process chat response

4 participants