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.

acp_thread: Render execute tool titles as plain text (#55783)

Ben Brandt00a677e6cf3e
diff --git a/crates/acp_thread/src/acp_thread.rs b/crates/acp_thread/src/acp_thread.rs
index a18f9f21e79..2c448d34307 100644
--- a/crates/acp_thread/src/acp_thread.rs
+++ b/crates/acp_thread/src/acp_thread.rs
@@ -299,10 +299,15 @@ impl ToolCall {
let subagent_session_info = subagent_session_info_from_meta(&tool_call.meta);
+ let label = if tool_call.kind == acp::ToolKind::Execute {
+ cx.new(|cx| Markdown::new_text(title.into(), cx))
+ } else {
+ cx.new(|cx| Markdown::new(title.into(), Some(language_registry.clone()), None, cx))
+ };
+
let result = Self {
id: tool_call.tool_call_id,
- label: cx
- .new(|cx| Markdown::new(title.into(), Some(language_registry.clone()), None, cx)),
+ label,
kind: tool_call.kind,
content,
locations: tool_call.locations,