Repository navigation
Description
Summary
On Windows Codex Desktop, a failure in the plugin synchronization path can terminate the local Codex app-server/CLI process. The Desktop UI then reloads and shows the startup splash/logo again, and the currently running task/turn is interrupted.
Disabling plugins with:
[features]
plugins = falsehas completely stopped the unexpected Desktop restarts in repeated use.
Environment
- Platform: Windows x64
- Windows build reported by Codex:
10.0.26100 - Codex Desktop package:
26.917.9434.0 - Local app-server version:
0.155.0-alpha.16 - Local app-server executable observed in logs:
~/.codex/plugins/.plugin-appserver/codex.exe
Symptoms
While a Codex task is running:
- The whole Codex Desktop UI suddenly returns to the initial startup/splash logo.
- The current task stops.
- Codex attempts to reinitialize the local app-server.
- The UI eventually becomes usable again, but the active task has already been interrupted.
This is different from the separate network "Reconnect" behavior. I had this Desktop-restart issue before configuring explicit proxy environment variables. The proxy configuration fixed the repeated Reconnect problem, but did not fix this Desktop restart. Disabling plugins did.
Relevant log sequence
Immediately before the app-server exits:
Request failed ... read remote plugin details:
failed to send remote plugin catalog request to
https://chatgpt.com/backend-api/ps/plugins/...
chatgpt_pubsub_transport_closed
chatgpt_pubsub_reconnect_scheduled
remote installed plugin bundle sync failed
failed to send remote plugin catalog request to
https://chatgpt.com/backend-api/ps/plugins/installed?limit=200&includeDownloadUrls=true
Then:
app_server_connection.closed code=1
app_server_connection.state_changed ... next=error
Codex CLI process exited classifiedAsExpected=false code=1
fatal_error_broadcasted
Codex then immediately tries to restart the app-server.
There are also repeated plugin reconciliation warnings later in the same session:
bundled_plugins_reconcile_failed
errorCode=EPERM
errorMessage="EPERM: operation not permitted, unlink
'...\\.codex\\plugins\\.plugin-appserver\\codex.exe'"
Reproduction / isolation
With plugins enabled/default:
- Launch Codex Desktop on Windows.
- Start a normal coding task.
- During use, plugin sync can fail.
- The local app-server exits with code 1.
- Desktop reloads to the startup logo and the active task stops.
With:
[features]
plugins = falsethe Desktop has remained stable and the unexpected reload/restart has stopped.
Expected behavior
A plugin catalog/synchronization/network failure should be isolated from the core app-server lifecycle. It should fail gracefully, retry, or temporarily disable the affected plugin functionality without terminating the Codex app-server or interrupting the user's active coding task.
The EPERM file-lock failure while reconciling .plugin-appserver/codex.exe may also be relevant to the Windows-specific failure path.
Additional note
Please do not treat the proxy environment configuration as the cause of this crash. The Desktop restart behavior existed beforehand. Explicit proxy configuration only resolved a separate repeated-Reconnect issue; plugins = false is what eliminated the Desktop restart.
Activity