到了 (@zhlu)分享下 WSL内Claude Code & Codex Cli 给Win发送消息通知 中发帖

codex config.toml 配置: 
[features]
hooks = true

[[hooks.Stop]]
[[hooks.Stop.hooks]]
type = "command"
command = '''pwsh.exe -NoProfile -ExecutionPolicy Bypass -Command "Import-Module BurntToast; New-BurntToastNotification -Text 'Codex', '任务完成' -Sound Reminder"'''
timeout = 30
statusMessage = "Codex 完成通知"

[[hooks.PermissionRequest]]
[[hooks.PermissionRequest.hooks]]
type = "command"
command = '''pw...