Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions codex-rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions codex-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"file-search",
"git-tooling",
"linux-sandbox",
"windows-sandbox",
"login",
"mcp-client",
"mcp-server",
Expand Down Expand Up @@ -59,6 +60,7 @@ codex-exec = { path = "exec" }
codex-file-search = { path = "file-search" }
codex-git-tooling = { path = "git-tooling" }
codex-linux-sandbox = { path = "linux-sandbox" }
codex-windows-sandbox = { path = "windows-sandbox" }
codex-login = { path = "login" }
codex-mcp-client = { path = "mcp-client" }
codex-mcp-server = { path = "mcp-server" }
Expand Down Expand Up @@ -189,6 +191,15 @@ webbrowser = "1.0"
which = "6"
wildmatch = "2.5.0"
wiremock = "0.6"
windows = { version = "0.61.3", default-features = false, features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Security_Isolation",
"Win32_Storage_FileSystem",
"Win32_System_Memory",
"Win32_System_Threading",
] }
zeroize = "1.8.1"

[workspace.lints]
Expand Down
28 changes: 28 additions & 0 deletions codex-rs/windows-sandbox/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
edition = "2024"
name = "codex-windows-sandbox"
version = { workspace = true }

[[bin]]
name = "codex-windows-sandbox"
path = "src/main.rs"

[lib]
name = "codex_windows_sandbox"
path = "src/lib.rs"

[lints]
workspace = true

[target.'cfg(target_os = "windows")'.dependencies]
clap = { workspace = true, features = ["derive"] }
codex-protocol = { workspace = true }
tokio = { workspace = true, features = ["process", "rt", "rt-multi-thread"] }
tracing = { workspace = true }
windows = { workspace = true }

[target.'cfg(target_os = "windows")'.dependencies.serde_json]
workspace = true

[target.'cfg(target_os = "windows")'.dependencies.serde]
workspace = true
4 changes: 4 additions & 0 deletions codex-rs/windows-sandbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# codex-windows-sandbox

A standalone helper executable that can launch commands inside a Windows AppContainer
sandbox using the same `SandboxPolicy` JSON representation used across Codex.
10 changes: 10 additions & 0 deletions codex-rs/windows-sandbox/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#[cfg(target_os = "windows")]
mod windows_appcontainer;

#[cfg(target_os = "windows")]
pub use windows_appcontainer::run_main;

#[cfg(not(target_os = "windows"))]
pub fn run_main() -> ! {
panic!("codex-windows-sandbox is only supported on Windows");
}
3 changes: 3 additions & 0 deletions codex-rs/windows-sandbox/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() -> ! {
codex_windows_sandbox::run_main()
}
Loading
Loading