Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.825.4187.0
What subscription do you have?
ChatGPT Prolite
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Summary
Codex Desktop on Windows with WSL2/Ubuntu is unable to create or correctly manage local projects whose repositories are located inside the WSL filesystem.
When attempting to create a project, the UI shows a generic toast:
Cannot create project
The issue appears to be related to the Codex Desktop project subsystem and Windows/WSL path handling.
Environment
- Codex Desktop: 26.825.4187.0
- Windows 11 x64
- WSL2
- Ubuntu
- Repositories stored inside the native WSL filesystem under paths such as
/home/<user>/projects/... - Codex configured to execute through WSL
Main error
During Codex Desktop startup, the logs consistently show:
[host-app-server-projects] Local app-server project migration failed
errorMessage="Invalid request: AbsolutePathBuf deserialized without a base path"
This occurs after the WSL transport and Codex CLI initialize successfully.
For example, the logs show:
[AppServerConnection] Transport start success
[AppServerConnection] initialize_handshake_result ... outcome=success
[AppServerConnection] Codex CLI initialized
Immediately afterwards:
[host-app-server-projects] Local app-server project migration failed
errorMessage="Invalid request: AbsolutePathBuf deserialized without a base path"
WSL filesystem watcher errors
There are also many repeated filesystem watcher errors involving WSL paths.
For example:
[git-repo-watcher] Failed to watch git path
errorCode=EISDIR
errorMessage="EISDIR: illegal operation on a directory, watch '\\wsl$\Ubuntu\home\<user>\projects\...'"
The same error occurs while attempting to watch:
.git
.git/refs
.git/refs/heads
.git/info
This happens across multiple repositories, so it does not appear to be repository-specific.
Additional filesystem errors
The app also occasionally reports:
method=fs/readDirectory
errorCode=-32603
message="No such file or directory (os error 2)"
This may indicate that paths are being translated incorrectly between Windows/UNC paths and Linux/WSL paths.
Expected behavior
Codex Desktop should be able to create and manage Projects whose repositories are located in WSL, using paths such as:
/home/<user>/projects/<repository>
without failing project migration or filesystem watching.
Actual behavior
Creating a Project fails with:
Cannot create project
and the logs contain:
Invalid request: AbsolutePathBuf deserialized without a base path
along with repeated EISDIR errors involving \\wsl$\Ubuntu\....
Reproduction steps
- Run Codex Desktop on Windows 11.
- Enable WSL2 with Ubuntu.
- Configure/use Codex through WSL.
- Keep Git repositories inside the WSL filesystem under
/home/<user>/projects/.... - Open Codex Desktop.
- Attempt to create a new Project using one of those repositories.
- Codex displays a "Cannot create project" toast.
- Check the Codex Desktop logs.
Regression / multiple builds
I reproduced the same project migration error on at least these Codex Desktop builds:
- 26.825.3734.0
- 26.825.4187.0
Updating from the first build to the second did not resolve the issue.
Notes
WSL itself appears to initialize correctly and the Codex CLI successfully connects through the WSL stdio transport.
The failure appears specifically after initialization, when the local app-server project subsystem performs project migration/path handling.
I have attached sanitized Codex Desktop logs containing the relevant errors. Personal identifiers, repository names, usernames, email addresses, conversation IDs, and credential-like values have been redacted.
What steps can reproduce the bug?
-
Run Codex Desktop on Windows 11.
-
Enable WSL2 with Ubuntu.
-
Configure Codex Desktop to use WSL.
-
Store Git repositories inside the native WSL filesystem, for example:
/home/<user>/projects/<repository>
-
Open Codex Desktop.
-
Attempt to create a new Project using one of the repositories stored inside WSL.
-
Codex Desktop shows a generic toast:
Cannot create project
-
Restarting Codex Desktop does not resolve the issue.
-
The Codex Desktop logs show that the WSL transport and Codex CLI initialize successfully:
[AppServerConnection] Transport start success
[AppServerConnection] initialize_handshake_result ... outcome=success
[AppServerConnection] Codex CLI initialized
- Immediately afterwards, the Project subsystem fails with:
[host-app-server-projects] Local app-server project migration failed
errorMessage="Invalid request: AbsolutePathBuf deserialized without a base path"
- Repeated filesystem watcher errors are also generated for WSL paths:
[git-repo-watcher] Failed to watch git path
errorCode=EISDIR
errorMessage="EISDIR: illegal operation on a directory, watch '\\wsl$\Ubuntu\home\<user>\projects\...'"
The error occurs across multiple repositories, so it does not appear to be repository-specific.
What is the expected behavior?
Codex Desktop should be able to create and manage Projects whose repositories are stored inside the native WSL filesystem.
Paths such as:
/home/<user>/projects/<repository>
should be handled correctly when Codex is configured to run through WSL.
The Project should be created normally, the repository should remain accessible, and Codex Desktop should be able to watch the repository and its .git directory without path conversion or filesystem errors.
The Windows host and WSL filesystem paths should be translated consistently without producing AbsolutePathBuf, EISDIR, or fs/readDirectory errors.
Additional information
The problem does not appear to be caused by WSL failing to start.
WSL is detected correctly and the Codex CLI successfully initializes through the WSL stdio transport before the Project subsystem fails.
The most relevant error is:
[host-app-server-projects] Local app-server project migration failed
errorMessage="Invalid request: AbsolutePathBuf deserialized without a base path"
There are also repeated filesystem watcher errors involving the Windows UNC representation of WSL paths:
\\wsl$\Ubuntu\home\<user>\projects\...
with:
EISDIR: illegal operation on a directory
and occasional filesystem calls failing with:
method=fs/readDirectory
errorCode=-32603
message="No such file or directory (os error 2)"
This suggests a possible Windows ↔ WSL path translation or base-path handling issue in the Codex Desktop Project subsystem.
I reproduced the same Project migration error on at least these Codex Desktop builds:
- 26.825.3734.0
- 26.825.4187.0
Updating between these builds did not resolve the issue.
I am attaching sanitized Codex Desktop logs containing the relevant errors. Personal identifiers, usernames, repository names, email addresses, conversation/task IDs, and credential-like values have been redacted.
Activity
github-actions commentedon Aug 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
QuentinAd commentedon Sep 1, 2026
I can confirm this is still reproducible in Codex for Windows build
26.825.6671.0, upgraded from26.825.4187.0. The local project registry contains a mix of normal Windows roots (C:\\...) and WSL UNC roots (\\\\wsl$\\Ubuntu\\...). On every startup, the desktop log records:After that migration failure, both project operations are broken:
Failed to create project.Failed to save project.The legacy
.codex-global-state.jsonremains readable and writable, and Codex can list the existing projects, so this is not a filesystem permission failure. Inspection of the bundled flow shows thatcreateLocal()andeditLocal()both callensureProjectsReady()before the legacy cache write. SinceinitializeProjects()fails during the new app-server project migration, neither operation reaches the cache update. Restarting and removing duplicate legacy project entries do not fix it.This regression prevents all local project maintenance, not only creation of a project rooted inside WSL.
forallthis commentedon Sep 1, 2026
Additional isolation on Codex Desktop
26.825.6671.0with Windows 11, WSL2, and Ubuntu 24.04:Even after migration succeeds, creating another WSL project from the Desktop UI still fails. The app-server trace records the incoming
project/createrequest, but no project is written.Sending
project/createdirectly to the same bundled WSL app-server version with a native Linux root such as:succeeds immediately and emits
project/changed.projectCount=6.This separates the remaining creation failure from the migration failure and narrows it to the Desktop-to-WSL project root representation. The Desktop-side record uses a WSL UNC path such as
\\wsl$\Ubuntu-24.04\home\<user>\code\<repo>, while the Linux app-server accepts the equivalent/home/<user>/code/<repo>path.GeorgeValle commentedon Sep 1, 2026
Thanks for confirming and for narrowing this down.
This matches my environment exactly: the local registry contains both Windows roots and WSL UNC roots, and the failure happens before project cache updates. I can also confirm that both project creation and editing are affected after the startup migration fails.
One additional detail that may be useful: I can still recover and reuse chats that belonged to older local projects, but only through the remote/mobile Codex flow.
What I found is that the remote Codex feature available from mobile can still open those existing project chats. Once I open one of those chats remotely, the conversation becomes active again and I can continue using it from Codex Desktop.
So, for me, the current workaround is:
I discovered this while investigating the Codex app-related errors.
This workaround only helps with existing project conversations. It does not restore normal local project maintenance: creating a new local project or editing/saving an existing local project still fails.
This may suggest that the conversations themselves remain intact and accessible through the remote thread infrastructure, while the local project registry/migration layer is what is broken.
I’ll keep the environment unchanged for now and can provide additional sanitized logs if needed.
odlfg commentedon Sep 1, 2026
I am experiencing this exact critical regression. Forcing projects into
C:\completely destroys modern containerized development workflows.Running Docker containers and automated tests inside WSL2 while mounting files from
C:\via/mnt/c/creates a massive I/O performance bottleneck. Test suites that used to take seconds now take minutes. My host Windows machine is 100% clean; everything relies on the WSL2 filesystem.This was working flawlessly during August. I can also confirm that this issue completely blocks both local project creation and editing/saving operations due to the underlying
AbsolutePathBufpath migration failure on startup. Please fix this path deserialization bug soon!Associated OpenAI App Feedback ID:
no-active-thread-01a05b4f-3244-7cc0-b856-468e1fcdf777sdp0825 commentedon Sep 1, 2026
I cannot create a new project. The message "Failed to create project" appears when I attempt to create one.
pisceskkk commentedon Sep 1, 2026
Additional confirmation from a slightly different WSL environment:
26.825.6671.00.151.0-alpha.7.2runCodexInWindowsSubsystemForLinux = trueSelecting a directory through Add project consistently ends with Failed to create project. In contrast, creating an SSH remote project succeeds.
The selected directories are valid and readable from WSL, including both native Linux roots under
/home/<user>/...and Windows-mounted roots under/mnt/c/Users/<user>/.... Existing local projects can still be listed, so this does not appear to be a Git repository or filesystem-permission problem.The desktop log contains the same migration failure:
It also records Windows-side watcher failures after converting a Linux project root to a WSL UNC path:
The fact that remote project creation works while local creation fails further suggests that the failure is in the Desktop-to-WSL local project registration/path representation layer.
pisceskkk commentedon Sep 1, 2026
A confirmed workaround provides an additional isolation signal:
This suggests the repository and persisted project record are valid once created. The failure appears specific to the project-creation/registration path while the WSL backend is active; loading and using the same persisted project after switching WSL execution back on succeeds.
axp-knickei commentedon Sep 1, 2026
I have this problem as well since last update
Rj1986 commentedon Sep 1, 2026
I can independently reproduce this on Windows 11 with WSL2 and the Codex Desktop agent set to WSL. In an otherwise working WSL workspace, creating a Project from an existing source folder returns only “Failed to create project”. The workspace/chat itself remains usable; the failure is specific to the Projects feature.
This is a serious daily-work blocker, not a minor compatibility issue: WSL is my primary development environment, so Desktop Projects cannot be used at all. Please treat this as a regression/blocker and surface the underlying app-server error instead of only the generic toast.
I am intentionally not attaching the screenshot because it contains private client/project information. I can provide sanitized diagnostics if maintainers need them.
42 remaining items
vindipe commentedon Sep 12, 2026
Follow-up from me, Vincenzo Di Perna (@vindipe): I packaged the workaround I described above into a small Windows
.cmdutility so it can be reproduced more easily on Windows + WSL setups affected by this bug.Source/download:
https://github.com/vindipe/vindipe.github.io/blob/main/tools/codex-wsl-project-manager.cmd
Raw file:
https://raw.githubusercontent.com/vindipe/vindipe.github.io/main/tools/codex-wsl-project-manager.cmd
What the mini tool does
It is a small Codex WSL Project Manager for the current broken Desktop project-creation flow. It keeps Codex Desktop using Agent Environment = WSL and operates on the same state relationship I found while debugging this issue.
The menu provides:
When listing projects, it correlates the Desktop legacy registry and the WSL app-server SQLite store and marks entries such as:
OKThis is useful for cleaning up stale or orphaned project records left by failed Desktop attempts.
Creation flow
For project creation it:
/home/<user>/projects/repo);.codex-global-state.jsonand the active WSLstate_5.sqlite;local-...ID as the project idempotency key;legacy project ID -> app-server UUIDentry underapp-server-project-id-by-legacy-project-id-by-host;project-order;If the user answers No, the utility closes Codex again and rolls back/removes exactly the project it just created, then reopens Codex in a clean state. This avoids leaving another invisible/orphaned project behind.
Why this matters for the bug
The key observation from my reproduction remains that writing the project to the active WSL
state_5.sqlitealone is not sufficient. Desktop only displayed it once the following relationship was internally consistent:The utility simply automates that workaround and the cleanup/rollback around it.
This is still not an upstream fix and it edits internal Codex state/SQLite, so I would not present it as a supported user-facing solution. I am publishing it mainly as a reproducible workaround and as additional debugging evidence for the missing Desktop/WSL synchronization path.
ewbing commentedon Sep 13, 2026
Confirming this remains reproducible on the current Microsoft Store package.
Environment:
26.908.4834.026200.9445, x640.154.0-alpha.6.2The Windows folder picker successfully selects an existing directory using:
\\wsl$\Ubuntu\home\<user>\Projects\<project>Project creation then displays Failed to create project. Restarting the desktop app does not resolve it.
The WSL backend starts successfully:
void123-dev commentedon Sep 14, 2026
Update after the latest Desktop update:
The Create Project UI has changed and no longer shows the Local/Cloud project type selector. With Agent Environment set to WSL, the source folder is now displayed using the native Linux path
(/home/<user>/...) rather than a Windows UNC representation.However, project management is still broken: creating a new project fails, and removing an existing project also fails with
Failed to remove <project>.This suggests the UI/path-picker layer has changed, but the underlying WSL Project initialization/migration problem is still present. In particular, a new
/home/...source path may be valid while project CRUD is blocked earlier by migration of existing legacy project state.shixi-11 commentedon Sep 14, 2026
Same class of Windows+WSL path pain here — parallel Claude/Codex sessions get brittle when Desktop mishandles
/homevs UNC.Not a fix for AbsolutePathBuf, but if you need a source-install Windows desktop for parallel chats + project context (after setup, a smoke run is ~30s): https://github.com/shixi-11/prism-desk
Happy to share notes. Contact: [email protected] · private deploy / pay: https://shixilin.com/zh/support
veridian69 commentedon Sep 16, 2026
Confirmed on 16 September 2026 with Windows desktop package
26.908.9136.0, bundled WSL app-server0.154.0-alpha.6.2, and Ubuntu-24.04 on WSL2.Selecting an existing repository through either
\\wsl.localhost\Ubuntu-24.04\home\<user>\projects\<repo>or\\wsl$\Ubuntu-24.04\home\<user>\projects\<repo>produces Failed to create project.Startup logs show:
A direct diagnostic request to the bundled Linux app-server reproduced the rejection:
project/importwith an existing project's stored WSL UNC root returns JSON-RPC error-32600with that exact message. In the packaged desktop code,writeAppServerProjectconstructs request roots directly from cachedrootPaths, without conversion at that boundary. This supports the desktop-to-execution-host path conversion diagnosis; it is not a maintainer-confirmed root cause.The following workaround succeeded in this installation:
Afterwards, the desktop project-list tool returned the new project with its correct
/home/<user>/projects/<repo>path and recognised it as a Git repository. Logs confirmed the agent was running throughwsl.exeagain. The assignment-sync error still appears, so this bypasses project creation failure without resolving the underlying bug. Starting a new task in that project was not part of this verification.No source files were moved, and no project registry or database was manually edited.
SHJordan commentedon Sep 16, 2026
Update: the native → add-via-UNC → back-to-WSL workaround succeeded here — the project was created and appears in the sidebar. Starting a task inside it also works:
pwdin a new conversation returns the correct/home/<user>/Lerd/<project>— noC:\homerewriting observed (cf. #28094).Reproducing on Fedora Linux 44 (not Ubuntu), which adds two data points: the bug is not Ubuntu-specific, and it reproduces on a clean project registry — no pre-existing mixed Windows/UNC entries required.
Environment:
OpenAI.Codex_26.908.9136.0_x64__2p2nqsd0c76g0, bundled WSL app-servercodex-cli 0.154.0-alpha.6.26.18.33.2-microsoft-standard-WSL2), distro listed asRunning/ version 2,bwrappresent/home/<user>/Lerd/<project>[host-app-server-projects] Local app-server project migration completed projectCount=0Ctrl+O→\\wsl.localhost\FedoraLinux-44\home\<user>\Lerd\<project>→ "Failed to create project", same as reported aboveThe same desktop→WSL path-translation gap shows up on at least two more surfaces in this installation:
C:\Users\<user>\Documents\Codex) received an inherited working directory that concatenated the WindowsApps resources path with the raw Windows root (/mnt/c/Program Files/WindowsApps/OpenAI.Codex_<build>/app/resources/C:\Users\<user>\Documents\Codex). The shell fails to spawn there withos error 2; the same command succeeds when given an explicit validworkdir. May overlap [Windows][WSL] Codex Desktop rewrites /home project paths as C:\home, loses project chat associations, and reports valid working directories as missing #28094.C:\Users\<user>\AppData\Local\Temp\codex-clipboard-*.png) to the WSL agent, which cannot resolve it ("No such file or directory (os error 2)"). The same file is readable by the agent at/mnt/c/Users/<user>/AppData/Local/Temp/codex-clipboard-*.png— theC:\→/mnt/c/translation is simply missing on this path too.wbdb commentedon Sep 16, 2026
@chess-oai At WSL, we have things like this, too (can't create or delete projects with fresh ChatGPT install) :) Thanks for your hard work!
etraut-openai commentedon Sep 16, 2026
We have a fix in place, and it will be included in the next release.
AShapira commentedon Sep 19, 2026
Confirmed fixed in Windows desktop 26.915.4065.0 (RHEL10 / WSL2)
I successfully created a new project through the normal desktop UI without the workaround. This now confirms the actual user-facing flow, not just an isolated backend test.
Environment: Windows desktop package 26.915.4065.0, bundled Linux backend 0.155.0-alpha.9.2, RHEL10 on WSL2.
Additional checks found that the installed desktop now converts project roots for the receiving WSL host before
project/create,project/import, andproject/update. Tests of that installed converter with the current unmodified backend passed for both WSL UNC aliases and a Windows drive root, using isolated Codex/SQLite storage.I have removed the dedicated workaround launcher and scripts from my workstation. The earlier workaround is superseded for this tested build; use the normal Codex launcher instead. No manual project-database edits or global environment overrides are needed.
Thanks for fixing this!
Prepared with Codex assistance
george-tsakalos commentedon Sep 22, 2026
After updating to 26.915.31945 the project creation works again.
mtk177a commentedon Oct 6, 2026
I retested this on October 6, 2026, and I can now add a WSL folder through the normal Desktop UI on my Windows ARM64 PC.
My environment:
I tested the normal UI flow with a dedicated empty folder at /tmp/:
The expected project registration and task startup now work in this test. The earlier project-creation failure did not occur. I did not switch to native Windows execution or use an internal project API, configuration workaround, or elevation.
This confirms the empty-folder flow only. I have not tested an existing Git repository, Git detection, worktree creation, or background migration/watcher logs. I cannot establish a universal fix or the original root cause from this result.