The Codex Changelog
All Episodes
Disabling Codex Background Daemons with daemon_auto_start

Disabling Codex Background Daemons with daemon_auto_start

0:00|0:00

Learn how PR 59447 restores the features.daemon_auto_start flag, giving developers and admins control over persistent background processes in Codex. We cover how to configure the opt-out, clean up leftover processes, and review additional updates to Guardian context budgeting and Windows sandboxing.


Chapter 1

Codex Restores the Daemon Auto Start Flag

James Turner

Thanks to Jellypod for helping make this daily show a reality. Today's change is one for anyone who ever looked at their process list and wondered why Codex was still running after they quit it. The flag is features.daemon_auto_start, and as of November 4th, 2026, it works again.

James Turner

Here's what changed. PR 59447 in the Codex repo restores features.daemon_auto_start as a stable setting that's enabled by default. Before this, you could set it to false in your config, and Codex would ignore it and print a deprecation warning. Now it's honored. The commit message says it applies to interactive daemon auto start, and to whether a session is eligible for the remote control daemon. It's also accepted in managed feature requirements, which matters if an admin is setting policy for a team.

James Turner

Why does it matter? Back when this daemon showed up, a Hacker News thread about Codex installing a persistent, self updating background daemon by default reached 610 points. The complaint was simple: there was no documented way to turn it off. One commenter pointed at this exact flag as the escape hatch, and another worried out loud that they'd remove it. Well, they did make it a no-op for a while, and now they've reversed course. If you've been following our earlier episodes on daemon mismatches and on thread lock conflicts between the CLI and Desktop, this is the piece that gives you control over whether the daemon starts at all, instead of just cleaning up after it.

James Turner

Now, how to use it. Option one, edit your config file at ~/.codex/config.toml and add a features table with daemon_auto_start set to false. Option two, run the command: codex features disable daemon_auto_start. Same result, and the command is easier to put in a setup script for a CI runner or a throwaway VM.

James Turner

There's a second detail in the PR that's easy to miss. It preserves an explicit false when the setting is saved, even if the server reports a disabled default. Previously, you could imagine a save path where your opt out got overwritten by whatever the server said. The PR adds test coverage for exactly that case, persisting an explicit opt out when the server default is disabled. So your false should stick.

James Turner

Also, the PR records the setting and any disabled auto start outcomes in launch telemetry. That's worth knowing: your opt out is counted as a state, not invisible.

James Turner

Caveats, and these are the important part. First, flipping the flag only stops future automatic spawns. If a daemon is already running, it keeps running. Stop it explicitly with codex app-server daemon stop. Users in that Hacker News thread also reported a leftover process matching app-server daemon pid-update-loop, so if you still see that in your process list after stopping, kill it by hand with pkill.

James Turner

Second, this is my read of the tradeoff rather than something from the commit: without a long lived daemon, you shouldn't expect work to outlive your terminal. If you drop an SSH session mid task, don't assume it's still going. And features that depend on a shared daemon, like remote control, are what the PR ties to this flag, so with it off, expect those to be unavailable. If you rely on them, leave the default alone.

James Turner

After changing it, verify. Run codex doctor and look at the background server section. With auto start off, you want it reporting that nothing is running.

James Turner

A few smaller items from the same day. A Guardian context budgeting fix, number 59401, addresses section minimums shrinking under budget pressure, and it now tracks history by byte limits instead of fixed entry counts. On Windows, the sandbox now uses resolve for enforcement when preparing restricted token and elevated policies, which preserves read only carveouts at volume roots. And the release packages now ship the standalone executor, though npm packages leave it out to stay under the size limit.

James Turner

So the takeaway: if you want Codex to start when you start it and stop when you stop it, set daemon_auto_start to false, stop any running daemon, and confirm with codex doctor. That's the changelog for today.