mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Honor environment-resolved workspace roots (#40912)
## What changed - Add effective workspace roots to `EnvironmentConfig` and use them when materializing permission profiles and filesystem context. - Preserve selection roots for thread-owned configurations while allowing a ready environment attachment to supply its resolved roots. - Propagate resolved roots to child environments and validate both command and `apply_patch` writes in owner-provided secondary workspaces. GitOrigin-RevId: 1832c168ce1fc37fa67efc2a472998ab4f448c70
This commit is contained in:
1 parent
5b92c2d2f5
commit
7625bd5665
29 files changed
+191
-67
No files matched your search
@@ -27,6 +27,7 @@ fn test_turn_environment(environment_id: &str) -> crate::session::turn_context::
|
||||
workspace_roots: Vec::new(),
|
||||
config: EnvironmentConfigState::Ready(EnvironmentConfig {
|
||||
allow_login_shell: true,
|
||||
workspace_roots: Vec::new(),
|
||||
windows_sandbox_level: WindowsSandboxLevel::Disabled,
|
||||
windows_sandbox_private_desktop: true,
|
||||
use_legacy_landlock: false,
|
||||
|
||||
@@ -553,6 +553,7 @@ mod tests {
|
||||
workspace_roots: Vec::new(),
|
||||
config: EnvironmentConfigState::Ready(EnvironmentConfig {
|
||||
allow_login_shell: true,
|
||||
workspace_roots: Vec::new(),
|
||||
windows_sandbox_level: WindowsSandboxLevel::Disabled,
|
||||
windows_sandbox_private_desktop: true,
|
||||
use_legacy_landlock: false,
|
||||
|
||||
Reference in new issue
Block a user