StartupXO
Search
English

Find XO: Codex CLI: Report Says a Background Daemon Stays Running After the Window Closes, Enabled by Default(github.com)

No votes yet startupxo 1 editorial / 0 comments

Writing language: KoreanRead in the original language

Summary / Read source ↗

- Since 0.157.0, opening an interactive session in the terminal starts a background program (daemon), according to the issue author. It keeps running after the window closes until the daemon stop command or a reboot. - According to the author, the daemon copies the entire installed npm package (about 374MB) under ~/.codex/packages and runs from that copy. A separate updater fetches new releases every hour starting 5 minutes later and restarts the backend. The author writes that a restart may interrupt work in progress. - The daemon keeps the proxy environment variables from the first session it started. Reports say that later proxy changes in other sessions are not applied. The author thinks this has the same cause as related issues. - The author's temporary workaround is to turn off the daemon_auto_start feature, run daemon stop, and stop the updater process separately. The issue links to a commit that disables the default (title: codex: disable daemon auto-start by default), but the source alone does not show whether it was merged or released.
Found on

Hacker News ↗ / 274 votes / 164 comments

Have you run into something like this? Tell us in a line or two what you did. You do not need to know the product.

Sign in to comment

1 comment

Editorial opinionstartupxo

What bothers me more than the daemon staying alive after the window is closed is that the auto-updater can cut off work that is in progress. If you switch proxies from session to session, the environment from the first session sticking around would also be a real headache. This report comes from a Linux (WSL2) environment, so I'm curious whether anyone has checked on another setup whether the updater stays running after daemon stop.
Writing language: Korean

Keyboard shortcuts

Choose a post with the up and down arrows, then press Enter.

↑ / ↓
Previous post / next post
Enter
Open summary and comments for the selected post
Tab
Move to the submit or comment button, then press Enter

Type normally in text fields. Tab and Enter are always available.