Copilot CLI: Receive Session Name from CLI Over MCP Call#3638
Merged
DonJayamanne merged 4 commits intomainfrom Feb 11, 2026
Merged
Copilot CLI: Receive Session Name from CLI Over MCP Call#3638DonJayamanne merged 4 commits intomainfrom
DonJayamanne merged 4 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for the Copilot CLI to push a human-friendly session name to the VS Code extension via an MCP tool, so multi-session pickers can show meaningful labels instead of raw session IDs.
Changes:
- Introduces a new MCP tool (
update_session_name) for the CLI to update the current session’s display name. - Extends
ICopilotCLISessionTrackerto store and return per-session display names with a sessionId fallback. - Threads the session tracker through MCP tool registration so the new tool can update shared session state.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/extension/agents/copilotcli/vscode-node/tools/updateSessionName.ts | New MCP tool that accepts a name and updates the session tracker. |
| src/extension/agents/copilotcli/vscode-node/tools/index.ts | Adds the new tool to the MCP tool registration set and extends the registration signature. |
| src/extension/agents/copilotcli/vscode-node/copilotCLISessionTracker.ts | Adds storage/methods for session display names and uses them for display. |
| src/extension/agents/copilotcli/vscode-node/contribution.ts | Passes the session tracker into tool registration so the tool can update names. |
DonJayamanne
previously approved these changes
Feb 11, 2026
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
|
@DonJayamanne I've opened a new pull request, #3639, to work on those changes. Once the pull request is ready, I'll request review from you. |
TylerLeonhardt
approved these changes
Feb 11, 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.
Allows CLI to send over its session name once generated, and if the user renames manually. Used when presenting a list of CLI sessions to the user to pick from.