Y3K_ddt 在 Ghostty普通 Python 脚本执行完成后无法触发 macOS 系统通知,CC却可以 中发帖
小白请教:
CC 里配置了Notification hook,任务完成或等待操作时会弹 macOS 系统通知,正常。
在 Ghostty 终端直接运行osascript发送通知,没有任何反应:
osascript -e ‘display notification “测试” with title “测试”’
但同样的命令,由 Claude Code 内部执行时可以正常弹出通知。
请教下如何能让普通python命令完成或者异常也能有原生macOS通知呢?
{
“$schema”: “https://json.schemastore.org/claude-code-settings.json”,
“model”: “opus[1m]”,
“language”: “Chinese”,
“includeCoAuthoredBy”: false,
“alwaysThinkingE...