Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant2: Include the thread summary in the Markdown representation (#26693)
Marshall Bowers1be3f819205f
diff --git a/crates/assistant2/src/thread.rs b/crates/assistant2/src/thread.rsindex ae2ffa35029..2cad563ab52 100644--- a/crates/assistant2/src/thread.rs+++ b/crates/assistant2/src/thread.rs@@ -799,6 +799,10 @@ impl Thread {pub fn to_markdown(&self) -> Result<String> {let mut markdown = Vec::new();+ if let Some(summary) = self.summary() {+ writeln!(markdown, "# {summary}\n")?;+ };+for message in self.messages() {writeln!(markdown,