Skip to content

feat: add AI-generated branch names configuration and integration in Copilot CLI#5021

Open
DonJayamanne wants to merge 1 commit into
mainfrom
don/branch-setting
Open

feat: add AI-generated branch names configuration and integration in Copilot CLI#5021
DonJayamanne wants to merge 1 commit into
mainfrom
don/branch-setting

Conversation

@DonJayamanne
Copy link
Copy Markdown
Collaborator

No description provided.

@DonJayamanne DonJayamanne self-assigned this Apr 7, 2026
@DonJayamanne DonJayamanne changed the base branch from don/bumpy-impala to main April 7, 2026 02:44
@DonJayamanne DonJayamanne requested a review from Copilot April 7, 2026 03:27
Copy link
Copy Markdown
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 a new configuration flag to control whether Copilot CLI generates AI-based git branch names, and wires that flag into Copilot CLI session initialization so branch name generation can be disabled by default.

Changes:

  • Introduced a new configuration key (chat.cli.aiGenerateBranchNames.enabled) and surfaced it in the extension’s package.json contributions + localized description.
  • Gated GitBranchNameGenerator instantiation behind the new config flag when registering Copilot CLI services.
  • Updated the Copilot CLI chat session participant to tolerate the branch name generator being absent.
Show a summary per file
File Description
src/platform/configuration/common/configurationService.ts Registers the new config key in ConfigKey.Advanced.
src/extension/chatSessions/vscode-node/chatSessions.ts Reads the new config and conditionally creates GitBranchNameGenerator.
src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts Makes branch name generation conditional on generator presence.
package.nls.json Adds localized description string for the new setting.
package.json Contributes the new setting (github.copilot.chat.cli.aiGenerateBranchNames.enabled) to VS Code configuration.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 2

Comment thread src/extension/chatSessions/vscode-node/chatSessions.ts
Comment thread src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts
@DonJayamanne DonJayamanne marked this pull request as ready for review April 7, 2026 08:02
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