Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fall back to path-only mention for binary files in the agent panel (#61279)
serenNan7f96e13d7bbb
diff --git a/crates/agent_ui/src/mention_set.rs b/crates/agent_ui/src/mention_set.rsindex 97d2dfbca6f..3ab2f10060b 100644--- a/crates/agent_ui/src/mention_set.rs+++ b/crates/agent_ui/src/mention_set.rs@@ -424,7 +424,12 @@ impl MentionSet {let buffer = project.update(cx, |project, cx| project.open_buffer(project_path, cx));cx.spawn(async move |_, cx| {- let buffer = buffer.await?;+ let buffer = match buffer.await {+ Ok(buffer) => buffer,+ Err(_error) => {+ return Ok(Mention::Link);+ }+ };let buffer_content = outline::get_buffer_content_or_outline(buffer.clone(),Some(&abs_path.to_string_lossy()),