Skip to content

[Windows] Cannot resume thread due to stale path mismatch between normal path and \\?\ verbatim path #26059

Open

Description

@zzh6661

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

26.601.21317

What subscription do you have?

plus

What platform is your computer?

No response

What issue are you seeing?

Environment

  • OS: Windows
  • Codex version: unknown
  • Install method: Codex App / CLI / VSCode extension
  • Account type: Plus

Problem

When reopening a Codex conversation, Codex failed to resume the thread and showed the following error:

恢复对话失败
cannot resume running thread 019e7ed5-a438-7881-966c-a2bdf7df9ddf with stale path:
requested `C:\Users\admin\.codex\sessions\2026\06\01\rollout-2026-06-01T00-19-55-019e7ed5-a438-7881-966c-a2bdf7df9ddf.jsonl`,
active `\\?\C:\Users\admin\.codex\sessions\2026\06\01\rollout-2026-06-01T00-19-55-019e7ed5-a438-7881-966c-a2bdf7df9ddf.jsonl`
Expected behavior

Codex should normalize Windows paths before comparing them.

C:\Users\admin\... and \\?\C:\Users\admin\... should be treated as equivalent paths when they refer to the same local session file.

Actual behavior

Codex refuses to resume the thread and reports a stale path error.

Possible cause

This looks like a Windows path normalization issue involving the \\?\ verbatim path prefix.

Impact

The affected local conversation cannot be resumed normally, although new Codex conversations still work.

### What steps can reproduce the bug?

1. On Windows, start Codex and create/open a conversation.
2. Let Codex create a local session file under `C:\Users\admin\.codex\sessions\...`.
3. Close and reopen Codex.
4. Try to resume the previous conversation.
5. The resume operation fails with:

`cannot resume running thread ... with stale path`

The error shows a mismatch between:

`C:\Users\admin\.codex\sessions\...jsonl`

and:

`\\?\C:\Users\admin\.codex\sessions\...jsonl`

### What is the expected behavior?

_No response_

### Additional information

_No response_

Activity

  1. added
    appIssues related to the Codex desktop app
    on Jun 3, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Jun 3, 2026
  3. halfsies1 commented on Jun 4, 2026

    @halfsies1

    Error creating task
    cannot resume running thread 019e8fe3-1070-7ab2-b882-f11dc51834e4 with stale path: requested
    same issues
    PRO MAX
    windows 11
    latest codex build Version 26.601.21317 • Released Jun 3, 2026

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 workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-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