From 55d934a3beb84b07dda4b6e78b1ebae59b602bd0 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Fri, 28 Mar 2025 13:13:15 -0400 Subject: [PATCH] Show tool name for Unknown tool (#27667) Right now we can't see what tool name the model was trying to run. Release Notes: - N/A --- crates/assistant2/src/tool_use.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant2/src/tool_use.rs b/crates/assistant2/src/tool_use.rs index d13c711d85..cec6623aea 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() } }