Allow returning a title in the Content Provider#296659
Merged
TylerLeonhardt merged 1 commit intomainfrom Feb 21, 2026
Merged
Conversation
So that the title of a chat can be changed.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for chat session content providers to return an optional title that will be used as the display name for the session (e.g., in editor tabs). When no title is provided, the system continues to default to the first user message in the session history.
Changes:
- Added optional
titleproperty to theChatSessioninterface in the proposed API - Propagated title through the extension host protocol and main thread implementation
- Applied title to chat model using existing
setCustomTitlemethod - Added comprehensive test coverage for title propagation
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts | Added optional title property to ChatSession interface with documentation |
| src/vs/workbench/contrib/chat/common/chatSessionsService.ts | Added title property to IChatSession interface |
| src/vs/workbench/api/common/extHost.protocol.ts | Added title property to ChatSessionDto for IPC communication |
| src/vs/workbench/api/common/extHostChatSessions.ts | Propagated title from extension API to DTO |
| src/vs/workbench/api/browser/mainThreadChatSessions.ts | Set title property on ObservableChatSession from received DTO |
| src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts | Applied provider-supplied title to chat model via setCustomTitle |
| src/vs/workbench/api/test/browser/mainThreadChatSessions.test.ts | Added comprehensive tests for title initialization and propagation |
dmitrivMS
approved these changes
Feb 21, 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.
So that the title of a chat can be changed.