mirror of
https://github.com/openai/codex.git
synced 2026-11-03 08:22:30 +00:00
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:
1 parent
c2bdb7812c
commit
e2dbe7dfc3
5 files changed
+392
-7
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user