Codex Desktop Windows - resume fails because same session path is compared in two Windows path formats.
Resolved 💬 6 comments Opened May 18, 2026 by ysc0224 Closed Jun 5, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
cannot resume running thread 019e20bb-ae59-7d63-9991-a424667fd584 with stale path: requested `C:\Users\USER\.codex\sessions\2026\05\13\rollout-2026-05-13T18-47-11-019e20bb-ae59-7d63-9991-a424667fd584.jsonl`, active `\\?\C:\Users\USER\.codex\sessions\2026\05\13\rollout-2026-05-13T18-47-11-019e20bb-ae59-7d63-9991-a424667fd584.jsonl`
Error:
cannot resume running thread <thread-id> with stale path:
requested C:\Users\USER\.codex\sessions\...jsonl,
active \\?\C:\Users\USER\.codex\sessions\...jsonl
Expected:
Codex should normalize both paths before comparing, because they refer to the same session file.
Observed:
Scheduled automation fails to resume thread with stale path.
Environment:
- Windows version: Windows 11 Pro
- Codex Desktop version: 26.513.40821
++++++++++++++++++++++++++
even though 2 days ago
etraut-openai
said
"We've issued a hotfix to address this. Please update to the latest version."
it is still happening.
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
even though 2 days ago
etraut-openai
said
"We've issued a hotfix to address this. Please update to the latest version."
it is still happening.
v26.513 did not fix the issue.
I am seeing the same bug on Windows with Codex Desktop after the reported hotfix.
Environment observed locally:
26.513.408210.131.0-alpha.9%USERPROFILE%\.codexRepresentative error:
A few details that may help narrow it down:
rollout-*.jsonlfiles existed and were readable; this was not a missing rollout file.%USERPROFILE%\.codex\state_5.sqlitehadthreads.rollout_pathstored in normal Windows form:while the runtime active path in the error used the extended Windows prefix:
state_5.sqliteand updating the affectedthreads.rollout_pathvalues to the\\?\C:\...form made those paths match the active path and appears to mitigate the issue locally.Expected behavior remains that Codex should compare canonical file identity / normalized Windows paths instead of doing a literal string comparison between
C:\...and\\?\C:\....I see the same bug, session paths now have that weird \\?\ in front of them
Thanks for the report. This was a valid bug: Codex compared the two Windows path representations without normalizing them first.
The issue has now been fixed by #25509. The fix is included in Codex CLI
0.137.0-alpha.4and later. Please update Codex Desktop to a version containing that CLI release.