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
This commit is contained in:
dileepyavan
2026-03-20 19:41:15 -07:00
committed by GitHub
parent 7503e59fc3
commit 36ca95ebaa
@@ -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',