codex: align unified exec test harness with dependency env

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Fan
2026-03-26 17:15:32 -04:00
parent 14a169b4bb
commit c27ee7ae9d

View File

@@ -81,7 +81,9 @@ async fn exec_command_with_tty(
let process_id = manager.allocate_process_id().await;
let cwd = workdir.unwrap_or_else(|| turn.cwd.clone().to_path_buf());
let command = vec!["bash".to_string(), "-lc".to_string(), cmd.to_string()];
let request = test_exec_request(turn, command.clone(), cwd.clone(), shell_env());
let mut env = shell_env();
env.extend(session.dependency_env().await);
let request = test_exec_request(turn, command.clone(), cwd.clone(), env);
let process = Arc::new(
manager