[Bug] Audio hooks trigger unexpectedly after Claude Code process completion

Resolved 💬 5 comments Opened Dec 17, 2025 by lpsgverrilla Closed Feb 14, 2026

Bug Description
I have used claude code to configure a hook to play a sound everytime claudecode Stop or everytime claudecode demands my input. The hook works fine, but sometimes the sound plays out of nowhere, even after I have finished using claude code for some time. Claude Code tried to diagnose the issue and said it might be subagents, but that sounds strange to me because I'm running simple processes and they're not spawning subagents with complex workflows that would take longer than the main cc.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.0.71
  • Feedback ID: 0afe7993-fa57-4146-b853-9117208b077b
"hooks": {
    
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "powershell -Command \"[Console]::Beep(600,15)\" > $null 2>&1"
          }
        ]
      }
    ],
    "Notification": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "powershell -Command \"[Console]::Beep(600,15)\" > $null 2>&1"
          }
        ]
      }
    ]
  }

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗