Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Avoid requiring confirmation for tools that edit buffers (#27923)

Antonio Scandurra7a54dd7190a2
diff --git a/crates/assistant_tools/src/create_file_tool.rs b/crates/assistant_tools/src/create_file_tool.rs
index 57bff7594c2..b4f72a5f5ab 100644
--- a/crates/assistant_tools/src/create_file_tool.rs
+++ b/crates/assistant_tools/src/create_file_tool.rs
@@ -41,7 +41,7 @@ impl Tool for CreateFileTool {
}
fn needs_confirmation(&self) -> bool {
- true
+ false
}
fn description(&self) -> String {
diff --git a/crates/assistant_tools/src/edit_files_tool.rs b/crates/assistant_tools/src/edit_files_tool.rs
index 3cf3a2c6a65..6597f899430 100644
--- a/crates/assistant_tools/src/edit_files_tool.rs
+++ b/crates/assistant_tools/src/edit_files_tool.rs
@@ -82,7 +82,7 @@ impl Tool for EditFilesTool {
}
fn needs_confirmation(&self) -> bool {
- true
+ false
}
fn description(&self) -> String {
diff --git a/crates/assistant_tools/src/find_replace_file_tool.rs b/crates/assistant_tools/src/find_replace_file_tool.rs
index db51fe98913..e18763be208 100644
--- a/crates/assistant_tools/src/find_replace_file_tool.rs
+++ b/crates/assistant_tools/src/find_replace_file_tool.rs
@@ -130,7 +130,7 @@ impl Tool for FindReplaceFileTool {
}
fn needs_confirmation(&self) -> bool {
- true
+ false
}
fn description(&self) -> String {