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.

agent: Remove unneeded branch in `use_pending_tools` (#27922)

Marshall Bowersd82bf132ca0a
diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs
index de98fbf845e..a2dd6da5d5c 100644
--- a/crates/agent/src/thread.rs
+++ b/crates/agent/src/thread.rs
@@ -1376,15 +1376,6 @@ impl Thread {
cx,
);
}
- } else if let Some(tool) = self.tools.tool(&tool_use.name, cx) {
- self.run_tool(
- tool_use.id.clone(),
- tool_use.ui_text.clone(),
- tool_use.input.clone(),
- &messages,
- tool,
- cx,
- );
}
}