Leon Wang使用Codex CLI hook调用windows系统提示来实现任务结束提示和请求权限提示 中发帖

使用codex的时候,经常长时间看其他文件,导致忘记继续codex的任务。所以通过简单配置hook调用windows右下角系统提示框来实现提醒。 
首先在powershell里安装依赖:
Install-Module -Name BurntToast -Scope CurrentUser -Force

然后在.codex/config.toml中进行以下配置:
[features]
hooks = true

[[hooks.Stop]]
[[hooks.Stop.hooks]]
type = "command"
command = '''powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Import-Module BurntToast; New-BurntToastNotification -Text 'Code...