codex - 💡(How to fix) Fix Windows: Cannot resume thread due to C:\ path vs \\?\C:\ path mismatch until Codex process is killed

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

The app showed this error: 3. Codex fails with a stale path error where one path uses:

Root Cause

The session file existed, but Codex failed to resume it because the requested path used:

Fix Action

Fix / Workaround

I saw a similar Windows path mismatch reported for the VS Code extension, but I’m opening this separately because this happened in the desktop app and the workaround was different where I had to manually end the Codex process from Task Manager.

Workaround that fixed it:

Code Example

cannot resume running thread 019e2b3a-27d5-7371-bf11-ba4747ffcc4f with stale path: requested `C:\Users\<USER>\.codex\sessions\2026\05\15\rollout-2026-05-15T13-41-32-019e2b3a-27d5-7371-bf11-ba4747ffcc4f.jsonl`, active `\\?\C:\Users\<USER>\.codex\sessions\2026\05\15\rollout-2026-05-15T13-41-32-019e2b3a-27d5-7371-bf11-ba4747ffcc4f.jsonl`

---

while the active path used:
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 11 x64

What issue are you seeing?

I couldn’t resume an existing thread in the Codex desktop app on Windows.

The app showed this error:

cannot resume running thread 019e2b3a-27d5-7371-bf11-ba4747ffcc4f with stale path: requested `C:\Users\<USER>\.codex\sessions\2026\05\15\rollout-2026-05-15T13-41-32-019e2b3a-27d5-7371-bf11-ba4747ffcc4f.jsonl`, active `\\?\C:\Users\<USER>\.codex\sessions\2026\05\15\rollout-2026-05-15T13-41-32-019e2b3a-27d5-7371-bf11-ba4747ffcc4f.jsonl`

The session file existed, but Codex failed to resume it because the requested path used:

C:\Users\<USER>\...

while the active path used:

\\?\C:\Users\<USER>\...

Trying to resume again did not fix it. What fixed it was opening Task Manager, ending the Codex process manually, reopening the Codex app, and then opening the thread again.

What steps can reproduce the bug?

This happened with an existing Codex desktop app session on Windows.

Steps:

  1. Have an existing Codex thread/session saved under:

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

  2. Try to resume/open that thread from the Codex desktop app.

  3. Codex fails with a stale path error where one path uses:

    C:\Users\<USER>\...

    and the other uses:

    \\?\C:\Users\<USER>\...

  4. Trying to reopen/resume the thread again still fails.

  5. Open Windows Task Manager.

  6. End the Codex process manually.

  7. Reopen the Codex app.

  8. The thread becomes resumable again.

I don’t have a minimal code reproduction, but it seems related to stale session state being kept by the Codex process.

What is the expected behavior?

Codex should handle both of these Windows path formats as the same path:

C:\Users\<USER>\...

and:

\\?\C:\Users\<USER>\...

Resuming a thread should not fail just because the same session file is represented with a different valid Windows path format.

Also, closing the Codex app should clear or recover from stale session state without requiring the user to manually end the Codex process from Task Manager.

Additional information

This happened in the Codex desktop app, not the VS Code extension.

I saw a similar Windows path mismatch reported for the VS Code extension, but I’m opening this separately because this happened in the desktop app and the workaround was different where I had to manually end the Codex process from Task Manager.

Workaround that fixed it:

  1. Open Task Manager.
  2. End the Codex process manually.
  3. Reopen the Codex app.
  4. Resume/open the thread again.

Possible cause: Codex may be comparing raw Windows path strings instead of normalizing them first, and a background process may be keeping stale session state alive.

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