Use reloaded Windows sandbox for command exec

This commit is contained in:
David Wiesen
2026-07-07 16:08:38 -07:00
parent df79057696
commit 8e8fd94c60
@@ -204,6 +204,7 @@ impl CommandExecRequestProcessor {
network_proxy_permission_profile,
managed_network_requirements_enabled,
windows_sandbox_workspace_roots,
windows_sandbox_level,
) = if let Some(permission_profile) = permission_profile {
let overrides = ConfigOverrides {
cwd: Some(cwd.to_path_buf()),
@@ -232,6 +233,7 @@ impl CommandExecRequestProcessor {
config.permissions.permission_profile().clone(),
config.managed_network_requirements_enabled(),
config.effective_workspace_roots(),
WindowsSandboxLevel::from_config(&config),
)
} else if let Some(policy) = sandbox_policy.map(|policy| policy.to_core()) {
self.config
@@ -258,6 +260,7 @@ impl CommandExecRequestProcessor {
self.config.permissions.permission_profile().clone(),
self.config.managed_network_requirements_enabled(),
self.config.effective_workspace_roots(),
windows_sandbox_level,
)
} else {
(
@@ -266,6 +269,7 @@ impl CommandExecRequestProcessor {
self.config.permissions.permission_profile().clone(),
self.config.managed_network_requirements_enabled(),
self.config.effective_workspace_roots(),
windows_sandbox_level,
)
};
let started_network_proxy = match network_proxy_spec