Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Update `old_text` docs for `StreamingEditFileTool` (#50921)
Bennet Bo Fenner3fe3776f5270
diff --git a/crates/agent/src/tools/streaming_edit_file_tool.rs b/crates/agent/src/tools/streaming_edit_file_tool.rsindex 81846ec282a..c326ed3c101 100644--- a/crates/agent/src/tools/streaming_edit_file_tool.rs+++ b/crates/agent/src/tools/streaming_edit_file_tool.rs@@ -108,6 +108,11 @@ pub enum StreamingEditFileMode {pub struct Edit {/// The exact text to find in the file. This will be matched using fuzzy matching/// to handle minor differences in whitespace or formatting.+ ///+ /// Always include complete lines. Do not start or end mid-line.+ /// Be minimal with replacements:+ /// - For unique lines, include only those lines+ /// - For non-unique lines, include enough context to identify thempub old_text: String,/// The text to replace it withpub new_text: String,