Codex on Windows floods logs about twice per second while a thread is running: `codex_login::auth::manager` logs "Reloading auth" / "Reloaded auth, changed: fal…
Codex on Windows floods logs about twice per second while a thread is running: codex_login::auth::manager logs "Reloading auth" / "Reloaded auth, changed: false" and codex_app_server_transport::...::remote_control::websocket logs "waiting to resolve remote control preference until authentication is available error=remote control requires ChatGPT authentication". Hours of this grows ~/.codex/logs_2.sqlite to tens of MB.
The user runs Codex against a third-party OpenAI-compatible provider (model_provider = "custom", requires_openai_auth = false), so no ~/.codex/auth.json exists. The app-server's remote-control transport (feature flag features.remote_control) polls once per second waiting for ChatGPT auth and reloads auth on each retry, writing two INFO lines per second forever. Nothing is actually failing in the model call; the spam is a side effect of an enabled cloud feature that can never authenticate.
Stop-Process -Name codex -Force. Note that if [windows] sandbox = "elevated", codex runs elevated and a normal shell gets "Access is denied"; kill it from an elevated PowerShell (or Start-Process powershell -Verb RunAs).~/.codex/config.toml under [features]: remote_control = false. The valid key name can be confirmed by string-searching the codex binary for the features enum (...realtime_conversation remote_control image_detail_original...).logs_2.sqlite, logs_2.sqlite-wal, logs_2.sqlite-shm while codex is stopped. It is recreated empty on next start.codex login so auth.json exists and the transport resolves instead of retrying.After restarting codex, query the recreated log DB for 2 minutes: select target,count(*) from logs where ts > strftime('%s','now')-120 group by target; — no codex_login::auth::manager or remote_control::websocket rows, and the UI stops emitting new lines every second.
重启 codex 后连续 2 分钟查 logs_2.sqlite,auth reload 与 remote control 重试条数为 0