2262
// prompt at all.
2263
if (isShellRequest && !request.requestSandboxBypass && await this._isShellSandboxedByDefault()) {
2265
>
// check; if so the deferred has already been settled and
2266
>
// removed, so leave it alone.
2267
>
if (this._pendingPermissions.get(toolCallId) === deferred) {
2268
>
this._pendingPermissions.delete(toolCallId);
2269
>
this._logService.info(`[Copilot:${this.sessionId}] Auto-approving sandboxed shell command for tool call ${toolCallId}`);
2270
>
return { kind: 'approve-once' };
2271
>
}
2272
return { kind: 'reject' };
2273
}