Skip to content

[Windows/WSL] Local project migration sends Windows paths to Linux app-server; project creation fails #42461

Closed as not planned

Description

@GhrammR

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

26.831.2377.0

Bundled WSL app-server: codex-cli 0.152.1

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows x64 with Ubuntu under WSL. The local Codex agent environment is configured to run inside WSL.

What issue are you seeing?

Creating any new local project fails with the generic desktop notification:

Failed to create project

The desktop log records the underlying failure on every launch:

warning [host-app-server-projects] Local app-server project migration failed errorMessage="Invalid request: AbsolutePathBuf deserialized without a base path"

The legacy project registry remains usable for existing projects, but migration to the app-server project store never completes. The active WSL SQLite state database is fully migrated (52 migrations), contains the projects, project_roots, and project_idempotency_keys tables, but SELECT count(*) FROM projects; returns 0.

What steps can reproduce the bug?

  1. On Windows, configure Settings → Codex → Agent environment to run Codex inside Ubuntu WSL.
  2. Have existing local projects whose cached roots use normal Windows representations, for example:
    • C:\Users\<user>\OneDrive\Documents\...
    • \\wsl$\Ubuntu\home\<user>\dev\...
    • \\wsl.localhost\Ubuntu\home\<user>\dev\...
  3. Fully exit and restart the desktop app.
  4. Select + → New project → Local.
  5. Enter a name, select an existing writable directory, and create the project.
  6. Observe Failed to create project.
  7. Inspect the desktop log and observe:
    Local app-server project migration failed ... AbsolutePathBuf deserialized without a base path.

We also tested the recovery proposed in #41745:

  1. Fully closed the desktop app.
  2. Created a timestamped backup of %USERPROFILE%\.codex\.codex-global-state.json.
  3. Removed three duplicate logical WSL project aliases while retaining the canonical entries, their IDs, order, and thread assignments.
  4. Validated the resulting JSON and restarted the app.

That repair completed successfully. The current registry contains eight projects, the removed duplicate IDs remain absent after restart, and project creation still fails with the same AbsolutePathBuf migration error.

What is the expected behavior?

The desktop app should convert cached Windows drive and WSL UNC roots to absolute paths for the selected execution host before calling project/import or project/create. Existing projects should migrate into the app-server SQLite registry, and creating a new local project should succeed.

If a path cannot be converted, the UI should identify the offending project/root instead of displaying only Failed to create project.

Additional information

Feedback ID: no-active-thread-01a065a6-e819-7663-a35b-0c39ddbf1b01

Related issue: #41745

Observed implementation behavior in this packaged build:

  • The desktop host-app-server-projects migration iterates the legacy projects and calls project/import.
  • Its writeAppServerProject path constructs roots as rootPaths.map(path => ({ path })) without converting them to the app-server host's path format.
  • With local Codex running inside WSL, the receiving Linux app-server does not consider Windows drive paths or Windows UNC paths absolute.
  • The app-server's AbsolutePathBuf deserializer therefore returns AbsolutePathBuf deserialized without a base path.

This last section is a source-level diagnostic inference from the packaged JavaScript and the open-source AbsolutePathBuf implementation; it is not a maintainer-confirmed root cause.

No project directories or source files were deleted. Deleting/rebuilding the SQLite databases was not attempted because the observed failure occurs before any project row is inserted.

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    app-serverIssues involving app server protocol or interfaces
    on Sep 3, 2026
  2. GhrammR commented on Sep 3, 2026

    @GhrammR
    Author

    Closing as a duplicate of #41463. The current-build details, Feedback ID, and the result showing that successful duplicate-registry cleanup did not resolve the failure have been added to that issue.

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 appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingwindows-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