TL;DR
Get business pricing on tech for your team
- Business-only prices and quantity discounts
- Tax-exempt purchasing
- Multiple users, one account, clear invoices
A GitHub issue about Codex CLI 0.157.0 reports that opening an interactive session starts a persistent app-server daemon and a separate update loop. The report describes copied application files, retained environment settings and an updater that may restart the backend; OpenAI has not provided a response in the supplied material.
A user of Codex CLI 0.157.0 says opening an interactive session starts a persistent app-server daemon and a detached update process by default. The GitHub issue asks OpenAI to make automatic startup opt-in, citing concerns about background updates, process lifetime and session-specific settings; the supplied report does not include an OpenAI response.
The reporter says the daemon runs separately from the terminal session and remains active after Codex windows close, until it is stopped or the machine reboots. In their Linux environment under WSL2, the process runs as codex app-server –managed-daemon. The issue says Codex copies a platform package of about 374 MB into a directory under ~/.codex/packages/app-server-daemon and runs the service from that copy rather than the CLI package the user installed through npm.
The report also describes a detached pid-update-loop that checks for updates five minutes after launch and then hourly. According to the issue, it can download a newer release and restart the backend. The reporter points to a related issue describing forced termination of active turns after a 60-second drain period. Those details are user-reported; the material provided does not independently verify the behavior across operating systems, installation methods or Codex configurations.
The user says the daemon retains environment variables from the session that started it. Their example is a CLI wrapper that sets HTTPS_PROXY for each invocation: the daemon reportedly keeps the first session’s proxy setting for later outbound connections. The report also links to earlier issues about hooks receiving the daemon’s working directory or being unable to identify the client terminal, but does not establish that every such behavior has the same cause.
Background Updates and CLI Control
The reported behavior matters because it changes what users may expect from a command-line tool: a session that appears tied to a terminal can, according to the report, leave a long-running process behind. If the updater operates as described, the backend may also change independently of the CLI version installed through a package manager. That can complicate troubleshooting when the command-line client and background service are on different release schedules.
Persistent processes can also affect which configuration is used. A daemon retaining the first session’s environment could create unexpected proxy or hook behavior for later sessions, particularly for users who launch Codex with per-command settings. The report raises a further operational concern: stopping the daemon may not stop its update loop. These are implications of the reporter’s account, not confirmed outcomes for all users.
The issue is a request for control over defaults, not evidence that the feature has been changed. The reporter says a shared daemon may make sense for Remote Control or the desktop app, while arguing that CLI users should be able to keep the backend tied to the installed executable and session. Whether OpenAI adopts that distinction remains unknown.
Products Worth Considering

Samsung Odyssey G7 40-Inch WUHD Curved Gaming Monitor (G75F)

Samsung Odyssey G9 49-Inch Curved Dual QHD Gaming Monitor

LG UltraGear 32GX850A-B 32-inch 4K UHD OLED Gaming Monitor
As an affiliate, we earn on qualifying purchases.
How the Reported Startup Works
The issue identifies the affected setup as Codex CLI 0.157.0, installed with npm install -g @openai/codex on Linux under WSL2. The user says simply opening an interactive Codex session triggers the managed daemon. The source material does not establish when the default was introduced beyond the reporter’s reference to version 0.157.0, or whether the behavior applies to other versions and platforms.
The reporter lists earlier GitHub issues concerning active-turn interruption during daemon updates, support for externally managed executables, package-manager updates not reaching the daemon, startup problems with an Arch Linux package, and hook behavior in remote mode. These references indicate that related concerns have been raised, but their existence alone does not confirm the scope or resolution of each problem.
As a workaround, the reporter says disabling the daemon_auto_start feature prevents a new TUI session from starting the daemon. They also describe running the daemon stop command and manually removing the updater process and copied package directory. The report says the stop command did not end the update loop in their test; readers should treat those steps as the reporter’s account, not as official guidance from OpenAI.
“Please make daemon_auto_start opt-in (default false) for the CLI, or at least ask once before turning it on.”
— Codex CLI user who filed GitHub issue #48195
Scope and OpenAI Response
The available material is a single user’s report and feature request. It does not include an OpenAI statement, confirmation that the behavior is intended, or evidence that it affects all Codex CLI installations. The issue’s publication date is also not supplied, so its present status and whether subsequent releases changed the default cannot be established here.
It is also unclear which platforms, installation channels and configurations trigger the reported package copy and updater, whether users receive a prompt, and whether the updater’s restart behavior occurs in typical use. The linked issues are references supplied by the reporter; their current status and any fixes are not included. The reported failure of the stop command to end the updater has not been independently verified.
Changes Users Should Watch For
The next clear development would be a response or code change from OpenAI addressing the request to make daemon_auto_start opt-in, or documenting which CLI installations start the managed service. Users affected by the report can monitor the original GitHub issue and related reports for maintainer confirmation, scope details or a fix.
Until then, the source material supports only the specific user’s account and described workaround. It does not establish that OpenAI has changed the behavior or published official steps for stopping both the daemon and updater. Any broader conclusions depend on maintainer information or reproducible testing across versions and installation methods.
Key Questions
What did the user report about Codex CLI?
The reporter says Codex CLI 0.157.0 starts a persistent app-server daemon and a separate update loop when an interactive session opens. The account is from a GitHub issue and is not independently verified in the supplied material.
Does the daemon stop when the terminal closes?
According to the issue, it remains running after Codex windows close and continues until stopped or the machine reboots. The report does not establish whether this happens in every configuration.
Does the background service update itself?
The reporter says a detached process checks for updates five minutes after startup and hourly thereafter, and can download a release and restart the backend. The supplied source does not independently confirm how broadly that process operates.
Has OpenAI said it will change the default?
No OpenAI response or confirmed product change is included in the source material. The GitHub issue asks for automatic daemon startup to be opt-in for the CLI.
What workaround did the reporter describe?
The user says disabling daemon_auto_start stops a new TUI session from launching the daemon. They also reported that stopping the daemon did not stop the update loop in their test, so the additional cleanup steps they described are not official guidance.
Source: hn
