codex - 💡(How to fix) Fix Codex Desktop regression: local conversation renderer crashes on older Windows sessions with internal git directive cwd payload

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

After updating Codex Desktop on Windows, multiple existing local conversations in one project started failing to open in the Desktop UI. The app showed only the generic error screen (Ocurrió un error / “An error occurred”).

The same conversations could still be resumed from the Codex CLI, and the local JSONL session files were valid. This points to a Desktop renderer/parser regression rather than project corruption or invalid session storage.

The affected conversations were older and/or long local sessions associated with a Windows workspace path similar to:

C:\Users\<user>\Documents\Cursos\Proptech

Error Message

After updating Codex Desktop on Windows, multiple existing local conversations in one project started failing to open in the Desktop UI. The app showed only the generic error screen (Ocurrió un error / “An error occurred”). 3. Desktop loads the thread metadata successfully, then the conversation view crashes into the generic error page. The Desktop logs showed successful thread/read and thread/resume calls, followed by a renderer error boundary in the local conversation page: error boundary ... name=LocalConversationPage The relevant error was:

Root Cause

I have not attached full session files because they may contain private conversation history. The key signal is that valid JSONL sessions with older internal git directive records can crash the Desktop renderer, while the CLI can still resume the same chats. Sanitizing only those old directives and compacted records restores Desktop access.

Fix Action

Fix / Workaround

Workaround that fixed it locally

Code Example

C:\Users\<user>\Documents\Cursos\Proptech

---

method=thread/read errorCode=null
method=thread/resume errorCode=null
error boundary ... name=LocalConversationPage

---

app://-/assets/markdown-D32gobzN.js
app://-/assets/local-conversation-thread-BKrlVhAv.js
app://-/assets/local-conversation-page-Vm2E5OJ5.js

---

errorMessage="invalid syntax at line 1 col 5:

1  cwd=\"C:\\Users\\<user>\\Documents\\Cursos\\Proptech\"
       ^"

---

errorMessage="invalid syntax at line 1 col 5:

1  cwd=\"C:\\Users\\<user>\\Documents\\Cursos\\Proptech\" branch=\"codex/billing-foundation-compatible\"
       ^"

---

C:\Users\<user>\.codex\sessions\...

---

Candidate local sessions checked: 126
Files modified: 36
Compacted events removed: 90
Old git-directive lines sanitized: 294
Remaining old directive files: 0
JSONL validation failures after repair: 0
RAW_BUFFERClick to expand / collapse

Bug Report

Description

After updating Codex Desktop on Windows, multiple existing local conversations in one project started failing to open in the Desktop UI. The app showed only the generic error screen (Ocurrió un error / “An error occurred”).

The same conversations could still be resumed from the Codex CLI, and the local JSONL session files were valid. This points to a Desktop renderer/parser regression rather than project corruption or invalid session storage.

The affected conversations were older and/or long local sessions associated with a Windows workspace path similar to:

C:\Users\<user>\Documents\Cursos\Proptech

Environment

  • Platform: Windows x64
  • OS: Microsoft Windows NT 10.0.26200.0
  • Codex Desktop package: OpenAI.Codex_26.513.3673.0_x64__2p2nqsd0c76g0
  • Codex CLI: codex-cli 0.130.0
  • Shell: PowerShell 7.6.1
  • Locale: es-CO

What happened

  1. Open Codex Desktop after the recent update.
  2. Select older existing local conversations under a project.
  3. Desktop loads the thread metadata successfully, then the conversation view crashes into the generic error page.
  4. The same conversation can still be resumed from the CLI.

Evidence from local logs

The Desktop logs showed successful thread/read and thread/resume calls, followed by a renderer error boundary in the local conversation page:

method=thread/read errorCode=null
method=thread/resume errorCode=null
error boundary ... name=LocalConversationPage

The failing component stack included:

app://-/assets/markdown-D32gobzN.js
app://-/assets/local-conversation-thread-BKrlVhAv.js
app://-/assets/local-conversation-page-Vm2E5OJ5.js

The relevant error was:

errorMessage="invalid syntax at line 1 col 5:

1  cwd=\"C:\\Users\\<user>\\Documents\\Cursos\\Proptech\"
       ^"

A similar failure also appeared with branch metadata included:

errorMessage="invalid syntax at line 1 col 5:

1  cwd=\"C:\\Users\\<user>\\Documents\\Cursos\\Proptech\" branch=\"codex/billing-foundation-compatible\"
       ^"

Local investigation

The affected local session files were stored under:

C:\Users\<user>\.codex\sessions\...

One problematic session was ~177 MB, valid JSONL, and contained many compacted entries plus old internal git directive records. A broader scan found 126 candidate local session files containing either the project path or old internal git directive content.

The JSONL files parsed successfully before repair, so this did not appear to be a malformed JSONL/session-file problem.

Workaround that fixed it locally

A backup was made first. Then the local sessions were sanitized by:

  1. Removing type: compacted JSONL events from affected local session files.
  2. Replacing the old internal git directive prefix (the prefix made of two colons followed by git-) with inert text so the Desktop markdown/directive parser would not try to parse it.
  3. Revalidating the rewritten JSONL files.

Results of the local repair:

Candidate local sessions checked: 126
Files modified: 36
Compacted events removed: 90
Old git-directive lines sanitized: 294
Remaining old directive files: 0
JSONL validation failures after repair: 0

After this repair, all previously failing chats opened normally in Codex Desktop again.

Expected behavior

Codex Desktop should tolerate older local session history and internal directive records without crashing the conversation view. If a historical directive payload is no longer parseable, the renderer should degrade gracefully, ignore the unsupported directive, or render it as plain text instead of failing the whole conversation page.

Actual behavior

The local conversation page crashes after thread read/resume succeeds, apparently while rendering old internal git directive content whose payload starts with a Windows cwd=... attribute string.

Notes

I have not attached full session files because they may contain private conversation history. The key signal is that valid JSONL sessions with older internal git directive records can crash the Desktop renderer, while the CLI can still resume the same chats. Sanitizing only those old directives and compacted records restores Desktop access.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Codex Desktop should tolerate older local session history and internal directive records without crashing the conversation view. If a historical directive payload is no longer parseable, the renderer should degrade gracefully, ignore the unsupported directive, or render it as plain text instead of failing the whole conversation page.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Desktop regression: local conversation renderer crashes on older Windows sessions with internal git directive cwd payload