Skip to content

Codex Windows fails to add a WSL project with “Failed to create project” #43628

Closed as duplicate

Description

@sellis

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

26.901.51231

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex cannot add an existing Git repository from my Ubuntu WSL filesystem. The UI displays “Failed to create project” without further details.
Environment

  • Windows desktop app, package version 26.901.6511.0
  • Ubuntu on WSL
  • Repository: /home/scoot/git/sellis/nation-game
    otentially related log entry
    At 2026-09-08T00:09:00.725Z, Codex logged:
    [host-app-server-projects] Local app-server project migration failed
    errorMessage="Invalid request: AbsolutePathBuf deserialized without a base path"
    This occurred during startup; I have not confirmed that it causes the project-creation failure. It may indicate a Windows-to-WSL path conversion or project migration issue.
    Please investigate the failure and expose the underlying error in the UI so users can diagnose it.

What steps can reproduce the bug?

Feedback ID: 01a07e5c-c590-7a91-84dd-3330ec49653a

What is the expected behavior?

No response

Additional information

Steps to reproduce

  1. Open Codex and choose Add project.
  2. In the “Select Project Root” dialog, select:\wsl.localhost\Ubuntu\home\scoot\git\sellis\nation-game
  3. Confirm the folder selection.
    Expected: Codex adds the existing repository as a project.
    Actual: Codex displays “Failed to create project.”
    Additional findings
  • The directory exists and is accessible from WSL.
  • git -C /home/scoot/git/sellis/nation-game rev-parse --show-toplevel succeeds.
  • Other saved Codex projects already reference directories under /home/scoot/git/.
  • Entering the Linux path directly into the Windows folder picker produces “The folder name is not valid.”
    P

Activity

  1. added
    app
    on Sep 8, 2026
  2. added
    bug
    windows-os
    app-server
    on Sep 8, 2026
  3. Oleszkiewicz commented on Sep 8, 2026

    @Oleszkiewicz

    same here, it was working until some recent update. Creating project on windows filesystem also fails. removing / renaming .codex-global-state.json does not help either.

  4. Kanshan03 commented on Sep 8, 2026

    @Kanshan03

    same here

  5. meishiyu commented on Sep 9, 2026

    @meishiyu

    same

  6. cyformatician commented on Sep 9, 2026

    @cyformatician

    confirmed here as well

  7. ventayol commented on Sep 9, 2026

    @ventayol

    Same here, I've uninstalled the app, removed the .codex folder and now I've and empty Code with no projects and I cannot create new projects. Before this I was unable to remove projects.

  8. Oleszkiewicz commented on Sep 9, 2026

    @Oleszkiewicz
  9. matiaraos commented on Sep 10, 2026

    @matiaraos

    A temporary solution to this problem that worked for me when creating and saving projects:

    • Go to Agent Environment, it is probably set to WSL, change it to Windows Native
    • Restart the app
    • Create your project using a path inside WSL, it should now work
    • Change the Agent Environment back to WSL
    • Restart the app again
  10. clee231 commented on Sep 12, 2026

    @clee231

    I am also experiencing this issue too.
    This "Failed to create project" error happens regardless of if I select a source project folder or not.

    Feedback ID: 01a09511-83da-7d70-bd50-d91cc3fd6d99

  11. ValentinAUCLERC commented on Sep 15, 2026

    @ValentinAUCLERC

    A temporary solution to this problem that worked for me when creating and saving projects:

    • Go to Agent Environment, it is probably set to WSL, change it to Windows Native
    • Restart the app
    • Create your project using a path inside WSL, it should now work
    • Change the Agent Environment back to WSL
    • Restart the app again

    This sadly doesn't work for me, right now Codex is absolutly working for me ! Both windows and wsl !

  12. sellis commented on Oct 3, 2026

    @sellis
    Author

    I found I can get chats in the project to work if I give them this prompt first:

    The default cwd is malformed: it combines a WindowsApps path with a WSL UNC path. 
    Override the working directory in the tool call, before process startup:
    {
      "cmd": "pwd",
      "workdir": "/home/foo/bar",
      "shell": "/bin/bash",
      "login": false
    }
    
    Use those settings for every shell call. Running cd inside the command
    cannot fix this error because the process fails before the command executes.
    
    Calls also need sandbox_permissions: "require_escalated" because this chat’s
    registered workspace root is incorrect. 
    
  13. goodman-oai commented on Nov 16, 2026

    @goodman-oai
    Contributor

    Tracked in #41463. Both reports describe a valid WSL repository that Desktop cannot add and a startup migration error, AbsolutePathBuf deserialized without a base path. Using the equivalent Linux path allowed the same project import to succeed in the controlled comparison.

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

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions