Skip to content

Adding a parent directory as an additional project source prevents the project from opening #35089

Open

Description

@super-lz

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

26.715.12143

What subscription do you have?

When the parent directory of the current project is added as an additional source, ChatGPT fails to open the project and displays a generic error screen. Restarting the application does not resolve the issue because the invalid source configuration is loaded again on startup.

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

Image

What steps can reproduce the bug?

Open an existing local project.
Add the project’s parent directory as an additional source.
Close or reopen the project.
The project can no longer be opened, and ChatGPT displays an error.

Example directory structure:

D:\workspace
└── current-project
Main project: D:\workspace\current-project
Additional source: D:\workspace

What is the expected behavior?

The application should either:

support overlapping parent and child source directories safely, or
prevent users from adding a directory that contains the current project.
Actual behavior

The project becomes inaccessible and continues to fail after restarting ChatGPT.

Image

Additional information

No response

Activity

  1. added
    app
    on Jul 24, 2026
  2. added
    bug
    windows-os
    on Jul 24, 2026
  3. super-lz commented on Jul 24, 2026

    @super-lz
    Author

    In %USERPROFILE%.codex.codex-global-state.json, locate the affected project under local-projects, find the additional source directory you added in rootPaths, and remove only that directory entry. Then restart ChatGPT.

  4. github-actions commented on Jul 24, 2026

    @github-actions
    Contributor
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

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions