Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Reword the apply_patch tool description (#33680)

yongjun-oaif737605606c1
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(),