Skip to content

Codex App: add default parent folder setting for Start from scratch projects #19913

Open

Description

@bryan324324

What variant of Codex are you using?

Codex App for macOS

What feature would you like to see?

Please add a supported setting in the Codex App for the default parent folder used by Projects → Start from scratch.

Desired behavior:

  • User chooses a default project parent folder in Settings, for example:
    /Users/cfs/Documents/Codex/My Projects/
  • When the user clicks Projects + → Start from scratch and enters a project name, Codex creates the new project folder under that configured parent:
    /Users/cfs/Documents/Codex/My Projects/<Project Name>
  • The new project is then opened/registered in the sidebar from that folder.
  • If a same-named folder already exists, Codex can use the existing “Project 2” / unique-name behavior.

Right now, the app appears to create new scratch projects under the macOS Documents folder by default. For users who organize Codex work under a dedicated folder tree, every new project needs manual cleanup or a workaround.

Additional information

This should be an official app setting or config-supported behavior rather than requiring users to patch the installed macOS app bundle. Modifying a signed/notarized macOS app bundle invalidates code signing and can prevent the app from launching after a restart.

A reasonable UX could be:

  • Settings → General → Projects → Default project folder
  • Or a config key read by the app, such as default_project_parent

Example target path from my workflow:

/Users/cfs/Documents/Codex/My Projects/

Activity

  1. added
    enhancement
    app
    config
    on Apr 28, 2026
  2. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. BigMoonTech commented on May 4, 2026

    @BigMoonTech

    Please fix this embarrassing oversight openai. What the hell is Sam Altman and friends doing releasing an application that forces data into a user's documents folder with no option to configure otherwise. I watched a video and got super stoked for the New Codex release but then spent 2 hours thinking I was insane because I couldn't configure where the default save location setting was for "project from scratch", come to find out you guys didn't even program in this most basic of all basic functionalities. Pathetic. Great first experience. Fucking pissed off and crashing out.

  4. radimbrixi commented on May 9, 2026

    @radimbrixi

    Please fix this, its a nightmare that that is the first think I am searching in the app and its HARDCODED??? Really???

  5. mikeysouthwell commented on May 27, 2026

    @mikeysouthwell

    Please allow us to either set this in the Codex app UI or the config.toml as a global variable.

  6. kevinb9n commented on Jun 16, 2026

    @kevinb9n

    This is even more useful because without #11022 being fixed, moving them later is near-impossible.

  7. maxceem commented on Jun 17, 2026

    @maxceem

    I also cannot use "Start from scratch" feature because projects are created not where I keep all my projects, so I have to create folders manually first and use "Use existing folder".

  8. zmievsa commented on Jun 28, 2026

    @zmievsa

    This issue happened to me as well. I'd love to fix it if codex team allows me to (i.e. PRs are invite-only).

  9. pvieito commented on Jul 11, 2026

    @pvieito

    The lack of a configurable default parent directory is extremely user-hostile. Users have different repository layouts, volumes, backup policies, security requirements, and iCloud configurations; forcing new work into a hardcoded ~/Documents/Codex hierarchy is not an acceptable default without an override.

    The situation is even more frustrating because Codex explicitly verifies that the projectless root is not a symbolic link. That means users cannot configure the directory in Settings or config.toml, and they are also prevented from using the normal Unix workaround to redirect it themselves. A hardcoded path plus deliberate symlink rejection leaves users with no clean escape route.

    Please add a supported default-parent/projectless-workspace setting and persist it. At an absolute minimum, resolve symlinks and validate the real target instead of rejecting them outright. The current behavior disregards user ownership of the filesystem.

  10. Ranats commented on Jul 18, 2026

    @Ranats

    I can reproduce the same underlying behavior on Codex Desktop for Windows.

    Environment:

    • Codex Desktop package: 26.715.3651.0
    • Windows 11
    • Current result: creating a new local project from the Projects UI creates it directly under the Windows Documents known folder, for example C:\Users\<user>\Documents\<Project Name>.
    • Desired parent in this workflow: C:\Users\<user>\Documents\Codex, but ideally the parent should be user-selectable.

    A minimal implementation could be:

    1. Add Settings → General → Projects → Default project folder with a native directory picker and a reset-to-default action.
    2. Persist the selected absolute parent directory as a Desktop-owned setting.
    3. Apply it only to newly created local projects / “Start from scratch”. Keep existing projects and projectless thread workspaces unchanged.
    4. Preserve the current OS Documents folder as the default when no custom parent is configured.
    5. If the configured directory is missing or not writable, show an actionable error and let the user reselect/reset it rather than silently creating the project elsewhere.
    6. Reuse the existing unique-name behavior for same-named folders.

    Local inspection of the shipped Desktop bundle indicates that the current creation path is selected in the Electron-side createDefaultWorkspaceRoot flow using the OS Documents path, while the creation dialog only asks for the project name. I could not find that Desktop-specific implementation or its persisted workspace-state keys in the public openai/codex source tree, so a Rust-only public-repo change would not appear sufficient.

    I would be willing to implement and test this as a focused external contribution. Since the repository contribution policy is invitation-only, could a maintainer clarify:

    • whether an external PR would be welcome for this issue;
    • which repository/source tree owns the Desktop project-creation flow; and
    • whether the preferred persistence surface is a Desktop setting or a documented config.toml key?

    If invited, I would keep the change limited to the setting, validation/fallback behavior, project-creation path selection, and focused cross-platform tests.

  11. hughdidit commented on Jul 21, 2026

    @hughdidit

    Confirmed that this remains present in a newer Codex Desktop for Windows package.

    Environment

    • Codex Desktop package: 26.715.8383.0
    • Windows x64 build: 22631.6199
    • Desired default parent: D:\CodexWorking

    Current behavior

    The Projects → Add new project → Start from scratch flow provides no way to select or configure the parent directory. Settings search exposes no default-project-folder preference, and the user-level ~/.codex/config.toml / persisted workspace state does not provide an override for this flow.

    Local inspection of the shipped Windows package confirms that the Electron-side creation path still does the equivalent of:

    createDefaultWorkspaceRoot(projectName) {
      const sanitizedName = sanitizeDefaultProjectName(projectName);
      return findAvailableDefaultWorkspaceRoot(
        app.getPath("documents"),
        sanitizedName,
        undefined
      );
    }

    The creation dialog passes only projectName through electron-create-new-workspace-root-option, so the project is unconditionally rooted under the Windows Documents known folder.

    Expected behavior

    Please provide a supported Default project folder setting (or documented config key) specifically for newly created local Start from scratch projects. In this environment, selecting D:\CodexWorking should produce:

    D:\CodexWorking\<Project Name>
    

    Existing projects and projectless-chat storage should remain unchanged.

    This matters especially on Windows because Documents may be OneDrive-backed, while development repositories may need to live on a separate local drive for performance, sandbox compatibility, storage policy, or organizational reasons. Redirecting the Windows Documents known folder globally or patching the signed app package are not safe substitutes for an app-owned preference.

  12. TedTschopp commented on Jul 31, 2026

    @TedTschopp

    Adding another concrete user report in support of this request.

    I want all Codex projects to live under one common, user-configurable parent folder. In Codex App for macOS 26.727.40816, Projects → Start from scratch created:

    ~/Documents/Testing-a-new-project/

    Meanwhile, projectless chats use a different convention under:

    ~/Documents/Codex/YYYY-MM-DD/<chat-name>/

    That split is confusing and makes it difficult to keep Codex-created work organized. Please add a setting such as Settings → General → Projects → Default project folder, then create every new “Start from scratch” project at:

    <configured-parent>/<Project Name>/

    For example:

    ~/Documents/Codex Projects/Testing-a-new-project/

    The setting should affect newly created projects without changing the registered paths of existing projects.

  13. caobotao1234-star commented on Oct 11, 2026

    @caobotao1234-star

    Adding a current Windows data point and a request to prioritize this feature.

    Environment: Windows 11, desktop package 26.1007.2314.0 (checked on 2026-10-11).

    Why this matters: I want to choose a parent directory on a non-system drive once, then create each new project by entering its name. Having projects accumulate under the default Documents location on C: creates ongoing storage pressure and recurring cleanup/migration work as the number of projects grows. Manually creating a folder and selecting it for every project defeats the convenience of the new-project workflow. This is an important day-to-day requirement for me, not just a preference about folder organization.

    Current implementation evidence: Read-only inspection of the installed desktop bundle shows that, when a new local project has no supplied source folder, createLocal calls createDefaultWorkspaceRoot. That function derives the parent from the OS Documents folder plus ChatGPT, then appends the sanitized/unique project name. I did not find a configurable parent being read in that creation path. This is code-inspection evidence; I have not run a separate UI reproduction test for this comment.

    This build also contains Settings → General → Projectless task folder (projectlessWorkspaceRoot). That setting belongs to a different path. Please keep this request specifically about new named local projects / Start from scratch; changing projectless storage or the Git worktree root does not address it.

    A focused solution would be:

    • Add a persistent Default parent folder for new projects setting with a native folder picker.
    • Create new projects at <chosen parent>\<project name>, retaining the existing name sanitization and collision handling.
    • Apply the preference only to future projects, preserving existing project paths.
    • If the selected drive/folder is unavailable or not writable, show an actionable error instead of silently falling back to C:.

    Please prioritize this separately from the projectless-folder setting. Setting the location before project creation would prevent ongoing system-drive growth and avoid later relocation work. Could the team confirm whether this is planned and share any available status or target release? An explicit app setting would be much more practical than requiring users to redirect Windows Documents or modify the installed application.

  14. radimbrixi commented on Nov 2, 2026

    @radimbrixi

    can we pls prioritize this issue pls?
    @jif-oai @etraut-openai @felixxia-oai @bc-openai @charliemarsh-oai @fcoury-oai @anp-oai @iceweasel-oai Forward to Product owner pls or implement straight away pls...

  15. dmiller423 commented on Nov 8, 2026

    @dmiller423

    This is hilarious, you really can't set project base dir?
    I'm just going to use a symlink, but damn that's ...

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

    Confusing interactionappconfigenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions