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.

assistant2: Consider tool use as part of the "streaming" state (#26723)

Marshall Bowersa0be6c8cb28c
diff --git a/crates/assistant2/src/thread.rs b/crates/assistant2/src/thread.rs
index 2cad563ab52..7aa9040dce4 100644
--- a/crates/assistant2/src/thread.rs
+++ b/crates/assistant2/src/thread.rs
@@ -200,7 +200,7 @@ impl Thread {
}
pub fn is_streaming(&self) -> bool {
- !self.pending_completions.is_empty()
+ !self.pending_completions.is_empty() || !self.all_tools_finished()
}
pub fn tools(&self) -> &Arc<ToolWorkingSet> {