Claude Code notifications not working: fixes by symptom
Check in order: your terminal sends desktop notifications (Ghostty, Kitty, iTerm2 by default), tmux has allow-passthrough on, macOS allows the terminal and no Focus mode hides it, and for an osascript hook, Script Editor may notify. Over ssh the alert needs a path back: hivemux connect relays remote notifications, mosh does not.
This page is for when notifications are already set up and still do not arrive. For setting them up in the first place, see How to get notified when Claude Code needs input or finishes. Claude Code facts below come from Anthropic’s docs: terminal configuration, hooks guide and settings reference.
A notification has to pass several gates: Claude Code must decide to send it, the terminal must understand it, tmux must let it through, and macOS must show it. Find the first gate that fails.
| Symptom | Likely cause | Fix |
|---|---|---|
| Nothing in Terminal.app, Warp or the VS Code terminal | With preferredNotifChannel at auto, Claude Code sends desktop notifications only in iTerm2, Ghostty and Kitty |
Set preferredNotifChannel to terminal_bell, or add a Notification hook |
| Nothing in iTerm2 | iTerm2 does not forward escape-sequence alerts by default | Profiles → Terminal: “Notification Center Alerts”, then Filter Alerts → “Send escape sequence-generated alerts” |
| Works outside tmux, silent inside | tmux swallows the escape sequence | set -g allow-passthrough on (or all) in ~/.tmux.conf, then reload |
| Silent only from a background tmux window | allow-passthrough on passes sequences only from a visible pane |
Use set -g allow-passthrough all |
| Nothing anywhere, even in a supported terminal | macOS blocks the terminal, or a Focus mode hides it | System Settings → Notifications → allow your terminal; check Focus |
| osascript hook runs but nothing shows | osascript notifies through Script Editor, which has no permission; it fails silently | Allow Script Editor in System Settings → Notifications |
| Hook never runs | Not loaded, wrong event, matcher mismatch, or disableAllHooks |
Check /hooks; restart the session if the edit was missed |
| Nothing from a session over mosh | Notifications do not pass through mosh | Use ssh for that host |
Nothing arrives in any terminal
First check what Claude Code is set to do. In /config the setting appears as Local notifications (preferredNotifChannel in settings). With auto, the default, Claude Code sends a desktop notification in iTerm2, Ghostty and Kitty, rings the bell in Terminal.app only when its audible bell is off, and does nothing elsewhere. If it is notifications_disabled, nothing is sent. In another terminal, ring the bell instead:
{ "preferredNotifChannel": "terminal_bell"}Also note when Claude Code notifies: when a task finishes or a permission prompt waits, and you appear to be away from the terminal. Watching the session is not a valid test.
Then check macOS. Anthropic’s docs say to confirm that the terminal app has notification permission in your OS settings: System Settings → Notifications → your terminal → Allow Notifications. A Focus mode such as Do Not Disturb can hide notifications even when they are allowed.
Works outside tmux, silent inside tmux
By default tmux does not forward notification escape sequences to the outer terminal. Anthropic’s terminal guide gives these lines for ~/.tmux.conf:
set -g allow-passthrough onset -g focus-events onset -s extended-keys onset -as terminal-features 'xterm*:extkeys'Apply them to the running server:
tmux source-file ~/.tmux.conftmux show -g allow-passthroughOne catch from the tmux manual: with on, passthrough is allowed only when the pane is visible; with all, also when it is not. If Claude runs in a window you are not looking at, on can still drop the notification, and all is the setting to use.
A hook-based notification does nothing
If you use the osascript command from the hooks guide, the notification is shown through the built-in Script Editor app. Without permission the command fails silently and macOS does not ask. Run the test once so Script Editor appears in the list, allow it in System Settings → Notifications, then run it again:
osascript -e 'display notification "test"'If the test works but Claude never triggers it, the hook is not running. Type /hooks and confirm it is listed under Notification. Edits to settings files are normally picked up automatically; if the hook does not appear after a few seconds, restart the session. Also check that disableAllHooks is not true in any settings file, and that the matcher (case-sensitive) names a real notification type such as permission_prompt or idle_prompt, or is empty for all of them.
Over ssh or from another Mac
Anthropic’s docs say the desktop notification reaches your local machine over ssh: Ghostty and Kitty forward it to macOS without setup; iTerm2 needs the forwarding option above. A hook command runs on the machine where Claude Code runs, so an osascript hook on a remote Mac notifies that Mac, not yours.
To test the terminal path directly, print the OSC 777 sequence Ghostty understands, plain outside tmux and wrapped inside it:
printf '\033]777;notify;Test;Hello\007'printf '\033Ptmux;\033\033]777;notify;Test;Hello\007\033\\'If the second one shows nothing inside tmux, passthrough is off.
How hivemux handles it
hivemux is a tmux sidebar that shows every Claude Code session — running, waiting for you, or done — and lets you jump to the one that needs you. Its notifications are sent by the sidebar as OSC 777 through tmux passthrough, so the same gates apply: a terminal that supports OSC 777 such as Ghostty, and macOS permission for it. hivemux setup sets allow-passthrough all for you. On top of that:
- The task in the window you are looking at is skipped while the terminal has focus.
- The sidebars send the notifications, so with sidebars hidden (
prefix b) none come. - Notifications can be off in right-click → Settings → Notifications.
- The same task does not announce the same state twice within 10 seconds.

Remote sessions attached with hivemux connect over ssh notify the Mac in front of you. Over mosh they cannot, and the Connect to… list marks such a host “mosh · no notifications”. To check the hooks and tmux wiring, run:
hivemux doctorMore fixes are in hivemux troubleshooting and the Claude Code tmux guide.
FAQ
Why is there no notification for the Claude Code session I am looking at?
Claude Code fires its notification event when you appear to be away from the terminal. hivemux does the same on purpose: it skips the task in the window you are looking at while the terminal has focus. Switch to another app or window and the next state change is announced.
Notifications stopped after I updated. What should I check?
After updating hivemux, run hivemux setup again: it reloads the running tmux and restarts the sidebars, and Claude sessions started before the update pick up new hooks once restarted. After editing ~/.tmux.conf, run tmux source-file ~/.tmux.conf. If an edited hook does not appear in /hooks, restart the Claude Code session.
How do I test a notification quickly?
Run osascript -e 'display notification "test"' to test the Script Editor path used by osascript hooks. To test the terminal path, print an OSC 777 sequence with printf, wrapped for tmux when you are inside it; the exact commands are on this page.
Why do I get no notifications from a remote Mac over mosh?
Notifications from the remote work do not pass through mosh. hivemux says so when a mosh connection starts and marks such a host "mosh · no notifications" in the Connect to… list. Connect over ssh to get them on the Mac in front of you.