From 36ca95ebaa56822d3f2d26091e607accfca48d72 Mon Sep 17 00:00:00 2001 From: dileepyavan <52841896+dileepyavan@users.noreply.github.com> Date: Fri, 20 Mar 2026 19:41:15 -0700 Subject: [PATCH] Show allow-list actions for unsandboxed terminal confirmations (#303660) * Handle unsandboxed terminal confirmation actions * test: fix unsandboxed terminal confirmation actions * Fixing confirmation window issues outside sandbox --- .../chatAgentTools/browser/tools/runInTerminalTool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts index 066f4836caa..302f83153a6 100644 --- a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts +++ b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts @@ -753,7 +753,7 @@ export class RunInTerminalTool extends Disposable implements IToolImpl { } // If forceConfirmationReason is set, always show confirmation regardless of auto-approval - const shouldShowConfirmation = requiresUnsandboxConfirmation || (!isFinalAutoApproved && !isSessionAutoApproved) || context.forceConfirmationReason !== undefined; + const shouldShowConfirmation = (!isFinalAutoApproved && !isSessionAutoApproved) || context.forceConfirmationReason !== undefined; const confirmationMessage = requiresUnsandboxConfirmation ? new MarkdownString(localize( 'runInTerminal.unsandboxed.confirmationMessage',