From bec2bfeb8b5e8dfcb9f9ac78dfef081c6474e1d3 Mon Sep 17 00:00:00 2001 From: Bennet Fenner Date: Mon, 13 Oct 2025 18:09:42 +0200 Subject: [PATCH] acp: Clear message editor after running /login (#40116) Release Notes: - N/A --- crates/agent_ui/src/acp/thread_view.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rs index 67486eb95aa59bb3663791ef95eff737e6914006..490739e075140c2b2daa5b7535ac5b46d0ce0047 100644 --- a/crates/agent_ui/src/acp/thread_view.rs +++ b/crates/agent_ui/src/acp/thread_view.rs @@ -1045,6 +1045,9 @@ impl AcpThreadView { return; }; + self.message_editor + .update(cx, |editor, cx| editor.clear(window, cx)); + let connection = thread.read(cx).connection().clone(); let can_login = !connection.auth_methods().is_empty() || self.login.is_some(); // Does the agent have a specific logout command? Prefer that in case they need to reset internal state.