diff options
Diffstat (limited to 'misc/codex/files')
8 files changed, 13 insertions, 94 deletions
| diff --git a/misc/codex/files/patch-codex-rs_core_src_exec__command_exec__command__params.rs b/misc/codex/files/patch-codex-rs_core_src_exec__command_exec__command__params.rs deleted file mode 100644 index 60eb99d35251..000000000000 --- a/misc/codex/files/patch-codex-rs_core_src_exec__command_exec__command__params.rs +++ /dev/null @@ -1,11 +0,0 @@ ---- codex-rs/core/src/exec_command/exec_command_params.rs.orig	2025-09-27 09:00:51 UTC -+++ codex-rs/core/src/exec_command/exec_command_params.rs -@@ -33,7 +33,7 @@ fn default_shell() -> String { - } -  - fn default_shell() -> String { --    "/bin/bash".to_string() -+    "/bin/sh".to_string() - } -  - #[derive(Debug, Deserialize, Serialize)] diff --git a/misc/codex/files/patch-codex-rs_core_src_exec__command_responses__api.rs b/misc/codex/files/patch-codex-rs_core_src_exec__command_responses__api.rs deleted file mode 100644 index b900e89ad10f..000000000000 --- a/misc/codex/files/patch-codex-rs_core_src_exec__command_responses__api.rs +++ /dev/null @@ -1,11 +0,0 @@ ---- codex-rs/core/src/exec_command/responses_api.rs.orig	2025-09-27 09:01:29 UTC -+++ codex-rs/core/src/exec_command/responses_api.rs -@@ -29,7 +29,7 @@ pub fn create_exec_command_tool_for_responses_api() -> -     properties.insert( -         "shell".to_string(), -         JsonSchema::String { --            description: Some("The shell to use. Defaults to \"/bin/bash\".".to_string()), -+            description: Some("The shell to use. Defaults to \"/bin/sh\".".to_string()), -         }, -     ); -     properties.insert( diff --git a/misc/codex/files/patch-codex-rs_core_src_exec__command_session__manager.rs b/misc/codex/files/patch-codex-rs_core_src_exec__command_session__manager.rs deleted file mode 100644 index a5db5d4efccb..000000000000 --- a/misc/codex/files/patch-codex-rs_core_src_exec__command_session__manager.rs +++ /dev/null @@ -1,11 +0,0 @@ ---- codex-rs/core/src/exec_command/session_manager.rs.orig	2025-09-27 09:02:31 UTC -+++ codex-rs/core/src/exec_command/session_manager.rs -@@ -376,7 +376,7 @@ PY"# -             cmd, -             yield_time_ms: 3_000, -             max_output_tokens: 1_000, // large enough to avoid truncation here --            shell: "/bin/bash".to_string(), -+            shell: "/bin/sh".to_string(), -             login: false, -         }; -         let initial_output = match session_manager diff --git a/misc/codex/files/patch-codex-rs_core_src_unified__exec_mod.rs b/misc/codex/files/patch-codex-rs_core_src_unified__exec_mod.rs deleted file mode 100644 index 77088343e65d..000000000000 --- a/misc/codex/files/patch-codex-rs_core_src_unified__exec_mod.rs +++ /dev/null @@ -1,38 +0,0 @@ ---- codex-rs/core/src/unified_exec/mod.rs.orig	2025-09-27 09:05:00 UTC -+++ codex-rs/core/src/unified_exec/mod.rs -@@ -434,7 +434,7 @@ mod tests { -         let open_shell = manager -             .handle_request(UnifiedExecRequest { -                 session_id: None, --                input_chunks: &["bash".to_string(), "-i".to_string()], -+                input_chunks: &["sh".to_string(), "-i".to_string()], -                 timeout_ms: Some(2_500), -             }) -             .await?; -@@ -473,7 +473,7 @@ mod tests { -         let shell_a = manager -             .handle_request(UnifiedExecRequest { -                 session_id: None, --                input_chunks: &["/bin/bash".to_string(), "-i".to_string()], -+                input_chunks: &["/bin/sh".to_string(), "-i".to_string()], -                 timeout_ms: Some(2_500), -             }) -             .await?; -@@ -521,7 +521,7 @@ mod tests { -         let open_shell = manager -             .handle_request(UnifiedExecRequest { -                 session_id: None, --                input_chunks: &["bash".to_string(), "-i".to_string()], -+                input_chunks: &["sh".to_string(), "-i".to_string()], -                 timeout_ms: Some(2_500), -             }) -             .await?; -@@ -616,7 +616,7 @@ mod tests { -         let open_shell = manager -             .handle_request(UnifiedExecRequest { -                 session_id: None, --                input_chunks: &["/bin/bash".to_string(), "-i".to_string()], -+                input_chunks: &["/bin/sh".to_string(), "-i".to_string()], -                 timeout_ms: Some(2_500), -             }) -             .await?; diff --git a/misc/codex/files/patch-codex-rs_core_tests_suite_exec.rs b/misc/codex/files/patch-codex-rs_core_tests_suite_exec.rs deleted file mode 100644 index 3b232ec4c752..000000000000 --- a/misc/codex/files/patch-codex-rs_core_tests_suite_exec.rs +++ /dev/null @@ -1,11 +0,0 @@ ---- codex-rs/core/tests/suite/exec.rs.orig	2025-09-27 09:06:53 UTC -+++ codex-rs/core/tests/suite/exec.rs -@@ -104,7 +104,7 @@ async fn exit_command_not_found_is_ok() { -     } -  -     let tmp = TempDir::new().expect("should be able to create temp dir"); --    let cmd = vec!["/bin/bash", "-c", "nonexistent_command_12345"]; -+    let cmd = vec!["/bin/sh", "-c", "nonexistent_command_12345"]; -     run_test_cmd(tmp, cmd).await.unwrap(); - } -  diff --git a/misc/codex/files/patch-codex-rs_core_tests_suite_shell__serialization.rs b/misc/codex/files/patch-codex-rs_core_tests_suite_shell__serialization.rs new file mode 100644 index 000000000000..37f66dd7d506 --- /dev/null +++ b/misc/codex/files/patch-codex-rs_core_tests_suite_shell__serialization.rs @@ -0,0 +1,12 @@ +--- codex-rs/core/tests/suite/shell_serialization.rs.orig	2025-10-25 21:16:34 UTC ++++ codex-rs/core/tests/suite/shell_serialization.rs +@@ -238,6 +238,9 @@ async fn shell_output_for_freeform_tool_records_durati +     #[cfg(target_os = "linux")] +     let sleep_cmd = vec!["/bin/bash", "-c", "sleep 1"]; +  ++    #[cfg(target_os = "freebsd")] ++    let sleep_cmd = vec!["/bin/bash", "-c", "sleep 1"]; ++ +     #[cfg(target_os = "macos")] +     let sleep_cmd = vec!["/bin/bash", "-c", "sleep 1"]; +  diff --git a/misc/codex/files/patch-codex-rs_core_tests_suite_user__notification.rs b/misc/codex/files/patch-codex-rs_core_tests_suite_user__notification.rs deleted file mode 100644 index 85e58a77a1ae..000000000000 --- a/misc/codex/files/patch-codex-rs_core_tests_suite_user__notification.rs +++ /dev/null @@ -1,11 +0,0 @@ ---- codex-rs/core/tests/suite/user_notification.rs.orig	2025-09-27 09:08:21 UTC -+++ codex-rs/core/tests/suite/user_notification.rs -@@ -35,7 +35,7 @@ async fn summarize_context_three_requests_and_instruct -     let notify_script = notify_dir.path().join("notify.sh"); -     std::fs::write( -         ¬ify_script, --        r#"#!/bin/bash -+        r#"#!/bin/sh - set -e - echo -n "${@: -1}" > $(dirname "${0}")/notify.txt"#, -     )?; diff --git a/misc/codex/files/patch-codex-rs_exec_tests_suite_mod.rs b/misc/codex/files/patch-codex-rs_exec_tests_suite_mod.rs index e327dc0a115a..dc82a744793b 100644 --- a/misc/codex/files/patch-codex-rs_exec_tests_suite_mod.rs +++ b/misc/codex/files/patch-codex-rs_exec_tests_suite_mod.rs @@ -1,4 +1,4 @@ ---- codex-rs/exec/tests/suite/mod.rs.orig	2025-10-09 01:48:45 UTC +--- codex-rs/exec/tests/suite/mod.rs.orig	2025-10-25 21:16:34 UTC  +++ codex-rs/exec/tests/suite/mod.rs  @@ -4,5 +4,6 @@ mod resume;   mod originator; | 
