Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Move focus to the panel after sending a user message edit (#33049)
Danilo Leal5c7e90d49450
diff --git a/crates/agent/src/active_thread.rs b/crates/agent/src/active_thread.rsindex 76547546249..e6164894733 100644--- a/crates/agent/src/active_thread.rs+++ b/crates/agent/src/active_thread.rs@@ -1618,6 +1618,14 @@ impl ActiveThread {}).log_err();}));++ if let Some(workspace) = self.workspace.upgrade() {+ workspace.update(cx, |workspace, cx| {+ if let Some(panel) = workspace.panel::<AgentPanel>(cx) {+ panel.focus_handle(cx).focus(window);+ }+ });+ }}fn messages_after(&self, message_id: MessageId) -> &[MessageId] {