Skip to content

Copilot CLI: Receive Session Name from CLI Over MCP Call#3638

Merged
DonJayamanne merged 4 commits intomainfrom
mrayermannmsft/feat/clisessionanme
Feb 11, 2026
Merged

Copilot CLI: Receive Session Name from CLI Over MCP Call#3638
DonJayamanne merged 4 commits intomainfrom
mrayermannmsft/feat/clisessionanme

Conversation

@MRayermannMSFT
Copy link
Member

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.

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

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 ICopilotCLISessionTracker to 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
DonJayamanne previously approved these changes Feb 11, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 11, 2026
@DonJayamanne

This comment was marked as resolved.

Copy link
Contributor

Copilot AI commented Feb 11, 2026

@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.

@DonJayamanne DonJayamanne marked this pull request as draft February 11, 2026 00:28
@MRayermannMSFT MRayermannMSFT marked this pull request as ready for review February 11, 2026 00:39
@DonJayamanne DonJayamanne added this pull request to the merge queue Feb 11, 2026
Merged via the queue into main with commit 1644e5c Feb 11, 2026
19 checks passed
@DonJayamanne DonJayamanne deleted the mrayermannmsft/feat/clisessionanme branch February 11, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants