Suppress chat tips in terminal/editor inline chat#295170
Merged
meganrogge merged 3 commits intomainfrom Feb 13, 2026
Merged
Conversation
… inline) Chat tips were being shown in terminal inline chat and editor inline chat where they are not relevant. Add location check in ChatTipService to only show tips when the chat location is the main panel. Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix terminal inline chat displaying chat tip
Suppress chat tips in terminal/editor inline chat
Feb 13, 2026
meganrogge
reviewed
Feb 13, 2026
| } | ||
|
|
||
| // Only show tips in the main chat panel, not in terminal/editor inline chat | ||
| const location = contextKeyService.getContextKeyValue<ChatAgentLocation>(ChatContextKeys.location.key); |
Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
meganrogge
approved these changes
Feb 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes an issue where chat tips were incorrectly appearing in terminal inline chat and editor inline chat contexts, where they are not relevant. The fix adds location-based filtering to ChatTipService to ensure tips only appear in the main chat panel.
Changes:
- Added
_isChatLocation()helper method to check if the current context isChatAgentLocation.Chat - Applied location filtering to both
getNextTip()andgetWelcomeTip()methods - Added test cases to verify tips are suppressed in Terminal and EditorInline locations
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/browser/chatTipService.ts |
Added _isChatLocation() helper and integrated location checks into getNextTip() and getWelcomeTip() to suppress tips in non-Chat locations |
src/vs/workbench/contrib/chat/test/browser/chatTipService.test.ts |
Added test cases for Terminal and EditorInline location suppression |
Comments suppressed due to low confidence (1)
src/vs/workbench/contrib/chat/test/browser/chatTipService.test.ts:165
- Consider adding location check tests for getWelcomeTip() as well, since it also has the location filter implemented. The current tests only verify location filtering for getNextTip(), but getWelcomeTip() at line 702-704 also checks location and should suppress tips in terminal/editor inline chat contexts.
test('returns undefined when location is editor inline', () => {
const service = createService();
const now = Date.now();
const editorContextKeyService = new MockContextKeyServiceWithRulesMatching();
editorContextKeyService.createKey(ChatContextKeys.location.key, ChatAgentLocation.EditorInline);
const tip = service.getNextTip('request-1', now + 1000, editorContextKeyService);
assert.strictEqual(tip, undefined, 'Should not return a tip in editor inline chat');
});
bpasero
approved these changes
Feb 13, 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.
ChatTipServicewas showing tips in terminal inline chat and editor inline chat, where they're irrelevant (e.g., "Select a code block in the editor and right-click…")._isChatLocation()helper to checkChatContextKeys.location— used in bothgetNextTip()andgetWelcomeTip()to returnundefinedfor any location other thanChatAgentLocation.ChatOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.