From 731237222e7e8f8292dc39135c07fe6de4523313 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 22 Oct 2025 19:29:35 -0300 Subject: [PATCH] agent_ui: Focus the message editor after regenerating a user message (#40938) Release Notes: - agent: Improved the editing previous messages UX by focusing in the agent panel's message editor after regenerating a prompt, instead of moving focus to the nearest regular buffer. --- crates/agent_ui/src/acp/thread_view.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rs index 47ddd705bd653eb5c9635dd0307e9ebbc2638378..adf279c82036e8f8219c5647f016ec4fc887a046 100644 --- a/crates/agent_ui/src/acp/thread_view.rs +++ b/crates/agent_ui/src/acp/thread_view.rs @@ -1259,6 +1259,7 @@ impl AcpThreadView { .await?; this.update_in(cx, |this, window, cx| { this.send_impl(message_editor, window, cx); + this.focus_handle(cx).focus(window); })?; anyhow::Ok(()) })