Lightweight coding agent that runs in your terminal
Rust
fix: forgot to pass codex_linux_sandbox_exe through in cli/src/debug_sandbox.rs (#1095)
Michael Bolin4bf81373a730
diff --git a/codex-rs/cli/src/debug_sandbox.rs b/codex-rs/cli/src/debug_sandbox.rsindex a7388b293f..c09cee020a 100644--- a/codex-rs/cli/src/debug_sandbox.rs+++ b/codex-rs/cli/src/debug_sandbox.rs@@ -13,22 +13,42 @@ use crate::LandlockCommand;use crate::SeatbeltCommand;use crate::exit_status::handle_exit_status;-pub async fn run_command_under_seatbelt(command: SeatbeltCommand) -> anyhow::Result<()> {+pub async fn run_command_under_seatbelt(+ command: SeatbeltCommand,+ codex_linux_sandbox_exe: Option<PathBuf>,+) -> anyhow::Result<()> {let SeatbeltCommand {full_auto,sandbox,command,} = command;- run_command_under_sandbox(full_auto, sandbox, command, None, SandboxType::Seatbelt).await+ run_command_under_sandbox(+ full_auto,+ sandbox,+ command,+ codex_linux_sandbox_exe,+ SandboxType::Seatbelt,+ )+ .await}-pub async fn run_command_under_landlock(command: LandlockCommand) -> anyhow::Result<()> {+pub async fn run_command_under_landlock(+ command: LandlockCommand,+ codex_linux_sandbox_exe: Option<PathBuf>,+) -> anyhow::Result<()> {let LandlockCommand {full_auto,sandbox,command,} = command;- run_command_under_sandbox(full_auto, sandbox, command, None, SandboxType::Landlock).await+ run_command_under_sandbox(+ full_auto,+ sandbox,+ command,+ codex_linux_sandbox_exe,+ SandboxType::Landlock,+ )+ .await}enum SandboxType {diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rsindex 4c46967b08..8f44962e6d 100644--- a/codex-rs/cli/src/main.rs+++ b/codex-rs/cli/src/main.rs@@ -86,10 +86,18 @@ async fn cli_main(codex_linux_sandbox_exe: Option<PathBuf>) -> anyhow::Result<()}Some(Subcommand::Debug(debug_args)) => match debug_args.cmd {DebugCommand::Seatbelt(seatbelt_command) => {- codex_cli::debug_sandbox::run_command_under_seatbelt(seatbelt_command).await?;+ codex_cli::debug_sandbox::run_command_under_seatbelt(+ seatbelt_command,+ codex_linux_sandbox_exe,+ )+ .await?;}DebugCommand::Landlock(landlock_command) => {- codex_cli::debug_sandbox::run_command_under_landlock(landlock_command).await?;+ codex_cli::debug_sandbox::run_command_under_landlock(+ landlock_command,+ codex_linux_sandbox_exe,+ )+ .await?;}},}