Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Don't pass back the diff on successful edits (#59335)
Ben Brandtf16a46967b1f
diff --git a/crates/agent/src/tools/edit_session.rs b/crates/agent/src/tools/edit_session.rsindex f817a99a500..9fd116fe18b 100644--- a/crates/agent/src/tools/edit_session.rs+++ b/crates/agent/src/tools/edit_session.rs@@ -102,11 +102,7 @@ impl std::fmt::Display for EditSessionOutput {if diff.is_empty() {write!(f, "No edits were made.")} else {- write!(- f,- "Edited {}:\n\n```diff\n{diff}\n```",- input_path.display()- )+ write!(f, "Edited {} successfully", input_path.display())}}EditSessionOutput::Error {