Windows desktop + WSL: creating a project fails with AbsolutePathBuf deserialized without a base path
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Environment
- Windows desktop app package:
OpenAI.Codex_26.908.9136.0_x64 - Bundled WSL agent:
codex-cli 0.154.0-alpha.6.2 - Agent environment: WSL2 (Ubuntu 22.04)
- Project folder on a Windows drive, accessible from WSL through
/mnt/<drive>/...
Reproduction
- Use the Windows desktop app with the agent running in WSL.
- Select Create project, enter a name and submit without selecting a source folder.
- Alternatively, add an existing Windows folder as the source and submit.
Both routes show Failed to create project. Restarting the app does not fix creation of subsequent projects.
Expected
Create the project and display it in the sidebar, converting source paths into the execution host's path format where required.
Actual / evidence
- The no-source-folder flow creates the directory and initializes
.git, but project registration fails. - Retrying creates additional numbered directories without registering the project.
- Startup logs also show
[host-app-server-projects] Local app-server assignment sync failedwithInvalid request: AbsolutePathBuf deserialized without a base path. - A diagnostic request to the bundled Linux app-server reproduces that exact error when
project/importreceives a Windows-style root such asF:\\Projects\\Example. project/create/project/importsucceed when the same location is supplied as/mnt/f/Projects/Example.- The installed desktop project backend passes
rootPathsdirectly asroots: [{path: ...}]for project create/import. This suggests native Windows paths are reaching the Linux path parser without translation.
There also appears to be a migration issue when changing execution environments: the desktop's project-ID mappings are keyed by the native versus WSL Codex home identity, while each environment can use a different SQLite location. Existing project mappings must resolve against the active backend.
Impact
Basic project creation is blocked, the UI exposes only a generic error, and retries leave duplicate folders. Please handle host path conversion for both create and import and surface the underlying error without leaving orphaned folders.
This report intentionally excludes personal paths, screenshots, conversation contents, and credentials.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the project/create and project/import handling where rootPaths become roots, then trace host-app-server-projects assignment sync and the desktop project-ID mappings across native and WSL Codex homes. Verify Windows paths are converted for the active backend, mappings resolve against its SQLite location, errors are surfaced, and failed creation does not leave orphaned folders.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sqlite
- Domain
- backend, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100