You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex Desktop Windows - resume fails because same session path is compared in two Windows path formats. #23311
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 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."
cannot resume running thread <thread-id> with stale path:
requested `C:\Users\<user>\.codex\sessions\2026\05\20\rollout-2026-05-20T10-15-46-<thread-id>.jsonl`,
active `\\?\C:\Users\<user>\.codex\sessions\2026\05\20\rollout-2026-05-20T10-15-46-<thread-id>.jsonl`
A few details that may help narrow it down:
Restarting Codex Desktop did not clear the problem.
The affected rollout-*.jsonl files existed and were readable; this was not a missing rollout file.
The corresponding rows in %USERPROFILE%\.codex\state_5.sqlite had threads.rollout_path stored in normal Windows form:
Manually backing up state_5.sqlite and updating the affected threads.rollout_path values to the \\?\C:\... form made those paths match the active path and appears to mitigate the issue locally.
This reproduced even after the automations were paused, so the immediate trigger was not only the heartbeat interval. The stale-path check can still fail when trying to resume/reopen an existing target thread whose persisted rollout path and active rollout path are spelled differently.
Expected behavior remains that Codex should compare canonical file identity / normalized Windows paths instead of doing a literal string comparison between C:\... and \\?\C:\....
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.4 and later. Please update Codex Desktop to a version containing that CLI release.
Activity
github-actions commentedon May 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ysc0224 commentedon May 18, 2026
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.
jackyshan82 commentedon May 19, 2026
v26.513 did not fix the issue.
Delta-Water commentedon May 20, 2026
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:\....JohnAlcatraz commentedon May 20, 2026
I see the same bug, session paths now have that weird \?\ in front of them
etraut-openai commentedon Jun 5, 2026
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.