mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Share platform identity across path, network, and sandbox configuration (#46334)
## What changed - Add `Platform` to `codex-utils-path-uri` with metadata parsing, native platform detection, and path convention mapping. Preserve missing or unrecognized metadata as `Unknown`. - Replace `NetworkProxyExecutorOs` with the shared type and keep executor-specific socket path validation in the network proxy. - Extract `effective_sandbox_mode` with explicit platform and Windows sandbox level inputs, preserving the native Windows fallback from `workspace-write` to `read-only` when the sandbox is disabled. ## Testing Add unit tests for platform metadata, path conventions, native platform detection, and sandbox mode selection across platforms and Windows sandbox levels. GitOrigin-RevId: 4fe0972e3a91040e35f2a6dfa5bcdf6c9a29be88
This commit is contained in:
1 parent
fd875b188b
commit
3724dc8361
31 files changed
+277
-211
No files matched your search
@@ -143,9 +143,7 @@ for family in (socket.AF_NETLINK, getattr(socket, 'AF_VSOCK', 40)):
|
||||
let state = build_config_state(
|
||||
config,
|
||||
NetworkProxyConstraints::default(),
|
||||
codex_network_proxy::NetworkProxyExecutorOs::from_platform_os(Some(
|
||||
std::env::consts::OS,
|
||||
)),
|
||||
codex_network_proxy::Platform::native(),
|
||||
)
|
||||
.expect("valid managed network configuration");
|
||||
let network = NetworkProxy::builder()
|
||||
|
||||
Reference in new issue
Block a user