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.
This commit is contained in:
Danilo Leal
2025-10-22 19:29:35 -03:00
committed by GitHub
parent 2096f256f2
commit 731237222e
+1
View File
@@ -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(())
})