claude-code - 💡(How to fix) Fix [BUG] terminal-notifier 桌面通知在权限弹窗时不触发

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code version: 2.1.145
  • OS: macOS Sequoia 23.1.0 (ARM64, Apple Silicon)
  • Terminal: xterm-256color
  • terminal-notifier: 2.0.0 (Homebrew)

Steps to reproduce

  1. 安装 terminal-notifier: brew install terminal-notifier
  2. 系统设置 → 通知 → terminal-notifier → 允许通知 ✓
  3. 确认手动调用正常: terminal-notifier -title "test" -message "test" → 桌面通知正常弹出
  4. 修改设置 "defaultMode": "default", "skipAutoPermissionPrompt": false
  5. 在 Claude Code 中输入需要执行命令的 prompt(如 whoami
  6. 权限确认弹窗出现(终端内可见),但没有桌面通知弹出

Expected behavior

权限弹窗出现时,terminal-notifier 应弹出桌面通知提醒用户。

Actual behavior

权限弹窗在终端内正常显示,但 terminal-notifier 没有触发,无桌面通知。

Additional context

  • 手动执行 terminal-notifier 完全正常,排除系统权限问题
  • 无勿扰模式/专注模式
  • terminal-notifier 2.0.0 (2017) 在 macOS Sequoia + Apple Silicon 上存在已知兼容性问题
  • 社区已有使用 afplay 声音 hook 的替代方案: https://github.com/dazuiba/CCNotify

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

权限弹窗出现时,terminal-notifier 应弹出桌面通知提醒用户。

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] terminal-notifier 桌面通知在权限弹窗时不触发