TL;DR
A GitHub issue filed by a Codex CLI user says version 0.157.0 starts a persistent background app-server daemon when an interactive session opens. The report describes copied binaries, hourly update checks and session settings retained by the daemon; these are user-reported findings, and the issue does not establish how broadly they affect installations.
A Codex CLI user says opening an interactive session in version 0.157.0 starts a persistent background app-server daemon that can continue running after the CLI window closes. The report says the daemon copies the platform package into the user’s Codex directory and checks for updates in the background, raising questions about version control, session behavior and what users expect from a package-managed CLI.
Get business pricing on tech for your team
- Business-only prices and quantity discounts
- Tax-exempt purchasing
- Multiple users, one account, clear invoices
The report was filed on GitHub by a user running the CLI on Linux under WSL2, installed with npm. According to the user, an interactive session starts the process `codex app-server –managed-daemon` in a detached session. It remains after Codex windows close until stopped with the daemon command or the system reboots. These details describe the reporter’s setup; the issue does not establish how the behavior varies across operating systems or installation methods.
The user says the daemon copies a roughly 374 MB platform package into `~/.codex/packages/app-server-daemon/releases/
The report also describes the daemon retaining environment variables from the session that first started it, including an HTTPS proxy setting. The user says hooks in remote mode may receive the daemon’s working directory instead of the session’s, and that hooks cannot identify the client terminal. Related GitHub issues are cited for these hook behaviors, but the report does not establish that every affected case has the same cause.
Control Over CLI Updates and Sessions
A persistent process changes how users experience a command-line tool: closing the session may not end its backend, and the backend may not remain at the version installed through the user’s package manager. If the reported update behavior occurs, a restart could also interrupt an active turn. That makes the default relevant to users who depend on reproducible versions, controlled update schedules or uninterrupted sessions.
Retaining the first session’s environment may also matter on shared or varied setups. For example, the reporter says a proxy configured for one invocation is carried into later daemon activity. Hooks that receive a different working directory or lack the originating terminal could behave unexpectedly. The report identifies these as observed concerns, not confirmed effects for all users.
The issue frames the product choice as a tradeoff: a shared, updating daemon may suit the desktop app or remote control, while CLI users may expect the process to follow the terminal session and the installed executable. The practical question is whether users can understand, control and stop the background services—and whether package-managed installations retain their expected version behavior.
Products Worth Considering

LG UltraGear 32-inch QHD Curved Gaming Monitor, 180Hz, 1ms, FreeSync

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

LG UltraGear 32-inch 4K UHD OLED Gaming Monitor, 165Hz
As an affiliate, we earn on qualifying purchases.
The CLI User’s Requested Changes
The reporter asks for automatic daemon startup to be opt-in for the CLI, or for Codex to ask before enabling it. They say a command-line backend should ordinarily follow the lifetime of its window, use the binary installed by the package manager and avoid updating itself in the background. They consider automatic startup more suitable for Remote Control or the desktop app, or for users who explicitly start or bootstrap the daemon.
As alternatives if automatic startup remains enabled, the user proposes exiting when the last client disconnects and avoiding copies or self-updates when Codex was installed through a package manager such as npm, Homebrew or pacman. The report points to separate GitHub issues concerning externally managed executables, stale daemon versions after npm updates, and an Arch Linux package that reportedly no longer starts without `–no-daemon`. Those references show related user reports, not a single confirmed diagnosis.
“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 Fixes Remain Unconfirmed
The GitHub issue is a single user’s report. It does not confirm how many users are affected, whether the behavior is identical across supported systems or installation channels, or whether the described process lifecycle and update schedule are expected in every configuration. The source material also contains no response from OpenAI confirming the behavior or describing a planned change.
It remains unclear whether the proxy and hook issues share one root cause, whether stopping the daemon is intended to stop its updater, and what safeguards apply when an update would interrupt active work. The report says the updater remained alive after the user ran the stop command, but that observation has not been independently verified here.
Maintainers’ Response and User Controls
The next concrete development would be a maintainer response or code change addressing the default, package-managed executables and daemon shutdown. Users following the issue can watch for clarification on whether `daemon_auto_start` is intended to be enabled for CLI sessions and what controls are supported for update checks and process lifetime.
The reporter lists a workaround: disable `daemon_auto_start`, stop the daemon, terminate the remaining updater process manually and remove the daemon package directory. That is the user’s account of their own workaround, not an official recommendation. The source does not say whether maintainers will adopt the requested changes or when any fix might ship.
Key Questions
What changed in Codex CLI 0.157.0, according to the report?
A user says opening an interactive CLI session starts a persistent managed app-server daemon and a separate updater process. The report does not confirm the behavior across all installations.
Does the daemon stop when the CLI window closes?
The reporter says it does not: in their WSL2 setup, it continues running after windows close until stopped with a daemon command or the system reboots.
How does the reported updater work?
The user says it checks five minutes after startup and hourly thereafter, downloads releases and restarts the backend. A linked issue describes a 60-second drain budget before an update can force-kill active turns.
Has OpenAI confirmed a fix or change to the default?
The source material includes the user’s GitHub report and related issue references, but no maintainer response or announced fix. The outcome is unclear.
Source: hn
