Skip to content

Windows: Cannot resume thread due to C:\ path vs \\?\C:\ path mismatch until Codex process is killed #22854

Closed

Description

@Unknown22X

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 <SESSION_ID> with stale path: requested `C:\Users\<USER>\.codex\sessions\2026\05\15\rollout-2026-05-15T13-41-32-<SESSION_ID>.jsonl`, active `\\?\C:\Users\<USER>\.codex\sessions\2026\05\15\rollout-2026-05-15T13-41-32-<SESSION_ID>.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.

Activity

  1. added
    appIssues related to the Codex desktop app
    on May 15, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    on May 15, 2026
  3. etraut-openai commented on May 16, 2026

    @etraut-openai
    Contributor

    We've issued a hotfix to address this. Please update to the latest version.

  4. matthew-bauer-kuraray commented on May 18, 2026

    @matthew-bauer-kuraray

    Still experiencing the issue after update

  5. Silverarmor commented on May 28, 2026

    @Silverarmor

    Still Experiencing this today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions