Summary
Codex Desktop appeared to crash or reload while work was in progress. Local evidence does not show a full main-process/app-server restart. Instead, the logs show a renderer startup/reload signature, followed by placeholder turn rebinding and thousands of Item not found in turn state errors.
This report is intentionally framed as a renderer/UI state rehydration problem rather than a confirmed full Desktop process crash.
Environment
What the user saw
While investigating a stuck Thinking turn and after sending a message, the Desktop UI appeared to crash/reload. The user then resumed investigation in the same Desktop session.
What the logs show
There was no clear evidence of a full main process restart:
- The same
codex-desktop-... log file continued after the incident.
- No new Desktop log file appeared at the suspected crash/reload time.
- The app-server connection showed startup/connected only near original app launch, not a new reconnect/restart at the incident time.
- No recent Windows WER/CrashDumps were found for Codex/Electron in the checked locations.
- The local Sentry queue did not appear to contain a pending crash report.
However, around 2026-05-23T19:15:41Z the log has a strong renderer startup/reload signature:
2026-05-23T19:15:41.195Z response_routed method=remoteControl/status/read ...
2026-05-23T19:15:41.252Z response_routed method=thread/read conversationId=<redacted> ...
2026-05-23T19:15:41.262Z response_routed method=thread/read conversationId=<redacted> ...
2026-05-23T19:15:41.982Z [desktop-notifications] service starting
2026-05-23T19:15:41.990Z [startup][renderer] app routes mounted after 1672ms
2026-05-23T19:15:41.991Z Handled 'ready' message, sent ide-context-updated
2026-05-23T19:15:42.399Z bundled_plugins_reconcile_started ... reason=startup
Shortly after that, the renderer/client started rebinding placeholder latest turns:
2026-05-23T19:16:04.132Z Rebinding placeholder latest turn to incoming event conversationId=<redacted> turnId=<redacted>
2026-05-23T19:16:09.515Z Rebinding placeholder latest turn to incoming event conversationId=<redacted> turnId=<redacted>
Then the UI/client state went into a repeated missing-item failure pattern:
2026-05-23T19:16Z-19:33Z error [electron-message-handler] Item not found in turn state itemId=<redacted>
Local count from the log:
Item not found in turn state total in current log: 3875
After renderer reload window, 19:16Z-19:33Z: 3825
Several minutes contained repeated bursts of 106, 212, 318, or 424 errors/minute.
There were also request/state symptoms during the same window:
2026-05-23T19:16:15.723Z Timed out waiting for MCP response to experimentalFeature/list
2026-05-23T19:16:16.221Z response_orphaned ... requestId=experimentalFeature/list:<redacted>
2026-05-23T19:16:16.224Z No promise for request ID id=experimentalFeature/list:<redacted>
Expected behavior
If the renderer reloads or crashes while threads are active:
- the app should durably log a renderer crash/reload reason, if available;
- thread/turn state should be rehydrated idempotently from the app-server/session store;
- placeholder turn rebinding should not leave existing streamed items orphaned;
- the UI should not spam
Item not found in turn state for many minutes;
- if recovery is impossible, the UI should show a clear recover/reload state rather than silently corrupting the visible turn state.
Actual behavior
After apparent renderer reload:
- Desktop main/app-server logs continued without a full reconnect/restart;
- renderer startup messages appeared;
- active threads were read again and latest turns were rebound;
- the client emitted thousands of
Item not found in turn state errors across many item IDs;
- there was no obvious durable crash artifact to explain the renderer reload.
Related issues
Possibly related but not exact duplicates:
Summary
Codex Desktop appeared to crash or reload while work was in progress. Local evidence does not show a full main-process/app-server restart. Instead, the logs show a renderer startup/reload signature, followed by placeholder turn rebinding and thousands of
Item not found in turn stateerrors.This report is intentionally framed as a renderer/UI state rehydration problem rather than a confirmed full Desktop process crash.
Environment
OpenAI.Codex_26.519.5221.026.519.41501codex-cli 0.130.0-alpha.5What the user saw
While investigating a stuck
Thinkingturn and after sending a message, the Desktop UI appeared to crash/reload. The user then resumed investigation in the same Desktop session.What the logs show
There was no clear evidence of a full main process restart:
codex-desktop-...log file continued after the incident.However, around
2026-05-23T19:15:41Zthe log has a strong renderer startup/reload signature:Shortly after that, the renderer/client started rebinding placeholder latest turns:
Then the UI/client state went into a repeated missing-item failure pattern:
Local count from the log:
There were also request/state symptoms during the same window:
Expected behavior
If the renderer reloads or crashes while threads are active:
Item not found in turn statefor many minutes;Actual behavior
After apparent renderer reload:
Item not found in turn stateerrors across many item IDs;Related issues
Possibly related but not exact duplicates:
Item not found in turn stateafter restart in the VS Code extensionItem not found in turn statewith chat/completion protocol/custom provider path