removing network proxy for yolo (#17742)

**Summary**
- prevent managed requirements.toml network settings from leaking into
DangerFullAccess / yolo turns by gating managed proxy attachment on
sandbox mode
- keep guardian/sandboxed modes on the managed proxy path, while making
true yolo bypass the proxy entirely, including /shell full-access
commands
This commit is contained in:
Won Park authored and GitHub committed 2026-04-16 00:02:42 +00:00
1 parent c2bdb7812c
commit e2dbe7dfc3
5 files changed
+392 -7

No files matched your search

+5 -1
View File
@@ -2282,7 +2282,11 @@ impl Config {
}
pub fn managed_network_requirements_enabled(&self) -> bool {
self.config_layer_stack
!matches!(
self.permissions.sandbox_policy.get(),
SandboxPolicy::DangerFullAccess
) && self
.config_layer_stack
.requirements_toml()
.network
.is_some()