add more tips, make all of them contextual#294237
Merged
meganrogge merged 1 commit intomainfrom Feb 10, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR expands the chat “tips” system to be more context-aware, adding new tips and new exclusion mechanisms so tips are suppressed once the user has already discovered/used the referenced features (commands, tools, or workspace prompt files). It also introduces a command to open/focus the Context Window Usage details UI directly from a hint.
Changes:
- Added new tip definitions and made existing tips more contextual via new exclusion conditions (tool-invoked + prompt-file-exists).
- Enhanced
TipEligibilityTrackerto persist and evaluate tool invocations and prompt file presence for tip suppression. - Added a command + widget plumbing to show/focus “Context Window Usage” details and track whether it has been opened.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/chatTipService.ts | Adds new tips and implements new exclusion mechanisms (tool invocation + prompt file existence), with persistence. |
| src/vs/workbench/contrib/chat/test/browser/chatTipService.test.ts | Extends unit tests for new exclusion behavior (tools + prompt files + agent change event). |
| src/vs/workbench/contrib/chat/common/actions/chatContextKeys.ts | Adds a new context key tracking whether context usage details have been opened. |
| src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.ts | Persists/sets the “opened” state and exposes showDetails() to programmatically open the sticky hover. |
| src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts | Adds showContextUsageDetails() to bridge commands to the widget. |
| src/vs/workbench/contrib/chat/browser/actions/chatActions.ts | Registers the new workbench.action.chat.showContextUsage command to open the details UI. |
mjbvz
approved these changes
Feb 10, 2026
cwebster-99
reviewed
Feb 10, 2026
Member
cwebster-99
left a comment
There was a problem hiding this comment.
Added some small tweaks to tips. Should we also add one for steering?
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.
fixes #290019
fixes #293536
Added 10 new tips: custom agents, skills, message queueing, yolo mode, mermaid, GitHub repo, subagents, context usage, send to new chat.
Introduced two new exclusion mechanisms on tip definitions:
excludeWhenToolsInvokedsuppresses a tip after a specific tool has been usedexcludeWhenPromptFilesExistsuppresses a tip when prompt files of a given type are found in the workspaceAlso adds a new command to focus the
Context Window Usagewidget, so we can allow users to open that from the hint.