Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Revert "agent_ui: Fix agent UI stealing focus on start up" (#46231)

Lukas Wirth7274a96154da
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rs
index ae37d99d305..b6f560b0de5 100644
--- a/crates/agent_ui/src/acp/thread_view.rs
+++ b/crates/agent_ui/src/acp/thread_view.rs
@@ -736,9 +736,7 @@ impl AcpThreadView {
})
});
- if this.focus_handle(cx).is_focused(window) {
- this.message_editor.focus_handle(cx).focus(window, cx);
- }
+ this.message_editor.focus_handle(cx).focus(window, cx);
cx.notify();
}