From d78bd8f1d738b3d9da23b707467237500ca4e961 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Tue, 12 Aug 2025 21:41:00 -0400 Subject: [PATCH] Fix external agent still being marked as generating after error response (#35992) Release Notes: - N/A --- crates/acp_thread/src/acp_thread.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/acp_thread/src/acp_thread.rs b/crates/acp_thread/src/acp_thread.rs index cadab3d62c..d09c80fe9d 100644 --- a/crates/acp_thread/src/acp_thread.rs +++ b/crates/acp_thread/src/acp_thread.rs @@ -1072,8 +1072,11 @@ impl AcpThread { cx.spawn(async move |this, cx| match rx.await { Ok(Err(e)) => { - this.update(cx, |_, cx| cx.emit(AcpThreadEvent::Error)) - .log_err(); + this.update(cx, |this, cx| { + this.send_task.take(); + cx.emit(AcpThreadEvent::Error) + }) + .log_err(); Err(e)? } result => {