From 6e1271d1aff964a583915f8f04e7576388b8f765 Mon Sep 17 00:00:00 2001 From: ashwinnathan-openai Date: Tue, 10 Mar 2026 15:34:43 -0700 Subject: [PATCH] cleanup --- codex-rs/core/src/tools/spec.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/codex-rs/core/src/tools/spec.rs b/codex-rs/core/src/tools/spec.rs index e20dfa6b9b..8801526c71 100644 --- a/codex-rs/core/src/tools/spec.rs +++ b/codex-rs/core/src/tools/spec.rs @@ -323,15 +323,6 @@ pub fn validate_builtin_tools_request(requested_builtin_tools: &[String]) -> Res invalid_names.join(", ") )); } - if requested_builtin_tools - .iter() - .any(|name| name == "write_stdin") - && !requested_builtin_tools - .iter() - .any(|name| name == "exec_command") - { - return Err("builtinTools cannot enable write_stdin without exec_command".to_string()); - } Ok(()) } @@ -4109,14 +4100,6 @@ mod tests { ); } - #[test] - fn validate_builtin_tools_request_requires_exec_for_write_stdin() { - assert_eq!( - validate_builtin_tools_request(&["write_stdin".to_string()]), - Err("builtinTools cannot enable write_stdin without exec_command".to_string()) - ); - } - #[test] fn test_mcp_tool_property_missing_type_defaults_to_string() { let config = test_config();