[BUG] terminal-notifier 桌面通知在权限弹窗时不触发

Resolved 💬 1 comment Opened May 31, 2026 by yangyalong6 Closed Jul 3, 2026

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

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗