codex - 💡(How to fix) Fix Windows Desktop: cannot resume running thread due to C:\ path vs \\?\C:\ path mismatch

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…

Error Message

Error: throw new Error( Codex rejects resuming the thread with a stale path error, even though the session .jsonl file still exists and is readable.

Fix Action

Fix / Workaround

The user cannot reopen the previous conversation from the sidebar. The only workaround is to manually inspect the .jsonl file and continue in a new conversation, losing the normal resumed-thread experience.

RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.506.3741.0

What subscription do you have?

plus

What platform is your computer?

Windows x64

What issue are you seeing?

Codex Desktop on Windows fails to resume a previous running thread due to path normalization mismatch.

Error: cannot resume running thread 019e2aa5-a9f9-7b91-98bb-dbb708cf9bf7 with stale path: requested C:\Users\Administrator\.codex\sessions\2026\05\15\rollout-2026-05-15T15-59-20-019e2aa5-a9f9-7b91-98bb-dbb708cf9bf7.jsonl, active \\?\C:\Users\Administrator\.codex\sessions\2026\05\15\rollout-2026-05-15T15-59-20-019e2aa5-a9f9-7b91-98bb-dbb708cf9bf7.jsonl

Both paths refer to the same file on Windows. It looks like Codex compares the raw path strings instead of normalizing Windows extended-length paths. The session file still exists and is readable, but the app refuses to resume the thread. Codex version shown in process path: 26.506.3741.0.

What steps can reproduce the bug?

// Run on Windows with Node.js. // Replace the file path with any existing file on disk.

const fs = require("fs");

const normalPath = "C:\Users\Administrator\.codex\sessions\2026\05\15\rollout-2026-05-15T15-59-20-019e2aa5-a9f9-7b91-98bb-dbb708cf9bf7.jsonl";

const extendedPath = "\\?\C:\Users\Administrator\.codex\sessions\2026\05\15\rollout-2026-05-15T15-59-20-019e2aa5-a9f9-7b91-98bb-dbb708cf9bf7.jsonl";

console.log("Normal exists:", fs.existsSync(normalPath)); console.log("Extended exists:", fs.existsSync(extendedPath));

console.log("Raw string equality:", normalPath === extendedPath);

const normalStat = fs.statSync(normalPath); const extendedStat = fs.statSync(extendedPath);

console.log("Same size:", normalStat.size === extendedStat.size); console.log("Same mtime:", normalStat.mtimeMs === extendedStat.mtimeMs);

// A resume check that compares raw path strings would incorrectly fail here. if (normalPath !== extendedPath) { throw new Error( stale path: requested \${normalPath}`, active `${extendedPath}`` ); }

What is the expected behavior?

Codex should normalize Windows paths before comparing rollout/session paths. For example, C:... and \?\C:... should be treated as equivalent when they refer to the same file. Actual behavior Codex rejects resuming the thread with a stale path error, even though the session .jsonl file still exists and is readable.

Additional information

The user cannot reopen the previous conversation from the sidebar. The only workaround is to manually inspect the .jsonl file and continue in a new conversation, losing the normal resumed-thread experience.

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…

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 Windows Desktop: cannot resume running thread due to C:\ path vs \\?\C:\ path mismatch