Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix external agent still being marked as generating after error response (#35992)

Cole Millerd78bd8f1d738
diff --git a/crates/acp_thread/src/acp_thread.rs b/crates/acp_thread/src/acp_thread.rs
index cadab3d62cc..d09c80fe9d8 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 => {