# Do not send "finished" agent notification when about to send a queued message \(\#56157\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/40d87a8c1ffcec0bbc24745f8da988f867c8baef)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 40d87a8c1ffcec0bbc24745f8da988f867c8baef

Requested commit: 40d87a8c1ffcec0bbc24745f8da988f867c8baef

Commit: 40d87a8c1ffcec0bbc24745f8da988f867c8baef

Tree: 487fbe0e1fd8061781dc942ad6cc623234ab580e

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Do not send "finished" agent notification when about to send a queued message (#56157)

I wait for an agent it takes time/thinks, but I notice some odd error in
its work that I want to correct: I write a message, knowing that e.g.
Claude can read that later at some point and continue normally, and
focus away from Zed.

At some point, I get the notification I need to react to, only to
understand that the generation is ongoing still due to that delayed
message sent.

Release Notes:

- Fixed agent "finished" notification appearing right before the queued
message is sent
```

## Parents

- [be83c952f6c03cb46905839332d7e919be5e572a](https://git.cafe/gitcafe/zed/commit/be83c952f6c03cb46905839332d7e919be5e572a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/40d87a8c1ffcec0bbc24745f8da988f867c8baef?format=markdown)
