From 3f25d36b3c26eeb47d4dee43da08e7dc7a29c10f Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 17 Nov 2025 22:04:50 +0100 Subject: [PATCH] agent_ui: Fix text pasting no longer working (#42914) Regressed in https://github.com/zed-industries/zed/pull/42908 Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/agent_ui/src/acp/message_editor.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/agent_ui/src/acp/message_editor.rs b/crates/agent_ui/src/acp/message_editor.rs index 84896e7a74ab8f9514f0550bae1d28433650ce8d..120fdb26b3937e92312a63056d67cc2f35809068 100644 --- a/crates/agent_ui/src/acp/message_editor.rs +++ b/crates/agent_ui/src/acp/message_editor.rs @@ -916,7 +916,6 @@ impl MessageEditor { let Some(clipboard) = cx.read_from_clipboard() else { return; }; - cx.stop_propagation(); cx.spawn_in(window, async move |this, cx| { use itertools::Itertools; let (mut images, paths) = clipboard @@ -964,7 +963,10 @@ impl MessageEditor { } let replacement_text = MentionUri::PastedImage.as_link().to_string(); - let Ok(editor) = this.update(cx, |this, _| this.editor.clone()) else { + let Ok(editor) = this.update(cx, |this, cx| { + cx.stop_propagation(); + this.editor.clone() + }) else { return; }; for image in images {