LocalConversationPage crashes when opening some existing chats
What version of the Codex App are you using (From “About Codex” dialog)?
26.513.3673.0
What subscription do you have?
pro
What platform is your computer?
Windows x64
What issue are you seeing?
Codex Desktop bug report: LocalConversationPage crashes when opening some existing chats
Summary
Some existing Codex Desktop conversations cannot be opened anymore. When clicking the affected chats, the UI shows a generic error page:
糟糕,出错了
New or unaffected conversations still work, but multiple historical conversations crash the local conversation page, making the app hard to use.
Environment
- App: OpenAI Codex Desktop, Microsoft Store build
- Codex App version: 26.513.3673.0
- Package: OpenAI.Codex_26.513.3673.0_x64__2p2nqsd0c76g0
- Platform: Windows x64
- Workspace path pattern involved: Windows absolute paths, for example
C:\Users\<user>\Desktop\D3-Code\delivery-java\delivery-rebuild-order-service - Local timezone: Asia/Shanghai
Reproduction Steps
- Open Codex Desktop on Windows.
- Open an existing historical conversation that contains previous work in a Windows workspace.
- The conversation initially routes/resumes successfully.
- The UI then crashes into the generic error boundary page:
糟糕,出错了. - Clicking retry does not reliably recover the affected conversation.
Actual Result
The local conversation page crashes while rendering a previously completed thread.
Expected Result
Codex Desktop should render the conversation history successfully. If one historical item cannot be parsed or rendered, the app should isolate that item and keep the conversation usable instead of crashing the whole page.
Key Local Log Evidence
Log file:
C:\Users\<user>\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\05\16\codex-desktop-5665250b-2bd7-41b4-ae8b-8bfad293a06d-21412-t0-i1-050704-0.log
Observed around 2026-05-16 13:08 to 13:19 local time.
The thread resume itself succeeds, then the page crashes:
maybe_resume_success conversationId=019dadb2-4957-7dd0-b7d2-908445b3e30b latestTurnStatus=completed markedStreaming=true
error [electron-message-handler] error boundary ... name=LocalConversationPage
errorMessage="invalid syntax at line 1 col 5:
1 cwd=\"C:\\Users\\<user>\\Desktop\\D3-Code\\delivery-java\\delivery-rebuild-order-service\"
^"
The stack includes:
markdown-D32gobzN.js
local-conversation-thread-BKrlVhAv.js
review-file-source-tab-BmlwHNat.js
local-conversation-page-Vm2E5OJ5.js
LocalConversationPage
This repeats for multiple affected conversations, including:
019dadb2-4957-7dd0-b7d2-908445b3e30b
019d7002-1387-7ee3-8b15-5e7bebca7ac9
019dfe16-b386-7973-9d9f-d0d72e6740d8
There are also benign-looking thread/goal/get failures:
error={"code":-32600,"message":"goals feature is disabled"}
But the page crash happens after successful thread/resume / maybe_resume_success, and the fatal symptom is the LocalConversationPage error boundary with invalid syntax at line 1 col 5 while parsing a cwd="C:\..." line.
Local Data Integrity Check
The local thread database was checked separately:
C:\Users\<user>\.codex\state_5.sqlite- Total thread rollout paths checked: 107
- Missing rollout paths: 0
- Empty rollout paths: 0
- Invalid sampled rollout files: 0
So this does not look like missing local conversation files. It looks like a frontend rendering/parsing crash for specific historical content.
Suspected Cause
The renderer appears to parse a Windows command/source/review snippet containing:
cwd="C:\Users\<user>\Desktop\D3-Code\delivery-java\delivery-rebuild-order-service"
as a syntax item, fails at column 5, and throws through review-file-source-tab / markdown rendering, crashing the full LocalConversationPage.
Impact
This makes multiple existing conversations unusable. The user cannot reliably reopen important historical threads, and normal app usage is blocked because clicking affected conversations crashes the page.
Request
Please fix the Codex Desktop renderer so invalid or unexpected historical source/review/markdown content is isolated instead of crashing the whole conversation page. A fallback rendering path for unparsable source snippets would unblock affected users.
What steps can reproduce the bug?
Codex Desktop bug report: LocalConversationPage crashes when opening some existing chats
Summary
Some existing Codex Desktop conversations cannot be opened anymore. When clicking the affected chats, the UI shows a generic error page:
糟糕,出错了
New or unaffected conversations still work, but multiple historical conversations crash the local conversation page, making the app hard to use.
Environment
- App: OpenAI Codex Desktop, Microsoft Store build
- Codex App version: 26.513.3673.0
- Package: OpenAI.Codex_26.513.3673.0_x64__2p2nqsd0c76g0
- Platform: Windows x64
- Workspace path pattern involved: Windows absolute paths, for example
C:\Users\<user>\Desktop\D3-Code\delivery-java\delivery-rebuild-order-service - Local timezone: Asia/Shanghai
Reproduction Steps
- Open Codex Desktop on Windows.
- Open an existing historical conversation that contains previous work in a Windows workspace.
- The conversation initially routes/resumes successfully.
- The UI then crashes into the generic error boundary page:
糟糕,出错了. - Clicking retry does not reliably recover the affected conversation.
Actual Result
The local conversation page crashes while rendering a previously completed thread.
Expected Result
Codex Desktop should render the conversation history successfully. If one historical item cannot be parsed or rendered, the app should isolate that item and keep the conversation usable instead of crashing the whole page.
Key Local Log Evidence
Log file:
C:\Users\<user>\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\05\16\codex-desktop-5665250b-2bd7-41b4-ae8b-8bfad293a06d-21412-t0-i1-050704-0.log
Observed around 2026-05-16 13:08 to 13:19 local time.
The thread resume itself succeeds, then the page crashes:
maybe_resume_success conversationId=019dadb2-4957-7dd0-b7d2-908445b3e30b latestTurnStatus=completed markedStreaming=true
error [electron-message-handler] error boundary ... name=LocalConversationPage
errorMessage="invalid syntax at line 1 col 5:
1 cwd=\"C:\\Users\\<user>\\Desktop\\D3-Code\\delivery-java\\delivery-rebuild-order-service\"
^"
The stack includes:
markdown-D32gobzN.js
local-conversation-thread-BKrlVhAv.js
review-file-source-tab-BmlwHNat.js
local-conversation-page-Vm2E5OJ5.js
LocalConversationPage
This repeats for multiple affected conversations, including:
019dadb2-4957-7dd0-b7d2-908445b3e30b
019d7002-1387-7ee3-8b15-5e7bebca7ac9
019dfe16-b386-7973-9d9f-d0d72e6740d8
There are also benign-looking thread/goal/get failures:
error={"code":-32600,"message":"goals feature is disabled"}
But the page crash happens after successful thread/resume / maybe_resume_success, and the fatal symptom is the LocalConversationPage error boundary with invalid syntax at line 1 col 5 while parsing a cwd="C:\..." line.
Local Data Integrity Check
The local thread database was checked separately:
C:\Users\<user>\.codex\state_5.sqlite- Total thread rollout paths checked: 107
- Missing rollout paths: 0
- Empty rollout paths: 0
- Invalid sampled rollout files: 0
So this does not look like missing local conversation files. It looks like a frontend rendering/parsing crash for specific historical content.
Suspected Cause
The renderer appears to parse a Windows command/source/review snippet containing:
cwd="C:\Users\<user>\Desktop\D3-Code\delivery-java\delivery-rebuild-order-service"
as a syntax item, fails at column 5, and throws through review-file-source-tab / markdown rendering, crashing the full LocalConversationPage.
Impact
This makes multiple existing conversations unusable. The user cannot reliably reopen important historical threads, and normal app usage is blocked because clicking affected conversations crashes the page.
Request
Please fix the Codex Desktop renderer so invalid or unexpected historical source/review/markdown content is isolated instead of crashing the whole conversation page. A fallback rendering path for unparsable source snippets would unblock affected users.
What is the expected behavior?
Codex Desktop bug report: LocalConversationPage crashes when opening some existing chats
Summary
Some existing Codex Desktop conversations cannot be opened anymore. When clicking the affected chats, the UI shows a generic error page:
糟糕,出错了
New or unaffected conversations still work, but multiple historical conversations crash the local conversation page, making the app hard to use.
Environment
- App: OpenAI Codex Desktop, Microsoft Store build
- Codex App version: 26.513.3673.0
- Package: OpenAI.Codex_26.513.3673.0_x64__2p2nqsd0c76g0
- Platform: Windows x64
- Workspace path pattern involved: Windows absolute paths, for example
C:\Users\<user>\Desktop\D3-Code\delivery-java\delivery-rebuild-order-service - Local timezone: Asia/Shanghai
Reproduction Steps
- Open Codex Desktop on Windows.
- Open an existing historical conversation that contains previous work in a Windows workspace.
- The conversation initially routes/resumes successfully.
- The UI then crashes into the generic error boundary page:
糟糕,出错了. - Clicking retry does not reliably recover the affected conversation.
Actual Result
The local conversation page crashes while rendering a previously completed thread.
Expected Result
Codex Desktop should render the conversation history successfully. If one historical item cannot be parsed or rendered, the app should isolate that item and keep the conversation usable instead of crashing the whole page.
Key Local Log Evidence
Log file:
C:\Users\<user>\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\05\16\codex-desktop-5665250b-2bd7-41b4-ae8b-8bfad293a06d-21412-t0-i1-050704-0.log
Observed around 2026-05-16 13:08 to 13:19 local time.
The thread resume itself succeeds, then the page crashes:
maybe_resume_success conversationId=019dadb2-4957-7dd0-b7d2-908445b3e30b latestTurnStatus=completed markedStreaming=true
error [electron-message-handler] error boundary ... name=LocalConversationPage
errorMessage="invalid syntax at line 1 col 5:
1 cwd=\"C:\\Users\\<user>\\Desktop\\D3-Code\\delivery-java\\delivery-rebuild-order-service\"
^"
The stack includes:
markdown-D32gobzN.js
local-conversation-thread-BKrlVhAv.js
review-file-source-tab-BmlwHNat.js
local-conversation-page-Vm2E5OJ5.js
LocalConversationPage
This repeats for multiple affected conversations, including:
019dadb2-4957-7dd0-b7d2-908445b3e30b
019d7002-1387-7ee3-8b15-5e7bebca7ac9
019dfe16-b386-7973-9d9f-d0d72e6740d8
There are also benign-looking thread/goal/get failures:
error={"code":-32600,"message":"goals feature is disabled"}
But the page crash happens after successful thread/resume / maybe_resume_success, and the fatal symptom is the LocalConversationPage error boundary with invalid syntax at line 1 col 5 while parsing a cwd="C:\..." line.
Local Data Integrity Check
The local thread database was checked separately:
C:\Users\<user>\.codex\state_5.sqlite- Total thread rollout paths checked: 107
- Missing rollout paths: 0
- Empty rollout paths: 0
- Invalid sampled rollout files: 0
So this does not look like missing local conversation files. It looks like a frontend rendering/parsing crash for specific historical content.
Suspected Cause
The renderer appears to parse a Windows command/source/review snippet containing:
cwd="C:\Users\<user>\Desktop\D3-Code\delivery-java\delivery-rebuild-order-service"
as a syntax item, fails at column 5, and throws through review-file-source-tab / markdown rendering, crashing the full LocalConversationPage.
Impact
This makes multiple existing conversations unusable. The user cannot reliably reopen important historical threads, and normal app usage is blocked because clicking affected conversations crashes the page.
Request
Please fix the Codex Desktop renderer so invalid or unexpected historical source/review/markdown content is isolated instead of crashing the whole conversation page. A fallback rendering path for unparsable source snippets would unblock affected users.
Additional information
_No response_
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce the same issue on Windows after the latest Codex Desktop update.
Visible symptom:
Local log evidence:
thread/resumesucceeds /maybe_resume_successappears.Error: invalid syntax at line 1 col 5cwd="C:\Users\<user>\Documents\..."There are also
thread/goal/geterrors with:goals feature is disabledbut those appear non-fatal. The fatal symptom is the renderer/parser crash on the Windows
cwdpath while opening historical conversations.This started after updating Codex Desktop on Windows on 2026-05-16.
I encountered the same issue and was able to temporarily resolve it by opening a new Codex conversation, using it to troubleshoot the affected sessions, applying a local fix, and then restarting Codex Desktop.
However, the issue may recur if a later conversation triggers Git-related commands again. Below is my current understanding of the problem and workaround, in case it helps others.
Symptoms
When opening certain historical conversations in Codex Desktop, the session page crashes and enters an error boundary. The UI may show messages such as:
Oops, an errors has occurredCheck for updatesTry againIn my case, the affected sessions were not actually corrupted.
Root Cause
This does not appear to be a project code issue, nor does it seem to be caused by a corrupted session index.
The likely root cause is that Codex Desktop's frontend fails while rendering Markdown from historical session messages.
More specifically, some historical messages contained Codex Git inline directives with Windows-style paths, for example directives that included a
cwdparameter like:The current Codex Desktop renderer appears to throw a syntax error when parsing certain Windows backslash paths inside these Git inline directives. As a result, the entire session page crashes during frontend rendering.
Investigation Process
The logs showed that both
thread/readandthread/resumecompleted successfully for the affected sessions. This suggests that the backend was able to read and resume the sessions correctly.The crash happened after
maybe_resume_success, during the frontend Markdown rendering phase. The error looked like this:I also validated the affected JSONL files line by line. The JSONL files themselves did not contain JSON formatting errors.
Based on this, the issue appears to be:
Temporary Workaround
The workaround I used was to convert the executable Git inline directives in the historical messages into plain text.
The goal was to preserve useful information such as:
while preventing Codex Desktop from parsing those lines as Git action buttons or executable inline directives.
The following were not modified:
Only the affected historical session messages were adjusted.
After the modification, I revalidated the JSONL files and confirmed that they could still be parsed correctly. Then I restarted Codex Desktop, and the affected sessions opened normally again.
Impact of the Workaround
So far, this workaround has had no obvious negative impact on normal usage.
The only affected content is the small number of historical message lines that may previously have been rendered as Git operation buttons. After the fix, those lines are preserved as plain text instead.
The following content remains intact:
Remaining Risk
This is only a workaround for the affected historical sessions. It does not fix the underlying Codex Desktop frontend rendering issue.
If a future session writes another similar Git inline directive containing a Windows backslash path, the same version of Codex Desktop may still trigger the same rendering error again.
If this happens, the same workaround can be applied:
I hope this helps others who run into the same issue.
I can confirm the same failure mode on another Windows Codex Desktop install.
Environment
OpenAI.Codex_26.513.3673.0_x64__2p2nqsd0c76g00.131.0-alpha.9ChatgptC:\...\MyRecipeBook-developfeature/fe-auth-002-auth-typesSymptom
The app frequently shows the generic Portuguese error page:
This started after the Codex App update on 2026-05-16.
Relevant local log evidence
Log file path pattern:
The thread read/resume path succeeds first, then the renderer crashes:
Stack includes:
Checked and ruled out locally
Recent logs did not show evidence of these as the primary cause:
ENOTFOUND,ECONNRESET,ETIMEDOUT-32001Local logs showed active
responses_websockettraffic and successful response events, so this looks like a frontend renderer/parsing regression rather than auth/plan/network/service outage.Other warnings observed, likely secondary
The strongest correlation is still the
LocalConversationPageerror boundary while parsing/rendering acwd="C:\..." branch="..."payload afterthread/resumesucceeds.I can reproduce the same failure mode on another Windows machine.
Environment:
Microsoft Windows NT 10.0.26200.0 x64OpenAI.Codex_26.513.3673.0_x64__2p2nqsd0c76g00.131.0-alpha.9User-facing symptom:
糟糕,出错了The local desktop logs match the renderer crash described in this issue. I see repeated
LocalConversationPageerror-boundary failures with:The same failure appears across multiple affected Windows workspaces, for example:
The renderer stack also follows the same path:
I also see
thread/goal/get -> goals feature is disabledaround the same time, but the fatal failure is the frontend renderer error boundary while parsing thecwd="..."content.So this is an independent reproduction of the same Windows renderer/parsing crash, not only the same generic error screen. I am omitting raw local paths and full logs from the public comment, but the sanitized excerpts above are taken from local Codex Desktop logs.
Because
thread/resumesucceeds and the underlying rollout inventory appears intact, this is a useful parser/render-vs-durable-history case forcodex-rescue==0.1.0a4.If you still have one affected rollout, could you run a read-only diagnostic:
pipx install codex-rescue==0.1.0a4codex-rescue doctor --json "/path/to/the-affected-rollout.jsonl"It won’t fix
LocalConversationPage, but it can independently check whether the durable transcript contains malformed/schema/tool-state evidence or is structurally healthy and only fails in rendering.Please share only sanitized status/findings/aggregate counts—no raw rollout, database, prompts, tool output, credentials, repository data, conversation IDs, or private paths.
I found a deterministic content-level trigger that appears to be a narrower instance of this Windows LocalConversationPage crash.
Environment
Minimal reproduction
Using isolated one-character UTF-8 files and opening them through the same local-file Markdown path:
U+73C0in a Markdown paragraph causes the conversation page to fail..txtfile renders normally.U+73C0also fails, so the trigger is in the rendered result rather than the literal source text.This points to a client-side Markdown/rendering-path failure for a normal text node, rather than malformed UTF-8, a missing rollout, or a whole-phrase/content rule.
Recovery validation
Suggested fix
Please isolate Markdown/source rendering failures behind a per-item error boundary or fallback-to-plain-text path so one valid Unicode text node cannot crash the entire historical conversation page. A regression test should cover a completed local conversation containing U+73C0 in a normal Markdown paragraph, plus the plain-text and inline-code controls.
I am not attaching the private conversation or local files, but can provide sanitized logs if needed.