爱意满满的作品展示区。
RavelloH

优雅的在手机上接收来自 Windows CodeX 的通知

  •  
  •   RavelloH ·
    RavelloH · 16h 9m ago · 547 views

    codex 的 STOP hook 仅在成功的时候触发,因此如果出了错误,是没法通知给你的。此外,hook 在创建新的档案之后(例如用 CC Switch )需要手动允许,也不是很方便。

    不过,Codex 无论是成功、失败,都可以正常的向 Windows 通知中心发送通知。因此可以用这个 Windows 原生 App ,可以转发通知事件到 Webhook / Bark ,软件开源免费,因为要想获取通知中心的系统 hook 需要 Windows.UI.Notifications.Management.UserNotificationListener,而这个 API 只有商店包的原生应用才能用,所以没法做到单 exe ,只能上传到 Microsoft Store 了。

    https://apps.microsoft.com/detail/9MV8SL6JLV2D

    Snipaste_2026-08-20_23-52-06|690x462 Snipaste_2026-08-20_23-52-21|690x462 Snipaste_2026-08-20_23-52-27|690x462 Snipaste_2026-08-20_23-53-01|690x462 Snipaste_2026-08-20_23-53-07|690x462

    iOS 建议直接使用 Bark ;安卓的通知稍微繁琐一些,大部分都需要外接各种通知服务(如 wxpusher 等),或者接入飞书/钉钉之类的平台,这里不统一适配了,而是提供 Webhook ,可以让 AI 在本地跑一个 HTTP 转发到你需要的渠道。这个 App 也能用来转发其他应用的通知,不限于 CodeX 。

    {
      "eventType": "notification.added",
      "deliveryId": "a-generated-id",
      "notification": {
        "id": 123,
        "app": "Example app",
        "title": "A title",
        "body": "Notification body",
        "createdAt": "2026-08-20T00:00:00Z"
      }
    }
    

    此外,建议在 CodeX 设置中打开始终通知,防止 CodeX 在前台就不发送通知了。

    image|690x215

    软件在后台需要大概 14 MB 内存,请确保你的电脑具有至少 20 MB 可用运行内存。

    image|690x110

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2956 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:22 · PVG 15:22 · LAX 00:22 · JFK 03:22
    ♥ Do have faith in what you're doing.