Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Add selected tool names to agent panel telemetry (#28247)
Thomas Mickley-Doylecb1ee01a6619
diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rsindex bebae477de3..036e1892d8d 100644--- a/crates/agent/src/thread.rs+++ b/crates/agent/src/thread.rs@@ -1547,6 +1547,13 @@ impl Thread {let thread_id = self.id().clone();let client = self.project.read(cx).client();+ let enabled_tool_names: Vec<String> = self+ .tools()+ .enabled_tools(cx)+ .iter()+ .map(|tool| tool.name().to_string())+ .collect();+self.message_feedback.insert(message_id, feedback);cx.notify();@@ -1570,6 +1577,7 @@ impl Thread {"Assistant Thread Rated",rating,thread_id,+ enabled_tool_names,message_id = message_id.0,message_content,thread_data,