豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Add support for plan exit mode in Copilot CLI configuration and handling#4379

Merged
DonJayamanne merged 3 commits intomainfrom
don/written-quelea
Mar 12, 2026
Merged

Add support for plan exit mode in Copilot CLI configuration and handling#4379
DonJayamanne merged 3 commits intomainfrom
don/written-quelea

Conversation

@DonJayamanne
Copy link
Copy Markdown
Collaborator

No description provided.

@DonJayamanne DonJayamanne self-assigned this Mar 12, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review March 12, 2026 20:12
Copilot AI review requested due to automatic review settings March 12, 2026 20:12
@DonJayamanne DonJayamanne enabled auto-merge March 12, 2026 20:12
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 12, 2026
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 gate Copilot CLI “plan exit mode” handling, and wires that flag through CopilotCLISession plus related unit tests.

Changes:

  • Introduces chat.cli.planExitMode.enabled configuration key and surfaces it in package.json/package.nls.json.
  • Updates CopilotCLISession to conditionally attach the exit_plan_mode.requested event handler based on the new setting.
  • Updates/extends Copilot CLI session-related tests to pass IConfigurationService and validate the disabled behavior.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/platform/configuration/common/configurationService.ts Adds a new config key for plan exit mode enablement.
src/extension/chatSessions/copilotcli/node/copilotcliSession.ts Gates exit_plan_mode.requested handler registration behind the new config.
src/extension/chatSessions/copilotcli/node/test/copilotcliSession.spec.ts Injects config service into session creation and adds a test for the disabled path.
src/extension/chatSessions/copilotcli/node/test/copilotCliSessionService.spec.ts Updates session construction in tests to provide IConfigurationService.
src/extension/chatSessions/vscode-node/test/copilotCLIChatSessionParticipant.spec.ts Updates test session construction to provide IConfigurationService.
package.json / package.nls.json Adds the new contributed setting and its localized description.

Comment thread package.nls.json Outdated
Comment thread src/platform/configuration/common/configurationService.ts Outdated
DonJayamanne and others added 2 commits March 13, 2026 07:20
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@DonJayamanne DonJayamanne added this pull request to the merge queue Mar 12, 2026
Merged via the queue into main with commit bad46da Mar 12, 2026
19 checks passed
@DonJayamanne DonJayamanne deleted the don/written-quelea branch March 12, 2026 21:39
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