Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Fix message editor stealing focus from other panels (#47321)
Fabian Szabo67e0cec0b1f0
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rsindex ceb320321d8..98b2825cb33 100644--- a/crates/agent_ui/src/acp/thread_view.rs+++ b/crates/agent_ui/src/acp/thread_view.rs@@ -889,7 +889,9 @@ impl AcpThreadView {})});- this.message_editor.focus_handle(cx).focus(window, cx);+ if this.focus_handle.contains_focused(window, cx) {+ this.message_editor.focus_handle(cx).focus(window, cx);+ }cx.notify();}