# agent: Make the sound notification play only if Zed is in the background \(\#31975\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9e75871d48020c4d018258e3b6e0c5bc6f22e96e

Requested commit: 9e75871d48020c4d018258e3b6e0c5bc6f22e96e

Commit: 9e75871d48020c4d018258e3b6e0c5bc6f22e96e

Tree: 0c761e8dfcc72fd8ed3a914a397fbcee1ec4c66e

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Make the sound notification play only if Zed is in the background (#31975)

Users were giving feedback about the sound notification being
annoying/unnecessary if Zed is in the foreground, which I agree! So,
this PR changes it so that it only plays if that is not the case.

Release Notes:

- agent: Improved sound notification behavior by making it play only if
Zed is in the background.
```

## Parents

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

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