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.
9e75871d48Danilo Leal committed on 6/3/2025, 2:14:26 PM· committed by GitHubparent707a4c7
1 file changedLine totals unavailable