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.

Only use `StreamingEditFileTool` when streaming is available (#50616)

Bennet Bo Fennere20905f28481
diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs
index 2e693a85cd1..c57bd1e99b9 100644
--- a/crates/agent/src/thread.rs
+++ b/crates/agent/src/thread.rs
@@ -2617,7 +2617,8 @@ impl Thread {
}
}
- let use_streaming_edit_tool = cx.has_flag::<StreamingEditFileToolFeatureFlag>();
+ let use_streaming_edit_tool =
+ cx.has_flag::<StreamingEditFileToolFeatureFlag>() && model.supports_streaming_tools();
let mut tools = self
.tools