Show tool name for Unknown tool (#27667)

Richard Feldman created

Right now we can't see what tool name the model was trying to run.

Release Notes:

- N/A

Change summary

crates/assistant2/src/tool_use.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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()
         }
     }