Skip to content

add github.copilot.cli.sessions.commitToWorktree#3680

Merged
joshspicer merged 1 commit intomainfrom
josh/layout-exploration
Feb 12, 2026
Merged

add github.copilot.cli.sessions.commitToWorktree#3680
joshspicer merged 1 commit intomainfrom
josh/layout-exploration

Conversation

@joshspicer
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 11, 2026 23:36
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 11, 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 a new VS Code command github.copilot.cli.sessions.commitToWorktree that allows committing a specific file to a Copilot CLI session's worktree. This is part of the Copilot CLI chat sessions feature which uses Git worktrees for session isolation.

Changes:

  • Adds github.copilot.cli.sessions.commitToWorktree command to commit individual files to worktrees
  • Adds getSessionIdForWorktree() method to look up session ID from a worktree URI
  • Clears worktree changes cache after commit to force recomputation

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts Implements the new commitToWorktree command handler that stages, commits a file, and clears the changes cache; updates function signature to accept logService parameter
src/extension/chatSessions/vscode-node/chatSessions.ts Passes logService to registerCLIChatCommands function
src/extension/chatSessions/vscode-node/chatSessionWorktreeServiceImpl.ts Implements getSessionIdForWorktree to find session ID by worktree URI
src/extension/chatSessions/common/chatSessionWorktreeService.ts Adds getSessionIdForWorktree method to interface
package.nls.json Adds localization string for the new command title
package.json Registers the command with command palette disabled (when: false)

@joshspicer joshspicer added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit 5c6a600 Feb 12, 2026
25 checks passed
@joshspicer joshspicer deleted the josh/layout-exploration branch February 12, 2026 01:06
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.

3 participants