2537
*/
2538
private async _applyEffectiveSandboxConfig(): Promise<void> {
2540
return;
2541
}
2542
const sandbox = this._configurationService.getRootValue(sandboxConfigSchema, AgentHostSandboxConfigKey.Sandbox);
2543
const base = buildSandboxConfigForSdk(this._platform, sandbox);
2544
>
const sandboxConfig: ISdkSandboxConfig | { enabled: false } = (base && !this._isBypassApprovals()) ? base : { enabled: false };
copilotAgentSession.ts
2545
>
try {
2546
>
await this._wrapper.session.rpc.options.update({ sandboxConfig });
2547
} catch (err) {
2548
this._logService.warn(`[Copilot:${this.sessionId}] Failed to update sandbox config for request`, err);
2549
}
2551
2552
/**