KEMBAR78
Send first request to selected model by lramos15 · Pull Request #271398 · microsoft/vscode · GitHub
Skip to content

Conversation

@lramos15
Copy link
Member

@lramos15 lramos15 commented Oct 14, 2025

Fix #268856

This took me way too long to figure out how to fix 😅

@Copilot Copilot AI review requested due to automatic review settings October 14, 2025 21:02
@lramos15 lramos15 enabled auto-merge (squash) October 14, 2025 21:02
@lramos15 lramos15 self-assigned this Oct 14, 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 an issue where the first request to a selected model fails by ensuring the selected model ID is passed correctly and resolving models that aren't cached yet.

  • Passes the user-selected model ID when resending requests in chat setup
  • Adds fallback logic to resolve models that aren't cached in the extension host
  • Includes debug logging to track default model resolution

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/contrib/chat/browser/chatSetup.ts Passes user-selected model ID to resend request options
src/vs/workbench/api/common/extHostLanguageModels.ts Adds fallback model resolution and debug logging

@vs-code-engineering
Copy link

vs-code-engineering bot commented Oct 14, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatSetup.ts

@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 14, 2025
@lramos15 lramos15 merged commit 213c722 into main Oct 14, 2025
28 checks passed
@lramos15 lramos15 deleted the lramos15/zeroth-tarsier branch October 14, 2025 21:30
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: Model picker value should be cached

3 participants