Skip to content

Comments

Allow returning a title in the Content Provider#296659

Merged
TylerLeonhardt merged 1 commit intomainfrom
tyler/left-tyrannosaurus
Feb 21, 2026
Merged

Allow returning a title in the Content Provider#296659
TylerLeonhardt merged 1 commit intomainfrom
tyler/left-tyrannosaurus

Conversation

@TylerLeonhardt
Copy link
Member

So that the title of a chat can be changed.

So that the title of a chat can be changed.
Copilot AI review requested due to automatic review settings February 21, 2026 00:16
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) February 21, 2026 00:16
@TylerLeonhardt TylerLeonhardt self-assigned this Feb 21, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 21, 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 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 title property to the ChatSession interface in the proposed API
  • Propagated title through the extension host protocol and main thread implementation
  • Applied title to chat model using existing setCustomTitle method
  • 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

@TylerLeonhardt TylerLeonhardt merged commit 4968804 into main Feb 21, 2026
23 checks passed
@TylerLeonhardt TylerLeonhardt deleted the tyler/left-tyrannosaurus branch February 21, 2026 01:01
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.

2 participants