Skip to content

Show model switch tip and action when chat model is gpt-4.1#295849

Merged
meganrogge merged 5 commits intomainfrom
copilot/add-gpt-5-mini-switch-tip
Feb 17, 2026
Merged

Show model switch tip and action when chat model is gpt-4.1#295849
meganrogge merged 5 commits intomainfrom
copilot/add-gpt-5-mini-switch-tip

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Screenshot 2026-02-17 at 4 17 58 PM

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Copilot AI changed the title [WIP] Add tip for switching from GPT-4.1 to GPT-5-mini Show GPT-5-mini switch tip when chat model is gpt-4.1 Feb 17, 2026
Copilot AI requested a review from meganrogge February 17, 2026 20:29
@meganrogge meganrogge changed the title Show GPT-5-mini switch tip when chat model is gpt-4.1 Show model switch tip and action when chat model is gpt-4.1 Feb 17, 2026
@meganrogge meganrogge added this to the February 2026 milestone Feb 17, 2026
@meganrogge meganrogge marked this pull request as ready for review February 17, 2026 21:18
Copilot AI review requested due to automatic review settings February 17, 2026 21:18
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 adds a tip to encourage users to switch from gpt-4.1 to the Auto model for better coding performance. The implementation introduces model-specific tip eligibility and automatic tip navigation when the selected model changes.

Changes:

  • Added a new context key chatModelId to track the currently selected chat model
  • Implemented model-specific tip eligibility filtering via onlyWhenModelIds field
  • Added automatic tip navigation when the model changes and the current tip becomes ineligible
  • Added comprehensive test coverage for the new functionality

Reviewed changes

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

Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/actions/chatContextKeys.ts Added new chatModelId context key to track the selected model
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Bind and set the chatModelId context key when the language model changes
src/vs/workbench/contrib/chat/browser/widget/chatWidget.ts Added autorun to detect model changes and trigger tip navigation
src/vs/workbench/contrib/chat/browser/chatTipService.ts Implemented model-specific tip eligibility, added Auto switch tip, and automatic tip navigation
src/vs/workbench/contrib/chat/test/browser/chatTipService.test.ts Added comprehensive tests for model-specific tip behavior

@meganrogge meganrogge merged commit 241f3aa into main Feb 17, 2026
24 checks passed
@meganrogge meganrogge deleted the copilot/add-gpt-5-mini-switch-tip branch February 17, 2026 22:16
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.

if model is gpt-4.1, provide tip to switch to GPT-5-mini

3 participants