Sessions: update new chat isolation picker behavior#300791
Merged
sandy081 merged 5 commits intomicrosoft:mainfrom Mar 11, 2026
Merged
Sessions: update new chat isolation picker behavior#300791sandy081 merged 5 commits intomicrosoft:mainfrom
sandy081 merged 5 commits intomicrosoft:mainfrom
Conversation
- Swap mode and model picker positions in toolbar - Move Default Approvals next to isolation mode picker with gap - Rename Folder/Worktree labels to Local/Copilot CLI - Gate isolation picker on github.copilot.chat.cli.isolationOption.enabled - Show picker as disabled (not hidden) when config is off - Add setEnabled API to IsolationModePicker - Listen for config changes and enforce worktree mode when disabled Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Sessions window “New Chat” experience to reflect the latest isolation-mode UX and to react to runtime configuration changes, while keeping existing picker placement behavior intact.
Changes:
- Renames isolation mode labels to “Copilot CLI” and “Local”, and adds a disabled-but-visible state for the isolation picker.
- Reacts to
github.copilot.chat.cli.isolationOption.enabledchanges at runtime and enforces worktree mode when the option is disabled. - Adds an Alt-modified send action that can open a new chat after sending.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/vs/sessions/contrib/chat/browser/sessionTargetPicker.ts | Adds enable/disable support for the isolation picker and updates isolation option labels. |
| src/vs/sessions/contrib/chat/browser/newChatViewPane.ts | Reacts to isolation option config changes, enforces worktree when disabled, and adds Alt-modified send behavior. |
Comments suppressed due to low confidence (1)
src/vs/sessions/contrib/chat/browser/sessionTargetPicker.ts:255
- The localization key
isolationMode.worktreenow maps to the English string “Copilot CLI” (previously “Worktree”). Reusing the same key can surface incorrect existing translations. Please introduce a new key (or ensure translation resources are updated) for the renamed label.
kind: ActionListItemKind.Action,
label: localize('isolationMode.worktree', "Copilot CLI"),
group: { title: '', icon: Codicon.worktree },
item: 'worktree',
},
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
lszomoru
approved these changes
Mar 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.
github.copilot.chat.cli.isolationOption.enabledis false