Skip to content

Windows app: threads disappear after restart when project is on a mapped network drive (possible //?/unc/... path normalization issue) #13846

@takeval0907-ops

Description

@takeval0907-ops

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

26.305.950.0

What subscription do you have?

ChatGPT plus

What platform is your computer?

Windows10

What issue are you seeing?

Body

I found a reproducible issue in the Windows Codex app where threads disappear from the project view after restarting the app, but only when the project is created on a mapped network drive.

Environment

  • Codex app on Windows
  • VS Code Codex extension on Windows
  • Both are running natively on Windows (not WSL)
  • Project roots tested on:
    • mapped network drive: W:... (NAS-backed drive)
    • local drive: D:...

Summary
If I create a project and thread on a mapped network drive (W:), the thread disappears from the Codex app after restart.
However, the thread data still appears to exist in local Codex state files.
The same behavior does not reproduce when using a local drive (D:).

What steps can reproduce the bug?

Case 1: mapped network drive (reproduces)

  1. Create a new project in the Codex app using a folder on a mapped network drive (W:).
  2. Create a new thread inside that project.
  3. Close the Codex app.
  4. Reopen the Codex app.
  5. The thread is no longer shown in the project.

Case 2: local drive (does not reproduce)

  1. Create a new project in the Codex app using a folder on a local drive (D:).
  2. Create a new thread inside that project.
  3. Close the Codex app.
  4. Reopen the Codex app.
  5. The thread is still shown normally.

What is the expected behavior?

Additional information

Additional observations

  • The issue reproduces even without involving VS Code.
  • I initially suspected Japanese folder names, but after testing:
    • Japanese path + mapped network drive (W:) -> reproduces
    • Japanese path + local drive (D:) -> does not reproduce
  • This suggests the main trigger is the mapped network drive / UNC path handling, not Japanese characters in the path by themselves.

State files still contain the thread
Even after the thread disappears from the Codex app UI:

  • the prompt history remains in .codex/.codex-global-state.json
  • the thread entry still exists in session_index.jsonl

So this does not look like thread data loss.
It looks more like the app fails to re-associate the saved thread with the project/workspace during startup.

Suspicious area
I noticed that .codex/cap_sid contains workspace_by_cwd entries like this for the network drive project:

{
  "workspace_by_cwd": {
    "//?/unc/server/share/path-with-japanese-chars/project-root": "S-1-5-21-..."
  }
}

I am not sure whether this is the cause, but it seems relevant that the mapped drive is represented internally as a UNC/device-style path.

One possible explanation is that the app may be resolving the same workspace path differently before and after restart (for example mapped drive path vs UNC/device path), which could cause the workspace/thread association to fail during restoration.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions