Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.1117.41037
What subscription do you have?
Plus
What platform is your computer?
Microsoft Windows NT 10.0.26300.0 x64
What issue are you seeing?
Summary
When using Codex Desktop on Windows connected to a WSL backend (Ubuntu-24.04), opening or creating/updating a thread on a workspace under /mnt/c/Codex_Projects writes/normalizes the cwd path with lowercase casing (/mnt/c/codex_projects/...) instead of preserving /mnt/c/Codex_Projects/..., and opening a chat thread can cause other threads in the sidebar to disappear from view.
Environment
- Client: Codex Desktop (Windows, MSIX)
- Backend / Runtime: WSL (
Ubuntu-24.04) - Filesystem: NTFS mounted under
/mnt/c/...
Steps to Reproduce
- Configure project paths in
.codex-global-state.json(remote-projects) using/mnt/c/Codex_Projects/.... - Open Codex Desktop connected to
remote-wsl:Ubuntu-24.04. - Open an existing thread or create/update a thread on a workspace under
/mnt/c/Codex_Projects/.... - Observe:
- Other threads in the sidebar disappear/filter out when opening a conversation.
- Thread
cwd(as well as session/UI entries such asthread-tab-routes-v1,thread-writable-roots, andrecent-workspace-files-v3) is written with/mnt/c/codex_projects/...in lowercase instead of/mnt/c/Codex_Projects/....
Expected Behavior
- Thread
cwdand UI/session path metadata should preserve/mnt/c/Codex_Projects/...casing (or match paths case-insensitively on/mnt/c/...). - Opening a chat thread should not cause other threads to disappear from the sidebar.
Actual Behavior
- Opening or creating/updating a thread writes
/mnt/c/codex_projects/...in lowercase, creating a casing mismatch against/mnt/c/Codex_Projects/...inremote-projectsand session/UI keys. - Selecting/opening a thread causes other threads to disappear from the sidebar.
Additional Diagnostic Notes
- Database integrity checks pass (
ok) androllout_pathentries are valid. - Normalizing
cwdcasing in SQLite only holds until a thread is opened/created/updated in that context, at which point/mnt/c/codex_projects/...is written again.
What steps can reproduce the bug?
When using Codex Desktop on Windows connected to a WSL backend (Ubuntu-24.04), opening or creating/updating a thread on a workspace under /mnt/c/Codex_Projects writes/normalizes the cwd path with lowercase casing (/mnt/c/codex_projects/...) instead of preserving /mnt/c/Codex_Projects/..., and opening a chat thread can cause other threads in the sidebar to disappear from view.
Unlike #28094 (which rewrites /home/... paths into invalid C:\home\... Windows paths and reports "Current working directory missing"), the path here stays a valid /mnt/c/... WSL path on NTFS, but its casing changes to lowercase.
Steps to reproduce:
- Configure project paths in
.codex-global-state.json(remote-projects) using/mnt/c/Codex_Projects/.... - Open Codex Desktop connected to
remote-wsl:Ubuntu-24.04. - Open an existing thread or create/update a thread on a workspace under
/mnt/c/Codex_Projects/.... - Observe that other threads in the sidebar disappear/filter out when opening a conversation, and thread
cwd(as well as session/UI keys such asthread-tab-routes-v1,thread-writable-roots, andrecent-workspace-files-v3) is written with/mnt/c/codex_projects/...in lowercase instead of/mnt/c/Codex_Projects/....
Additional notes:
- Database integrity checks pass (
ok) androllout_pathentries are valid. - Normalizing
cwdcasing in SQLite only holds until a thread is opened/created/updated in that context, at which point/mnt/c/codex_projects/...is written again. - Session ID / token limit usage / context window usage: N/A.
What is the expected behavior?
- Thread
cwdand UI/session path metadata should preserve/mnt/c/Codex_Projects/...casing (or match paths case-insensitively on/mnt/c/...backed by NTFS). - Opening a chat thread should not cause other threads in the sidebar to disappear.
Additional information
- Environment: Codex Desktop (Windows, MSIX) connected to WSL (
Ubuntu-24.04), with project directories hosted on NTFS mounted at/mnt/c/...(e.g./mnt/c/Codex_Projects/...). - Path casing behavior: Because
/mnt/c/...is case-insensitive on NTFS,/mnt/c/codex_projects/...and/mnt/c/Codex_Projects/...point to the same directory on disk, so renaming folders on disk is not a safe fix and could break explicit references expecting/mnt/c/Codex_Projects/.... - Database & state findings: Thread database integrity checks pass (
ok) androllout_pathentries are valid. Manually updatingcwdcasing in SQLite only persists until a thread is opened, created, or updated in that context, at which point lowercase casing (/mnt/c/codex_projects/...) is written again. - Related issues: [Windows][WSL] Codex Desktop rewrites /home project paths as C:\home, loses project chat associations, and reports valid working directories as missing #28094, Windows Codex + WSL project: older threads lose cwd and terminal tries to cd into malformed WindowsApps/app/resources/\\wsl$ path #23189, and [Windows][WSL] Mapped drive to \\wsl.localhost is incorrectly translated to /mnt/<drive>, making valid WSL workspaces inaccessible #36850 all touch Windows + WSL path handling, though this report specifically covers lowercase path casing normalization on
/mnt/c/Codex_Projects/...and sidebar threads disappearing when opening a chat.
Activity