mirror of
https://github.com/openai/codex.git
synced 2026-11-14 06:48:26 +00:00
Centralize turn environment selection state (#38461)
## What changed - Store `TurnEnvironmentSelection` directly on each resolved `TurnEnvironment` instead of copying its environment ID, working directory, and workspace roots into separate fields. - Update environment resolution, tool execution, approvals, and related tests to access selection state through the retained value. GitOrigin-RevId: ab723d21e112b8af5bcaf1f772a5e376553312bc
This commit is contained in:
1 parent
18bbb585e7
commit
535795f7d1
31 files changed
+159
-146
No files matched your search
@@ -392,7 +392,7 @@ impl Session {
|
||||
sandbox.windows_sandbox_private_desktop =
|
||||
config.permissions.windows_sandbox_private_desktop;
|
||||
sandbox.use_legacy_landlock = config.features.use_legacy_landlock();
|
||||
(environment.environment_id.clone(), sandbox)
|
||||
(environment.selection.environment_id.clone(), sandbox)
|
||||
})
|
||||
.collect::<HashMap<_, _>>()
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user