有什么办法让codex cli任务完成后给个通知

它工作太慢了 又不想一直盯着

使用苹果手机设备安装chatGPT登录上,手机,或者手表就都能收到通知了

让CC盯着保持心跳

这是不是要账号登录啊, 我接的中转站api

win上可以,手机可以考虑推送到企业微信

让它发个webhook?

发企业微信的话 写一个powershell脚本发webhook就行

配置文件里面可以配置通知脚本,我记得官方文档有示例

config.toml里加
notify = [‘C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe’, “-NoProfile”, “-ExecutionPolicy”, “Bypass”, “-File”, ‘C:\xxx.codex\notify.ps1’]

param(
  [Parameter(Mandatory = $true)]
  [string]$json
)


try {
  $payload = $json | ConvertFrom-Json
} catch {
  $payload = @{}
}

$title = 'Codex'
$msg   = $payload.'last-assistant-message'
if (-not $msg) {
  if ($payload.type) {
    $msg = "Event: $($payload.type)"
  } else {
    $msg = 'Codex has an update.'
  }
}


if ($msg -and $msg.Length -gt 240) {
  $msg = $msg.Substring(0,240) + '...'
}


Import-Module BurntToast -ErrorAction Stop
New-BurntToastNotification -Text $title, $msg | Out-Null

啊这种情况我就不知道了,我目前是自用的账号,发现电脑上跑的任务结束,苹果设备上会给提醒(此时我的苹果app其实已经登录失效了,最近一直用的安卓app,苹果的通知功能还是好,chatGPT跑的任务目前都还能收到通知,安卓不开魔法压根收不到)

咦,和我需求一样,我自己写了个mcp,哈哈