feat(windows-sandbox): fix lint errors and type mismatches

This commit is contained in:
mkorwel
2026-03-18 20:42:57 -07:00
parent 4dbbb84063
commit 2b666506da
6 changed files with 87 additions and 65 deletions
+2 -4
View File
@@ -703,12 +703,10 @@ export async function loadCliConfig(
: specifiedModel || defaultModel;
const sandboxConfig = await loadSandboxConfig(settings, argv);
if (sandboxConfig) {
const existingPaths = sandboxConfig.allowedPaths || [];
if (settings.tools.sandboxAllowedPaths?.length) {
sandboxConfig.allowedPaths = [
...new Set([
...sandboxConfig.allowedPaths,
...settings.tools.sandboxAllowedPaths,
]),
...new Set([...existingPaths, ...settings.tools.sandboxAllowedPaths]),
];
}
if (settings.tools.sandboxNetworkAccess !== undefined) {