mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
fix(protocol): preserve legacy workspace-write semantics
This commit is contained in:
@@ -1644,7 +1644,7 @@ impl CodexMessageProcessor {
|
||||
};
|
||||
let exec_params = ExecParams {
|
||||
command,
|
||||
cwd,
|
||||
cwd: cwd.clone(),
|
||||
expiration,
|
||||
env,
|
||||
network: started_network_proxy
|
||||
@@ -1665,7 +1665,7 @@ impl CodexMessageProcessor {
|
||||
Some(policy) => match self.config.permissions.sandbox_policy.can_set(&policy) {
|
||||
Ok(()) => {
|
||||
let file_system_sandbox_policy =
|
||||
codex_protocol::permissions::FileSystemSandboxPolicy::from(&policy);
|
||||
codex_protocol::permissions::FileSystemSandboxPolicy::from_legacy_sandbox_policy(&policy, &cwd);
|
||||
let network_sandbox_policy =
|
||||
codex_protocol::permissions::NetworkSandboxPolicy::from(&policy);
|
||||
(policy, file_system_sandbox_policy, network_sandbox_policy)
|
||||
|
||||
Reference in New Issue
Block a user