windows用户如何才能有claude code的通知呢

alzcoms 2026-06-21 17:04 1

最近再claude code的使用过程中明显感觉到了使用上的不便,之前是一直运行的短任务,最近运行的长任务,每次都要很久才能完成,开启了bypass permissions on,然后就将claude code挂后台去做别的事情了,每次都要切回去才能看到任务是否完成。

请问一下各位佬,这个如何开启通知能看到claude code任务是否结束呢

最新回复 (6)
  • LazyDog 06-21 17:06
    1

    在配置文件里面添加hooks,在需要人工介入的时候,直接用powershell命令发出提示音,如果你想自定义的话,也可以编写其他脚本,甚至说再写一个可执行程序进行调用



      "hooks": {
    "Notification": [
    {
    "matcher": "",
    "hooks": [
    {
    "type": "command",
    "command": "powershell -NoProfile -Command \"[System.Media.SystemSounds]::Asterisk.Play(); Start-Sleep -Milliseconds 700\""
    }
    ]
    }
    ]
    }
  • alzcoms 楼主 06-21 17:09
    2

    好的,谢谢佬,我配置一下看一下效果

  • CJ 06-21 17:17
    3

    BurntToast也还行,可以配系统通知的图标


      "hooks": {
    "PermissionRequest": [
    {
    "matcher": "",
    "hooks": [
    {
    "type": "command",
    "command": "pwsh.exe -NoProfile -Command \"New-BurntToastNotification -Text 'Claude Code','🤖 需要确认权限' -AppLogo 'C:\\Users\\vanilla\\Pictures\\claude.png'\"",
    "timeout": 600
    }
    ]
    }
    ],
    "Stop": [
    {
    "matcher": "",
    "hooks": [
    {
    "type": "command",
    "command": "pwsh.exe -NoProfile -Command \"New-BurntToastNotification -Text 'Claude Code','✅ 任务完成' -AppLogo 'C:\\Users\\vanilla\\Pictures\\claude.png'\"",
    "timeout": 600
    }
    ]
    }
    ]
    },

  • 都是额滴 06-21 17:21
    4

    佬你这个没有提示音,只有图标?如果是需要确认就没法知道?

  • lkjsdf 06-21 17:25
    5

    这种吗,有通知和声音

  • CJ 06-21 17:44
    6

    会叮一下,是那个 Windows 系统默认通知音效

* 帖子来源Linux.do
返回