Repository navigation
Description
Description
Codex Desktop on Windows consistently hangs when sending the second message in a conversation.
The first message completes successfully, but the second message remains indefinitely in the loading/running state and never reaches the Codex app-server.
The issue occurs both inside projects and in a new conversation outside any project.
Environment
- OS: Windows
- Codex Desktop package: 26.917.8451.0
- Codex CLI bundled with Desktop: 0.155.0-alpha.16.3
- CLI model during testing: gpt-6-luna
- Desktop installed from Microsoft Store
Steps to reproduce
-
Open Codex Desktop.
-
Start a new conversation.
-
Send:
Respond only: test 1 -
The response completes normally.
-
Send:
Respond only: test 2 -
The UI remains indefinitely in the running/loading state.
The operation cannot be interrupted normally from the UI.
Expected behavior
The second message should start a new turn and complete normally.
Actual behavior
The first turn completes successfully.
The second message remains indefinitely in the loading state.
Important diagnostic findings
I tested the bundled Codex CLI separately using the same machine/account.
Multiple turns work normally in the same CLI session:
- test 1 -> success
- test 2 -> success
This suggests the account, backend and Codex runtime itself are working.
I also inspected the local app-server logs while reproducing the Desktop issue.
For the hanging second message:
- no new
turn/startis recorded - no
TurnInputis recorded - no
thread/resumeis recorded - the persistent queue contains no queued item for the second message
- the app-server remains alive and responds to other requests
This suggests that the second message is getting stuck before it reaches the app-server.
Electron / IPC observations
I launched the Desktop application with Chromium/Electron stderr logging enabled.
After the first successful turn, the logs contain messages such as:
Received broadcast but no handler is configured method=client-status-changed
Received broadcast but no handler is configured method=thread-stream-following-status-requested
Received broadcast but no handler is configured method=thread-stream-following-changed
There are also messages such as:
Received turn/started for unknown conversation
and later:
Received turn/completed for unknown conversation
Another warning observed:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added to [WebContents]. MaxListeners is 10.
After attempting to send the second message, no corresponding new turn submission appears in the Electron/app-server logs.
Additional observation
The Desktop starts the bundled Codex app-server with:
-c features.code_mode_host=true app-server --analytics-default-enabled -c [email protected]_servers.codex_app.enabled=true
I also previously observed:
failed to load configuration: invalid transport in mcp_servers.codex_app
when launching ChatGPT.exe directly without the normal packaged startup flow.
I do not know whether this is related to the second-turn issue, but I am including it as diagnostic information.
Troubleshooting already performed
The following did NOT resolve the issue:
- Windows app Repair
- Windows app Reset
- complete uninstall/reinstall
- removing/recreating the Codex Chromium profile
- testing outside WSL projects
- testing in a completely new conversation
- disabling Memories
- removing followUpQueueMode
- disabling the notify hook
- checking the persistent queue
- recreating thread writer locks
The issue still reproduces consistently.
The Codex CLI continues to support multiple turns normally.
Summary
The failure appears to occur in the Windows Desktop frontend / Electron / IPC conversation-submission path after the first completed turn, before the second request reaches the local Codex app-server.
Activity
github-actions commentedon Sep 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
LGToo commentedon Sep 25, 2026
Additional reproduction / workaround from another Windows user:
computer_use.windows.always_allowed_app_idsfrom%USERPROFILE%\.codex\config.tomlfeatures.thread_toolsin session flags%USERPROFILE%\.codex\config.tomlwas renamed toconfig.toml.backupand Codex was restarted.This suggests stale/unsupported user config may be able to trigger or preserve the second-turn hang on Windows. Reinstalling the app may not clear
%USERPROFILE%\.codex\config.toml, and fully terminating the desktop processes before renaming the file may be important if config/session state is kept in memory.chopper10elf-lan commentedon Sep 25, 2026
I can also confirm this issue on Codex Desktop for Windows.
My symptom is very similar: the first message in a conversation can complete normally, but a follow-up / second message can become stuck in the Desktop frontend and fail to proceed normally.
An important comparison in my environment is that VS Code Codex and the standalone Codex CLI on the same Windows machine can continue working across multiple turns. This makes the problem appear specific to Codex Desktop rather than a general account, network, or model availability failure.
I have actually been experiencing Windows Codex Desktop reliability problems since around the GPT-6 Astra rollout period, including model visibility inconsistencies. I did not submit bug reports when those problems first appeared, so I cannot provide an older GitHub issue from my account, but the second-turn/frontend-stall behavior is not something I first encountered only after the most recent Desktop releases.
Observed pattern:
Because CLI / VS Code Codex continue to work on the same machine and account, this seems consistent with a Desktop-specific frontend, thread/session state, IPC, or app-server synchronization issue.
I hope this additional long-running reproduction history is useful for determining whether the recent reports are a regression of an older Windows Desktop issue rather than an entirely new bug.
arasht52 commentedon Sep 25, 2026
Additional reproduction detail that may help isolate the Windows Desktop issue:
On my Windows installation, the problem reliably returns after either:
After startup, the first message works, but the second/follow-up message gets stuck before a new
turn/startis created.However, a full Sign out → Sign back in immediately restores normal multi-turn behavior. It continues working until the app is restarted (or Windows is restarted), at which point the same failure returns and another sign-out/sign-in fixes it again.
So in my case the workaround is reproducible:
This recurrence pattern may point to authentication/session state being restored incorrectly during Desktop startup rather than the conversation itself being corrupted.
arasht52 commentedon Sep 26, 2026
Additional diagnostic / workaround result from the affected Windows machine:
The failure evolved today into Codex Desktop getting stuck indefinitely on the startup spinner. Windows App Repair did not help, and terminating/restarting the app did not help.
I then tested authentication-state resets in two stages:
With Codex fully quit, I renamed only
%USERPROFILE%\.codex\auth.json, relaunched, and completed a fresh browser sign-in. The sign-in succeeded, but Codex returned to the indefinite startup spinner. So resettingauth.jsonalone was NOT sufficient.I quit Codex again, renamed the newly generated
auth.jsonand also renamed%USERPROFILE%\.codex\cap_sid, then relaunched and completed a fresh sign-in. This time Codex loaded normally.After the combined
auth.json+cap_sidreset:So on this machine the important distinction is:
auth.jsonreset alone -> still broken / startup spinnerauth.json+cap_sidreset together -> recovered startup AND multi-turnThis appears consistent with persisted authentication/account-session state contributing to the Windows Desktop failure. It may also be relevant that there is another Windows report (#19756) where both
auth.jsonandcap_sidhad to be cleared for a true session reset.I have not yet completed the stronger cold-boot test (full Windows restart). I will report whether the issue returns after that, since historically this machine's second-turn failure returned after app/Windows restarts.
arasht52 commentedon Sep 26, 2026
Follow-up after the workaround test: the fix has now survived a full Windows restart.
Test sequence/results on this machine:
auth.jsonalone: did NOT fix the problem; after signing in again, Codex returned to the infinite loading state.auth.jsonandcap_sid, then signing in again: Codex started normally.turn/starthang did not occur).So, at least on this machine, rebuilding both persisted auth/session artifacts appears materially different from rebuilding
auth.jsonalone, and the recovery persists across a cold Windows restart. This may be useful when investigating stale/corrupted persisted session state during Windows Desktop startup.Toromizu0c0 commentedon Sep 26, 2026
I can reproduce the same issue on a newer build.
Environment
Behavior
I also ran codex doctor:
So this issue still reproduces on 26.924.2738.0.
arasht52 commentedon Sep 26, 2026
@Toromizu0c0 I hit the same endless loading spinner after signing out. One workaround has been stable on my Windows machine, so it may be worth testing on your 26.924.2738.0 build:
%USERPROFILE%\.codex.auth.json(keep it as a backup rather than deleting it).cap_sidas well.Important result from my testing: resetting
auth.jsonalone did not fix the issue. Resetting bothauth.jsonandcap_siddid. After that, the endless startup spinner disappeared and multiple consecutive turns worked normally. The recovery also survived closing/reopening Codex and a full Windows restart.If you can reproduce the recovery on your newer build, that would be useful evidence that stale/corrupted persisted session state may be involved.
arasht52 commentedon Sep 27, 2026
Important follow-up/correction to my earlier workaround report: the recovery from resetting both
auth.jsonandcap_sidwas not permanent. It survived one Windows restart, but after a later cold boot the Windows Desktop app returned to the endless loading/reconnecting behavior.This time the UI exposed a concrete HTTP authentication failure instead of only spinning. Repeated requests showed:
unexpected status 401 Unauthorized: Missing bearer or basic authentication in headerEndpoint:
https://api.openai.com/v1/responsesThe UI showed
Reconnecting 5/5, and multiple separate requests failed with the same 401/missing-auth-header error.So the current observed sequence on this machine is:
auth.jsonalone does not recover it.auth.jsonandcap_sid, then signing in, recovers startup and multi-turn operation./v1/responsesrequests that the server rejects with401 Unauthorized: Missing bearer or basic authentication in header.This seems especially relevant to the persisted-session/auth hypothesis: the app can appear to have restored a signed-in/session state while an outgoing Responses API request is missing the required Authorization header. The reset workaround should therefore be considered temporary, not a permanent fix.
arasht52 commentedon Sep 27, 2026
Additional live-state observation from another reproduction of the second-turn hang.
While the second message was visibly stuck before a response/turn started, I kept the Codex Desktop process open and inspected only file metadata (no cookie/session contents were opened or shared) under the packaged app's Chromium/WebView profile:
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Roaming\Codex\web\Codex\DefaultThe app was not globally frozen. During the live hang, the
Default\Networkprofile continued to be updated. In particular, while the turn remained stuck, timestamps advanced on items including:Network\TransportSecurityNetwork\Cookies/Cookies-journalNetwork\Network Persistent StateNetwork\Reporting and NELBy contrast,
Local Storage,Session Storage, andWebStoragehad substantially older modification timestamps.This does not prove that this specific stuck turn received the previously observed
401 Missing bearer or basic authentication in header; I could not inspect the request directly because this build exposes no Developer Tools option in the UI. But it does show that during the second-turn hang the Chromium/WebView network layer remains active and persists network state rather than the whole Desktop app simply freezing.Combined with the separate reproduction where
/v1/responsesexplicitly returned401 Unauthorized: Missing bearer or basic authentication in header, this may help narrow the failure to the Desktop auth/request/session path rather than a total renderer/network freeze.arasht52 commentedon Sep 27, 2026
Stronger controlled workaround result from the same machine:
After another reproduction of the second-turn hang, I first tried the previously reported auth reset again (
auth.json+cap_sid). This time that was not sufficient: after signing back in, the turn still remained stuck/pending.I then fully closed Codex, ensured its processes were stopped, and changed only the persisted Chromium/WebView network profile by renaming:
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Roaming\Codex\web\Codex\Default\Networkto:
Network.bakNo other WebView profile directories were deleted or reset in that step.
On the next launch, Codex recovered and the previously failing behavior worked again.
So on this reproduction:
auth.json+cap_sid-> did not recover the hangDefault\Network, allowing WebView to recreate it -> recoveredThis is consistent with the earlier live-hang observation that
Default\Networkremained active and was updatingCookies,Network Persistent State,Reporting and NEL, etc. while the turn was stuck. It also fits the separate observed/v1/responsesfailure with401 Unauthorized: Missing bearer or basic authentication in header.I have kept the old
Network.bakprofile rather than deleting it. It may contain sensitive cookies/session data, so I will not upload or expose it publicly, but can preserve it in case maintainers want specific non-sensitive metadata or a targeted diagnostic from it.This does not yet establish the exact corrupt entry/file inside
Default\Network, but it narrows the workaround/root-cause area beyond the.codexauth files to persisted Chromium/WebView network state.arasht52 commentedon Sep 28, 2026
Additional environment/isolation result from the current reproduction:
Windows Desktop is already on 26.924.2738.0 (confirmed in Windows Installed Apps), and the second-turn/pending-turn problem still reproduces on that build.
At the same time, on the same Windows machine, same network, and same account, Codex CLI works normally:
v0.155.0So while Desktop 26.924.2738.0 is stuck, CLI multi-turn remains healthy in parallel.
Also, the previously reported
Default\\Networkrename/reset is not a durable workaround. It recovered Desktop temporarily, but the problem returned and the Network profile had to be regenerated again (.bak2,.bak3during subsequent attempts). Resetting the entire WebViewDefaultprofile also did not provide a durable recovery.Current isolation summary:
.codexauth reset: inconsistent/temporaryDefault\\Networkreset: temporary onlyDefaultprofile reset: not a durable fixThis further points toward a Windows Desktop-specific request/session/app-server integration issue rather than a general account, quota, network connectivity, or Codex backend failure.
diegoestesi-byte commentedon Sep 29, 2026
Additional reproduction on Windows Desktop
26.924.2738.0.Besides the cold-start loading problem, the same installation also shows an in-session failure:
codex.exe ... app-serverchild can temporarily restore the UI and sometimes reveals the response that had already completed.Windows Repair and reinstall did not resolve it. Local repositories/projects are not the source of the failure and have been left untouched.
Local logs show app-server initialization/handshake succeeding before the Desktop UI becomes stuck. Repeated
No owner repo found for remote taskwarnings are also present, although I cannot establish that they are causal.Impact is severe: Codex Desktop cannot be used reliably for ongoing project work because each conversation can require manual backend recovery. Please investigate the Desktop renderer/request-state/app-server integration on this build.
diegoestesi-byte commentedon Sep 29, 2026
Additional symptom from the same affected Windows Desktop 26.924.2738.0 installation:
No owner repo found for remote task, though causality is not established.This persistence across full process restarts is important: the broken state is not only in-memory. Desktop is restoring a persisted pending/streaming/task state on relaunch, and the project/workspace association may also be failing to restore correctly.
diegoestesi-byte commentedon Sep 29, 2026
Additional reproducible symptom on the same affected Windows Desktop installation (26.924.2738.0):
Creating a brand-new project/work item also hangs indefinitely.
Observed behavior:
This is not limited to reopening an existing broken repository/thread: even a fresh project attempt can get stuck at submission/start. A screenshot from the affected installation shows the Work composer with the submitted text and the spinner running indefinitely.
Combined with the earlier observations (cold-start Loading, pending turn restored after relaunch, important local repository failing to rehydrate), this suggests the failure affects both restoration of existing project state and creation/start of new project/task state in the Windows Desktop frontend/app-server integration.
chopper10elf-lan commentedon Oct 3, 2026
Confirmed fixed on my Windows machine — root cause was a stale persistent CODEX_CLI_PATH override
I can now confirm that the long-standing Codex Desktop issue I had been experiencing since the initial GPT-6 Astra rollout is resolved.
In my case, the root cause was a persistent user-level CODEX_CLI_PATH environment variable pointing to an old Codex runtime:
C:\Users\Administrator\AppData\Local\Programs\OpenAI\Codex\bin\codex.exe
That executable reported:
codex-cli 0.146.0
Meanwhile:
Standalone npm Codex CLI: 0.160.0
Codex Desktop package: 26.930.2377.0
So even though both the Desktop shell and standalone CLI were current, Codex Desktop was still being forced to launch the very old 0.146.0 runtime through CODEX_CLI_PATH.
This explained the behavior I had seen for a long time:
failed to deserialize stored thread item ...
unknown variant
completed,expected one of
started,interacted,interruptedThe stored rollout data itself was still intact.
I first updated the standalone CLI, then checked both the normal CLI and the runtime referenced by CODEX_CLI_PATH. That exposed the version mismatch:
codex --version
$forced = [Environment]::GetEnvironmentVariable("CODEX_CLI_PATH","User")
$forced
& $forced --version
The fix was to remove the stale user-level override:
[Environment]::SetEnvironmentVariable(
"CODEX_CLI_PATH",
$null,
"User"
)
Remove-Item Env:CODEX_CLI_PATH -ErrorAction SilentlyContinue
I then restarted Windows so Explorer and Desktop shortcuts inherited the clean environment.
After reboot, Codex Desktop was no longer forced to use the old runtime, and the long-standing Astra/model visibility issue was resolved. The previously affected Desktop behavior also returned to normal.
No .codex deletion, cache wipe, JSONL editing, SQLite editing, or another reinstall was required.
For other Windows users seeing similar symptoms, I strongly recommend checking all three scopes:
[Environment]::GetEnvironmentVariable("CODEX_CLI_PATH","Process")
[Environment]::GetEnvironmentVariable("CODEX_CLI_PATH","User")
[Environment]::GetEnvironmentVariable("CODEX_CLI_PATH","Machine")
and comparing the version of the executable referenced there with:
codex --version
In my case, this was an upgrade/migration/runtime-selection problem, not an Astra entitlement problem and not actual conversation data loss.
I hope this helps anyone else who has been stuck with the same Windows Desktop behavior.