Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Prevent sending whitespace only messages (#28409)
5brian12212dc329b1
diff --git a/crates/agent/src/message_editor.rs b/crates/agent/src/message_editor.rsindex 85cb62e24ab..6daa5b6bbfe 100644--- a/crates/agent/src/message_editor.rs+++ b/crates/agent/src/message_editor.rs@@ -201,7 +201,7 @@ impl MessageEditor {}fn is_editor_empty(&self, cx: &App) -> bool {- self.editor.read(cx).text(cx).is_empty()+ self.editor.read(cx).text(cx).trim().is_empty()}fn is_model_selected(&self, cx: &App) -> bool {