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.

Show tool name for Unknown tool (#27667)

Richard Feldman55d934a3beb8
diff --git a/crates/assistant2/src/tool_use.rs b/crates/assistant2/src/tool_use.rs
index d13c711d85a..cec6623aea6 100644
--- a/crates/assistant2/src/tool_use.rs
+++ b/crates/assistant2/src/tool_use.rs
@@ -209,7 +209,7 @@ impl ToolUseState {
if let Some(tool) = self.tools.tool(tool_name, cx) {
tool.ui_text(input).into()
} else {
- "Unknown tool".into()
+ format!("Unknown tool {tool_name:?}").into()
}
}