Claude Code notifications not working? What to check
No banner, no bell, no sound, and the session has been waiting for ten minutes. On a Mac it is almost always one of the causes below. Start at the top: the first ones are the most common.
Checked against Claude Code's documentation (v2.1.311) and tested on macOS on 27 October 2026.
1. Your terminal doesn't show notifications by itself
"By default Claude Code sends a desktop notification only in Ghostty, Kitty, and iTerm2" (terminal configuration). In Terminal, Warp, or VS Code's and Cursor's terminals you get nothing until you add one of these to ~/.claude/settings.json:
- the terminal bell:
"preferredNotifChannel": "terminal_bell", or - a
Notificationhook: see Get notified when Claude Code needs your input.
Terminal by terminal, with the settings each needs: Ghostty, iTerm2, Terminal and tmux.
2. You were still at the keyboard, or it hasn't been 60 seconds
This is the one that surprises people. Claude Code only notifies when "you appear to be away from the terminal" (hooks reference), and the same timers apply to Notification hooks:
- A permission prompt notifies once you haven't typed for about six seconds. Each keystroke starts the wait again.
- A finished turn (
idle_prompt) notifies about 60 seconds after Claude finishes, only if you haven't typed since, and not while a background agent is still running. - Waiting for a usage limit to reset sends no
idle_promptat all.
Fix: for an alert the moment Claude finishes, add a Stop hook. For an alert the moment Claude asks for a permission, add a PermissionRequest hook; the docs recommend it "to run a hook immediately when Claude asks for permission to use a tool".
3. macOS isn't allowed to show it
- The terminal app needs notification permission: System Settings → Notifications → your terminal → Allow Notifications. The docs suggest checking this first when Ghostty, Kitty or iTerm2 show nothing.
- An
osascripthook shows its banner through Script Editor, and "if Script Editor doesn't have notification permission, the command fails silently, and macOS won't prompt you to grant it" (hooks guide). Runosascript -e 'display notification "test"'once in Terminal, then turn on System Settings → Notifications → Script Editor → Allow Notifications. - A Focus mode (Do Not Disturb, Work, Sleep) holds banners back. Check Control Center.
4. iTerm2 needs one more setting
For iTerm2 to pass Claude Code's notification on: Settings → Profiles → Terminal, check "Notification Center Alerts", then click "Filter Alerts" and enable "Send escape sequence-generated alerts" (terminal configuration).
5. The terminal bell is switched off
With preferredNotifChannel set to "terminal_bell" you hear the terminal's own bell, so its setting decides. In Terminal, Claude Code's first-run terminal setup (/terminal-setup) "turns off the audible bell in your Apple Terminal profile". Turn it back on in Terminal → Settings → Profiles → Advanced → "Audible bell". Terminal's bell is the system alert sound, so it also follows System Settings → Sound → Alert volume.
6. You run Claude Code inside tmux
By default, desktop notifications "never reach the outer terminal" from inside tmux. Add this to ~/.tmux.conf and run tmux source-file ~/.tmux.conf:
set -g allow-passthrough on
Hooks are not affected: Claude Code runs them itself, so an afplay or osascript hook works inside tmux without this line.
7. Your hook never runs
- Type
/hooksin Claude Code. If your hook isn't listed underNotificationorStop, Claude Code didn't load it. - Check the JSON: "trailing commas and comments aren't allowed".
jq . ~/.claude/settings.jsonprints the error and its line. - Check the file:
~/.claude/settings.jsonfor every project,.claude/settings.jsoninside a project for that project only. - A
matcheris case-sensitive:idle_prompt, notIdle_Prompt. Leave it empty ("") to match every notification type. - Run the hook's command by hand in Terminal. If it does nothing there, it does nothing in Claude Code either.
- Still stuck: start
claude --debugand read the log at~/.claude/debug/<session-id>.txt, which records each hook run (hooks reference).
Turning notifications off doesn't stop hooks: "You receive these hook events even with desktop notifications turned off" (hooks reference).
8. You pressed Esc, or answered No
Stop hooks "don't fire on user interrupts" (hooks guide). In our testing (Claude Code 2.1.302), choosing No on a permission or declining a question fired no hook either. So after an Esc, any tool that shows Claude's state from hooks alone still says "working".
9. It's the VS Code or Cursor extension
In the Claude Code extension's panel, permission_prompt only fires from Claude Code v2.1.233 on, and in our testing a finished turn there never sends idle_prompt. Use a Stop hook for "done". Details: Claude Code notifications in VS Code and Cursor.
Bellpip takes the guesswork out: every Claude Code session sits in your MacBook's notch with its state, and a different chime rings the moment one needs you, finishes or fails, in any terminal, VS Code, Cursor, JetBrains IDEs or the Claude app. It also reads the session's transcript, so an Esc that interrupts Claude sets the row back to idle instead of leaving it on "working". macOS only. Free for 7 days of use, then pay what you want, even $0.
Questions
Why does Claude Code notify me only sometimes?
Because it only notifies when you seem to be away: about six seconds without typing for a permission prompt, about 60 seconds after a finished turn. If you were typing, or came back sooner, nothing fires. Use a Stop or PermissionRequest hook for an alert every time.
Why don't I get a notification when Claude Code finishes?
The finished-turn notification (idle_prompt) waits about 60 seconds and is skipped if you typed, if a background agent still runs, or in the VS Code extension's panel. A Stop hook runs the moment Claude finishes.
My osascript hook works in Terminal but not from Claude Code. Why?
Check /hooks lists it and the JSON parses (section 7). Inside JSON, the inner double quotes of an osascript command must be written as \".
Do notifications work over SSH?
Yes: "the desktop notification reaches your local machine over SSH". Ghostty and Kitty pass it on by themselves; iTerm2 needs the setting in section 4. A hook runs on the remote machine, so an afplay hook there won't play on your Mac.