Fix external agent still being marked as generating after error response (#35992)
Release Notes: - N/A
This commit is contained in:
parent
32975c4208
commit
d78bd8f1d7
1 changed files with 5 additions and 2 deletions
|
@ -1072,8 +1072,11 @@ impl AcpThread {
|
||||||
|
|
||||||
cx.spawn(async move |this, cx| match rx.await {
|
cx.spawn(async move |this, cx| match rx.await {
|
||||||
Ok(Err(e)) => {
|
Ok(Err(e)) => {
|
||||||
this.update(cx, |_, cx| cx.emit(AcpThreadEvent::Error))
|
this.update(cx, |this, cx| {
|
||||||
.log_err();
|
this.send_task.take();
|
||||||
|
cx.emit(AcpThreadEvent::Error)
|
||||||
|
})
|
||||||
|
.log_err();
|
||||||
Err(e)?
|
Err(e)?
|
||||||
}
|
}
|
||||||
result => {
|
result => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue