Skip to content

Conversation

@sbatten
Copy link
Member

@sbatten sbatten commented Jan 26, 2026

Introduce a chat tips service to enhance user experience with contextual tips. Update the frequency of tips, add necessary tests, and ensure proper integration within the chat interface.

image

@sbatten sbatten requested review from Copilot and justschen January 26, 2026 19:23
@sbatten sbatten enabled auto-merge (squash) January 26, 2026 19:23
@sbatten sbatten self-assigned this Jan 26, 2026
@sbatten sbatten requested a review from roblourens January 26, 2026 19:24
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 26, 2026
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 introduces a chat tips service to enhance user experience with contextual tips in the chat interface. The service shows helpful tips to users about various chat features, with logic to show only one tip per session and only for new requests (not restored chats).

Changes:

  • Implemented a new ChatTipService that manages and displays contextual tips based on user context
  • Added a ChatTipContentPart UI component to render tips above chat requests
  • Extended the chat view model to expose request timestamps for tip eligibility logic
  • Added a new chatModeName context key to enable mode-specific tip filtering

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/chatTipService.ts Core service implementation with tip catalog, eligibility logic, and session-based tip management
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.ts UI component that renders tips with icon and markdown content
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css Styling for the tip widget
src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts Integration of tip rendering into the chat list renderer
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Service registration for dependency injection
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Binding of chatModeName context key
src/vs/workbench/contrib/chat/common/actions/chatContextKeys.ts Definition of new chatModeName context key
src/vs/workbench/contrib/chat/common/model/chatViewModel.ts Exposure of timestamp property for request view models
src/vs/workbench/contrib/chat/test/browser/chatTipService.test.ts Comprehensive test suite covering tip service behavior

justschen
justschen previously approved these changes Jan 26, 2026
/**
* Static catalog of tips. Each tip has an optional when clause for eligibility.
*/
const TIP_CATALOG: ITipDefinition[] = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i almost wonder if we need more tips :0

just anecdotally, when i'd be playing games, there would be tips like these on loading screens, and i'd get annoyed if i saw the same tip too much

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

@microsoft microsoft deleted a comment from sbatten-alt Jan 26, 2026
@sbatten sbatten requested a review from justschen January 26, 2026 23:42
@sbatten sbatten merged commit 522016b into main Jan 27, 2026
22 checks passed
@sbatten sbatten deleted the sbatten/tips branch January 27, 2026 00:31
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.

3 participants