sessions: disable chat tips in agents window#308395
Merged
Conversation
Register a NullChatTipService in the sessions layer to suppress the getting-started tips that flash briefly when switching between sessions. The empty-state tip was showing during session loading because the chat widget temporarily has zero items before messages arrive. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR disables “getting-started” chat tips in the Agents (sessions) window by overriding the workbench IChatTipService with a sessions-layer no-op implementation, preventing the tip UI from flashing during session switching while messages load.
Changes:
- Add a sessions-layer
NullChatTipServicethat always returnsundefinedfromgetWelcomeTip()and no-ops all otherIChatTipServicemethods. - Register the null tip service via a side-effect import in the sessions chat contribution module.
Show a summary per file
| File | Description |
|---|---|
src/vs/sessions/contrib/chat/browser/nullChatTipService.ts |
Introduces a no-op IChatTipService singleton for the sessions window to suppress welcome tips. |
src/vs/sessions/contrib/chat/browser/chat.contribution.ts |
Ensures the null tip service is registered in the sessions layer by importing it alongside other sessions-only chat overrides. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
joshspicer
approved these changes
Apr 7, 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.
Summary
Registers a
NullChatTipServicein the sessions layer to suppress getting-started tips in the agents window.Problem
When switching between sessions in the agents window, the "Tip: Try the Plan agent..." message briefly flashes above the chat input. This happens because the chat widget temporarily has zero items while session messages are loading, and
updateChatViewVisibility()treats that as an empty/new session — rendering the tip. Once messages arrive, the tip disappears.Solution
Follow the existing pattern used by
NullInlineChatSessionService— register a no-opIChatTipServiceimplementation in the sessions layer (src/vs/sessions/) that always returnsundefinedfromgetWelcomeTip(). This completely suppresses tips in the agents window without modifying any core workbench code.Changes
src/vs/sessions/contrib/chat/browser/nullChatTipService.ts— null implementation ofIChatTipServicesrc/vs/sessions/contrib/chat/browser/chat.contribution.ts— import the null service registration