From 7179a96f04594830badf55df87e2f30774c7837c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vianney=20le=20Cl=C3=A9ment=20de=20Saint-Marcq?= <244908+vianney@users.noreply.github.com> Date: Thu, 12 Feb 2026 13:39:15 +0100 Subject: [PATCH] agent: Fix edit_file tool description (#48588) This patch updates the description of the `edit_file` tool to recommend models to use the `move_path` tool instead of the `terminal` tool to move or rename files. The `move_path` tool is more specific and shall be preferred as it provides a better UI and dedicated permissions. Release Notes: - N/A --- crates/agent/src/tools/edit_file_tool.rs | 2 +- crates/agent/src/tools/streaming_edit_file_tool.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/agent/src/tools/edit_file_tool.rs b/crates/agent/src/tools/edit_file_tool.rs index 80df7b219fb265ea5f6172c9c21113dcfe95d689..ef3b3cc30a54fd6eb3c9e07c3bce4ea7b194ca47 100644 --- a/crates/agent/src/tools/edit_file_tool.rs +++ b/crates/agent/src/tools/edit_file_tool.rs @@ -31,7 +31,7 @@ use util::rel_path::RelPath; const DEFAULT_UI_TEXT: &str = "Editing file"; -/// This is a tool for creating a new file or editing an existing file. For moving or renaming files, you should generally use the `terminal` tool with the 'mv' command instead. +/// This is a tool for creating a new file or editing an existing file. For moving or renaming files, you should generally use the `move_path` tool instead. /// /// Before using this tool: /// diff --git a/crates/agent/src/tools/streaming_edit_file_tool.rs b/crates/agent/src/tools/streaming_edit_file_tool.rs index c2c577b58250413de0044a40f9de11c9c9623d96..b822191a7e78ba566f1551661e748b2027f2404d 100644 --- a/crates/agent/src/tools/streaming_edit_file_tool.rs +++ b/crates/agent/src/tools/streaming_edit_file_tool.rs @@ -28,7 +28,7 @@ use util::rel_path::RelPath; const DEFAULT_UI_TEXT: &str = "Editing file"; -/// This is a tool for creating a new file or editing an existing file. For moving or renaming files, you should generally use the `terminal` tool with the 'mv' command instead. +/// This is a tool for creating a new file or editing an existing file. For moving or renaming files, you should generally use the `move_path` tool instead. /// /// Before using this tool: ///