From f737605606c14e3aa59a4c17be80d338f164dff5 Mon Sep 17 00:00:00 2001 From: yongjun-oai Date: Thu, 16 Jul 2026 19:44:40 +0000 Subject: [PATCH] Reword the apply_patch tool description (#33680) GitOrigin-RevId: 4d44f0c61578cbce04a4f6dffdba4833c39f4491 --- codex-rs/core/src/tools/handlers/apply_patch_spec.rs | 2 +- codex-rs/core/src/tools/handlers/apply_patch_spec_tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/tools/handlers/apply_patch_spec.rs b/codex-rs/core/src/tools/handlers/apply_patch_spec.rs index 358f045db1..8227605027 100644 --- a/codex-rs/core/src/tools/handlers/apply_patch_spec.rs +++ b/codex-rs/core/src/tools/handlers/apply_patch_spec.rs @@ -17,7 +17,7 @@ pub fn create_apply_patch_freeform_tool(include_environment_id: bool) -> ToolSpe }; ToolSpec::Freeform(FreeformTool { name: "apply_patch".to_string(), - description: "Use the `apply_patch` tool to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON.".to_string(), + description: "The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON.".to_string(), format: FreeformToolFormat { r#type: "grammar".to_string(), syntax: "lark".to_string(), diff --git a/codex-rs/core/src/tools/handlers/apply_patch_spec_tests.rs b/codex-rs/core/src/tools/handlers/apply_patch_spec_tests.rs index 7d172becae..d6fe521c2f 100644 --- a/codex-rs/core/src/tools/handlers/apply_patch_spec_tests.rs +++ b/codex-rs/core/src/tools/handlers/apply_patch_spec_tests.rs @@ -8,7 +8,7 @@ fn create_apply_patch_freeform_tool_matches_expected_spec() { ToolSpec::Freeform(FreeformTool { name: "apply_patch".to_string(), description: - "Use the `apply_patch` tool to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON." + "The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON." .to_string(), format: FreeformToolFormat { r#type: "grammar".to_string(),