Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid panic when opening thread as markdown in non-local project (#30061)
Cole Miller03b635bb273e
diff --git a/crates/agent/src/active_thread.rs b/crates/agent/src/active_thread.rsindex ddc43be4e56..e22726f56a7 100644--- a/crates/agent/src/active_thread.rs+++ b/crates/agent/src/active_thread.rs@@ -3448,6 +3448,11 @@ pub(crate) fn open_active_thread_as_markdown(.unwrap_or_else(|| "Thread".to_string());let project = workspace.project().clone();++ if !project.read(cx).is_local() {+ anyhow::bail!("failed to open active thread as markdown in remote project");+ }+let buffer = project.update(cx, |project, cx| {project.create_local_buffer(&markdown, Some(markdown_language), cx)});