Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/vs/workbench/contrib/chat/browser/chat.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,12 @@ configurationRegistry.registerConfiguration({
mode: 'auto'
}
},
[ChatConfiguration.ExitAfterDelegation]: {
type: 'boolean',
description: nls.localize('chat.exitAfterDelegation', "Controls whether the chat panel automatically exits after delegating a request to another session."),
default: true,
tags: ['experimental'],
},
'chat.extensionUnification.enabled': {
type: 'boolean',
description: nls.localize('chat.extensionUnification.enabled', "Enables the unification of GitHub Copilot extensions. When enabled, all GitHub Copilot functionality is served from the GitHub Copilot Chat extension. When disabled, the GitHub Copilot and GitHub Copilot Chat extensions operate independently."),
Expand Down
4 changes: 4 additions & 0 deletions src/vs/workbench/contrib/chat/browser/chatWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,10 @@ export class ChatWidget extends Disposable implements IChatWidget {
}

private _shouldExitAfterDelegation(agent: IChatAgentData | undefined): boolean {
if (!this.configurationService.getValue<boolean>(ChatConfiguration.ExitAfterDelegation)) {
return false;
}

if (!agent) {
return false;
}
Expand Down
1 change: 1 addition & 0 deletions src/vs/workbench/contrib/chat/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export enum ChatConfiguration {
SubagentToolCustomAgents = 'chat.customAgentInSubagent.enabled',
ShowCodeBlockProgressAnimation = 'chat.agent.codeBlockProgress',
RestoreLastPanelSession = 'chat.restoreLastPanelSession',
ExitAfterDelegation = 'chat.exitAfterDelegation',
SuspendThrottling = 'chat.suspendThrottling',
}

Expand Down
Loading