agent2: Fix agent location still being present after thread stopped (#36471)
Release Notes: - N/A
This commit is contained in:
parent
5df9c7c1c2
commit
97a31c59c9
2 changed files with 6 additions and 4 deletions
|
@ -1282,6 +1282,8 @@ impl AcpThread {
|
|||
.await?;
|
||||
|
||||
this.update(cx, |this, cx| {
|
||||
this.project
|
||||
.update(cx, |project, cx| project.set_agent_location(None, cx));
|
||||
match response {
|
||||
Ok(Err(e)) => {
|
||||
this.send_task.take();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue