agent: Make it so delete_path tool needs user confirmation (#37191)
Closes https://github.com/zed-industries/zed/issues/37048 Release Notes: - agent: Make delete_path tool require user confirmation by default
This commit is contained in:
1 parent
9cce5087d0
commit
be2e78d24c
1 file changed
+1
-1
@@ -35,7 +35,7 @@ impl Tool for DeletePathTool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn needs_confirmation(&self, _: &serde_json::Value, _: &Entity<Project>, _: &App) -> bool {
|
fn needs_confirmation(&self, _: &serde_json::Value, _: &Entity<Project>, _: &App) -> bool {
|
||||||
false
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn may_perform_edits(&self) -> bool {
|
fn may_perform_edits(&self) -> bool {
|
||||||
|
|||||||
Reference in new issue
Block a user