Repository navigation
Description
Component and version
Codex desktop on Windows. Installed package: OpenAI.Codex_26.1021.3705.0_x64. Bundled CLI: 0.164.0-alpha.11.1. OS: Windows NT 10.0.26300.0, x64. Observed 2026-10-25.
Problem
A Windows user-level CODEX_CLI_PATH override points to:
%USERPROFILE%\.codex\plugins\.plugin-appserver\codex.exe
Desktop logs confirm that this path is selected for consumer=app-server with source=override. During focus-triggered plugin reconciliation, the plugin runtime updater stops processes at its managed executable paths. This also stops the desktop's main backend. The desktop supervisor restarts that backend while the updater is trying to replace the same executable. Windows then returns EPERM for the unlink operation, and the cycle repeats on later focus changes.
The origin of the persistent override is unknown. This report does not claim the app originally wrote it.
Observed sequence
UTC times from 2026-10-25; paths and unrelated fields removed:
19:18:03.494 bundled_plugins_reconcile_started reason=focus
19:18:06.217 chrome_plugin_app_server_processes_stopped processCount=2
19:18:06.242 main app-server connection closed code=1
19:18:06.245 replacement backend starts
19:18:06.531 replacement backend closes code=1
19:18:06.558 chrome_plugin_app_server_processes_stopped processCount=1
19:18:07.409 bundled_plugins_reconcile_failed EPERM unlink .plugin-appserver\codex.exe
19:18:08.308 durable websocket closes code=1006
19:18:09.313 reconnect starts
The same order repeats at 19:18:43.908 through 19:18:49.817 UTC and in later focus cycles.
The installed updater implementation confirms that it stops processes matching the managed executable paths before replacing files. This establishes a runtime ownership conflict; it is not an unexplained backend crash.
Reproduction conditions
- A persistent user
CODEX_CLI_PATHpoints to the plugin-managedcodex.exe. - Start the desktop app and confirm its main backend resolves to that override.
- A plugin reconciliation requires a runtime refresh; logs show
reason=focus. - Observe the updater stopping the main backend, the supervisor restarting it, and failed replacement of the locked executable.
These conditions are taken from the recorded incident and installed code. A clean-install end-to-end reproduction has not been run. An already up-to-date plugin runtime may not trigger the replacement path.
Impact and trace
The user reports interface flashing and repeated connection failures. A 197-second local Perfetto trace contains Codex renderer tasks of about 1.27 and 1.13 seconds and browser main-thread tasks of about 0.76 to 0.82 seconds near these cycles. No matching GPU-reset/crash events were found in the checked trace events or log messages. The visual cause of every flash remains unproven.
The earlier 1.72-second renderer task in the trace is almost entirely CpuProfiler::StartProfiling and must be excluded from application-fault evidence.
At inspection, the bundled and plugin codex.exe files had identical SHA-256 hashes, so this is not evidence of a current version mismatch.
Expected behavior
Plugin runtime updates must not stop the desktop's active core backend or race its restart supervisor. Detect an override that aliases a plugin-managed executable and provide a safe supported resolution or a clear diagnostic. Coordinate runtime ownership and replacement so the updater cannot kill the active desktop backend. Preserve runtime files if replacement fails.
Local correction and limits
The diagnosed Windows user override has been backed up and removed. The bundled CLI successfully reads the current config. The active desktop process still inherited the old environment; a full fresh restart and focus-cycle verification are pending. This is not yet a claim that visible flashing is resolved.
Related: #46155 concerns stale runtime overrides after updates, whereas the binaries here matched. #47449 concerns focus-triggered renderer reloads; the confirmed mechanism here is termination of the backend by the plugin updater, and a common cause is not established.
No raw trace, full logs, private filesystem paths, account details or session transcript is attached.
Separate configuration-corruption report from this investigation: #56949.
Activity
RosuLaurentiu commentedon Oct 25, 2026
Verification after removing the persistent override
The affected user fully quit and restarted the desktop app on 2026-10-25.
The fresh process has no
CODEX_CLI_PATHoverride; the Windows user registry entry is absent and no machine-level value exists. The new startup log shows the main backend selected from the normal app-managed runtime copy under%LOCALAPPDATA%\OpenAI\Codex\bin\<runtime-id>\codex.exe, withsource=copiedandselectedRuntimeSource=bundled. It no longer selects.plugin-appserver\codex.exe.In the inspected initial log window, 19:53:27–19:54:20 UTC:
chrome_plugin_app_server_processes_stoppedrecords.EPERMexecutable replacement errors.status=already-present.After switching away from Codex and back, the user reports no flashing now.
This supports the runtime ownership conflict diagnosis and verifies the local correction for the observed startup/focus scenario. It does not prove that every future plugin replacement or update is safe.
Four
ResizeObserver loop completed with undelivered notificationsmessages remain in this window despite the absence of reported flashing. They should not be treated as proof of the original flashing cause.The separate quoted-notify updater defect in #56949 remains unpatched.