Skip to content

[BUG] Notification Hook 10 second delay #5186

@bkaes

Description

@bkaes

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.69
  • Operating System: Ubuntu 24.04.2
  • Terminal: Terminal App

Bug Description

~8-10 second delay for Notification Hook

Steps to Reproduce

  1. Setup a hook for notifications
  2. Request Claude Code to go into a different directory in order to send me to trigger the notification hook.

Expected Behavior

The notification hook to query and execute immediately

Actual Behavior

[DEBUG] Matched 0 unique hooks for query "LS" (0 before deduplication)
[DEBUG] Found 0 hook commands to execute

10 Second Delay

[DEBUG] Getting matching hook commands for Notification with query: undefined
[DEBUG] Found 1 hook matchers in settings
[DEBUG] Matched 1 unique hooks for query "no match query" (1 before deduplication)
[DEBUG] Notification [echo "$(date): Notification hook triggered, playing sound" >> ~/.claude/hook.log && paplay ~/.claude/sounds/correct-answer.wav &] completed with status 0

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas reproHas detailed reproduction stepsperf:memoryplatform:linuxIssue specifically occurs on Linux

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions