We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e20252 commit 68cb518Copy full SHA for 68cb518
1 file changed
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.ts
@@ -100,7 +100,8 @@ export class ChatSuggestNextWidget extends Disposable {
100
}
101
102
const isAutopilotEnabled = this.configurationService.getValue<boolean>(ChatConfiguration.AutopilotEnabled) !== false;
103
- const firstAutoSendHandoff = isAutopilotEnabled ? handoffs.find(h => h.send) : undefined;
+ const isAutopilotPolicyRestricted = this.configurationService.inspect<boolean>(ChatConfiguration.GlobalAutoApprove).policyValue === false;
104
+ const firstAutoSendHandoff = isAutopilotEnabled && !isAutopilotPolicyRestricted ? handoffs.find(h => h.send) : undefined;
105
106
for (const handoff of handoffs) {
107
const promptButton = this.createPromptButton(handoff);
0 commit comments