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.

Mark glob/grep as code blocks (#34628)

Ben Brandtb0eac4267d3f
diff --git a/crates/agent_servers/src/claude/tools.rs b/crates/agent_servers/src/claude/tools.rs
index 89d42c0daa2..e3ac6c14e22 100644
--- a/crates/agent_servers/src/claude/tools.rs
+++ b/crates/agent_servers/src/claude/tools.rs
@@ -97,10 +97,10 @@ impl ClaudeTool {
}
Self::Write(None) => "Write".into(),
Self::Glob(Some(params)) => {
- format!("Glob {params}")
+ format!("Glob `{params}`")
}
Self::Glob(None) => "Glob".into(),
- Self::Grep(Some(params)) => params.to_string(),
+ Self::Grep(Some(params)) => format!("`{params}`"),
Self::Grep(None) => "Grep".into(),
Self::WebFetch(Some(params)) => format!("Fetch {}", params.url),
Self::WebFetch(None) => "Fetch".into(),