Skip to content
Artwork for 脈報
脈報 · Tuesday · 8 min

以為關掉視窗就收工?Codex CLI 背景程式還在跑,還會自己下載新版重啟

據 issue 回報,Codex CLI 從 0.157.0 起會在背景常駐一個程式,關掉所有視窗後仍繼續跑,每小時檢查更新、有新版就重啟後端,進行中的回合只給 60 秒收尾,時間到就被強制結束。 ⭐ 文章深度讀:Codex CLI 關掉視窗還在跑!自動更新不等回合做完就重啟 → https://heymaibao.com/codex-cli-background-daemon-keeps-running-3945d0/ ⚡ 章節重點 關掉視窗還在跑的後台 00:00 砍掉回合的自動重啟 01:08 關掉它的四個步驟 04:09 背景裡的另一份版本與設定 04:50 發文者對 CLI 的請求 06:26 只認得第一次的後台 07:08 📝 懶人包 ∙ 背景程式在所有 Codex 視窗關掉後還在跑,要手動停或重開機才會停。 ∙ 更新程式開始後 5 分鐘查一次、之後每小時一次,有新版就重啟後端。 ∙ 另一則 issue 指出,自動更新只給 60 秒收尾,時間到就砍回合。 ∙ 我的觀點:更新不等你,交代的事做到一半,那一輪工作可能直接被砍掉。 📚 參考資料 CLI: make daemon_auto_start opt-in — a persistent, self-updating background daemon shouldn't be the default → https://github.com/openai/codex/issues/48195 app-server daemon: auto-update force-kills active turns after a 60s drain budget, and cannot be disabled → https://github.com/openai/codex/issues/40969 Hooks in --remote mode receive the daemon's cwd, not the session's → https://github.com/openai/codex/issues/42457 在 Windows 中使用 Proxy 伺服器 - Microsoft 支援服務 → https://support.microsoft.com/zh-tw/windows/%E5%9C%A8-windows-%E4%B8%AD%E4%BD%BF%E7%94%A8-proxy-%E4%BC%BA%E6%9C%8D%E5%99%A8-03096c53-0554-4ffe-b6ab-8b1deee8dae1 Homebrew: The Package Manager for Everywhere → https://brew.sh/zh-tw/

0:00-8:27

transcript

No transcript — this publisher did not publish one.

show notes


據 issue 回報,Codex CLI 從 0.157.0 起會在背景常駐一個程式,關掉所有視窗後仍繼續跑,每小時檢查更新、有新版就重啟後端,進行中的回合只給 60 秒收尾,時間到就被強制結束。

⭐ 文章深度讀:Codex CLI 關掉視窗還在跑!自動更新不等回合做完就重啟
→ https://heymaibao.com/codex-cli-background-daemon-keeps-running-3945d0/

⚡ 章節重點
關掉視窗還在跑的後台 00:00
砍掉回合的自動重啟 01:08
關掉它的四個步驟 04:09
背景裡的另一份版本與設定 04:50
發文者對 CLI 的請求 06:26
只認得第一次的後台 07:08

📝 懶人包
∙ 背景程式在所有 Codex 視窗關掉後還在跑,要手動停或重開機才會停。

∙ 更新程式開始後 5 分鐘查一次、之後每小時一次,有新版就重啟後端。

∙ 另一則 issue 指出,自動更新只給 60 秒收尾,時間到就砍回合。

∙ 我的觀點:更新不等你,交代的事做到一半,那一輪工作可能直接被砍掉。

📚 參考資料
CLI: make daemon_auto_start opt-in — a persistent, self-updating background daemon shouldn't be the default
→ https://github.com/openai/codex/issues/48195

app-server daemon: auto-update force-kills active turns after a 60s drain budget, and cannot be disabled
→ https://github.com/openai/codex/issues/40969

Hooks in --remote mode receive the daemon's cwd, not the session's
→ https://github.com/openai/codex/issues/42457

在 Windows 中使用 Proxy 伺服器 - Microsoft 支援服務
→ https://support.microsoft.com/zh-tw/windows/%E5%9C%A8-windows-%E4%B8%AD%E4%BD%BF%E7%94%A8-proxy-%E4%BC%BA%E6%9C%8D%E5%99%A8-03096c53-0554-4ffe-b6ab-8b1deee8dae1

Homebrew: The Package Manager for Everywhere
→ https://brew.sh/zh-tw/

links6