Show model switch tip and action when chat model is gpt-4.1#295849
Merged
meganrogge merged 5 commits intomainfrom Feb 17, 2026
Merged
Show model switch tip and action when chat model is gpt-4.1#295849meganrogge merged 5 commits intomainfrom
meganrogge merged 5 commits intomainfrom
Conversation
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
meganrogge
approved these changes
Feb 17, 2026
Contributor
There was a problem hiding this comment.
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
chatModelIdto track the currently selected chat model - Implemented model-specific tip eligibility filtering via
onlyWhenModelIdsfield - 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 |
benvillalobos
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.