Completion sound doesn’t play when the agent waits for command approval (Run button)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I have Completion Sound set on in cursor settings and it works, but not when I have a Run button to confirm. It’s not entirely ‘completion’ but it does fall under the definition of ‘Play a sound when agents finish or need attention’ as described below the Completion Sound setting in cursor settings. I do need this beep to get back to cursor when I am doing something else in the meantime.

Steps to Reproduce

Steps to reproduce:

  1. In Cursor Settings > Notifications, turn on “Completion Sound”
    (“Play a sound when agents finish or need attention”) and
    “System Notifications”. Preview plays the sound correctly.
  2. In Agent mode, with command approval on (commands are not auto-run),
    give the agent a task that needs a terminal command
    (for example: “commit and push this change”).
  3. The agent stops and shows a command card with Skip / Always Run / Run,
    “Pending approval”.
  4. Switch to another app and wait.

Expected: a sound (and a notification) when the agent stops for approval,
since it “needs attention”.

Actual: no sound and no notification while the agent waits for Run.
The sound does play when the agent finishes a task.

Expected Behavior

When the agent stops and waits for me to approve a command (the card
with Skip / Always Run / Run, “Pending approval”), Cursor should play
the completion sound and show a system notification, as the setting
says: “Play a sound when agents finish or need attention”. The sound
already plays when the agent finishes a task, but not when it waits
for approval, which is when I most need it.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

3.27.22

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @Dror_Guy,

Switch to your other app before the approval card shows up (for example, right after you send the task), and you should get the sound when it appears. Cursor skips the sound and notification if you’re looking at that chat when the card appears, and doesn’t replay them after you switch away, which is why your steps stay silent. For the notification, Cursor also needs to be allowed in macOS System Settings > Notifications.

If it’s still silent with Cursor in the background, let me know whether you’re in the Editor or the Agents Window and I’ll take a look. An option to get alerted even while you’re watching is fair feedback, and I’ll pass it along.