sessions: add tip banner for sub-session creation#312203
Merged
hawkticehurst merged 3 commits intomainfrom Apr 23, 2026
Merged
Conversation
Shows a dismissable tip above the chat input when a new sub-session is created, explaining what a sub-session is and how to use it. The tip uses the same visual pattern as the core chat tip widget and persists dismissal to the user's profile storage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a one-time, dismissable “sub-session” tip banner to the Sessions window’s “new chat in session” input area, with dismissal persisted in profile-scoped storage.
Changes:
- Render a tip banner (icon + explanatory text + dismiss control) above the chat input and persist dismissal via
IStorageService. - Add CSS to visually connect the banner and input area (shared border treatment / connected corner radii).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/vs/sessions/contrib/chat/browser/newChatInSessionViewPane.ts | Renders the sub-session tip UI and persists dismissal state. |
| src/vs/sessions/contrib/chat/browser/media/newChatInSession.css | Styles the tip banner and adjusts input border radii when the banner is present. |
- Use native <button> instead of <a> with role=button for dismiss control - Add Gesture.addTarget and TouchEventType.Tap listener for iOS/touch - Add touch-action: manipulation and reset native button styles in CSS Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
TylerLeonhardt
previously approved these changes
Apr 23, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
roblourens
approved these changes
Apr 23, 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.
Shows a dismissable tip banner above the chat input when a new sub-session is created via the "New Sub-Session" button in the titlebar. The tip concisely explains what a sub-session is — a new chat within the same workspace for asking questions, running tasks, or exploring ideas with fresh context.
Changes
newChatInSessionViewPane.ts: Added_renderSubSessionTip()to render a tip widget (lightbulb icon + message + dismiss button) above the chat input. Dismissal is persisted toStorageScope.PROFILEso the tip only shows once.newChatInSession.css: Added styles for the tip banner matching the existing core chat tip pattern, with seamless visual connection to the input area below (shared border, connected border-radius).Visual pattern
The tip follows the same design as the existing
ChatTipContentPartin VS Code core — a horizontal banner with icon, text, and dismiss action that sits directly above the chat input with connected borders.