Skip to content

lost write rights on not-primary folder #60815

Open

Description

@HKohlhoff

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

Version 26.1106.51428

What subscription do you have?

pro

What platform is your computer?

MAC

What issue are you seeing?

macOS desktop: only the primary project folder is writable

Date: 11 November 2026
Related open report: #35260

Environment

  • ChatGPT/Codex desktop app, Work mode, on a local Mac.
  • App version reported in the current client context: 26.1106.51428.
  • macOS 27.2.1 and arm64, measured through the local executor.
  • Project with multiple attached local folders: a development repository and an Obsidian vault. Private folder paths are omitted here.

Problem and impact

The user reports that multi-folder writing worked for weeks. Now only the primary project folder is writable. Additional attached folders remain readable but writes are rejected. This prevents a single task from updating code and the related Obsidian content together; the user has had to run prepared changes manually in Terminal.

The exact version that introduced the problem has not been established. An app update is suspected, not proven to be the cause.

Observations and reproduction

  1. Attach the repository and the vault to the same project. The user reports that both are shown as attached.
  2. Make the repository primary and ask the agent to create a uniquely named temporary file in the vault.
  3. Creation fails with PermissionError: [Errno 1] Operation not permitted. No file is created.
  4. A previously authorized deletion in the vault failed with the same error at its first os.unlink; no deletion occurred in that attempt.
  5. The effective context of the affected conversation lists the repository, but not the vault, among writable roots. The explicit permission profile grants writes to the repository and runtime temporary directories, but not the vault.
  6. Fully quitting and reopening the app did not fix this existing conversation; subsequent temporary-file probes still failed.
  7. The user then tested switching the primary folder and starting a fresh conversation. The user reports that whichever folder is primary is writable, while the other folder remains unwritable. Those separate-conversation outputs were not independently inspected in this report.

The same prepared edits succeeded in the user's normal macOS Terminal. Agent commands run as the same local user (UID 501). Inspected directory ownership and ordinary permission bits allow the owner to write; no immutable flag or additional deny ACL was displayed. This does not exclude every possible macOS privacy restriction, but the missing effective writable root is a concrete discrepancy.

A request to inspect macOS unified logs through /usr/bin/log show was itself rejected with Cannot run while sandboxed.

Expected behavior

All folders explicitly attached to the project with write access should be included in the effective write policy, including in a single task that needs two or three folders. Changing the primary folder should select the working directory rather than remove write access to other attached folders.

Requested investigation

  • Investigate propagation of attached project folders to runtime workspace roots and filesystem permissions.
  • Clarify when existing Work conversations refresh these permissions after project edits and app restarts.
  • Confirm whether named, project-local permission profiles with explicit workspace roots are honored in this desktop Work surface, and how to select them.

No macOS permissions, ACLs, or global app configuration were changed during diagnosis. No API tokens, passwords, note bodies, account identifiers, or private filesystem paths are included in this report. This file is a prepared report, not confirmation that feedback has been submitted.

What steps can reproduce the bug?

Feedback ID: 5b2cac5a-f9c8-45ef-96cc-4fefa5bcefa1

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Nov 11, 2026
  2. added
    bug
    sandbox
    on Nov 11, 2026
  3. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. ifkooo commented on Nov 11, 2026

    @ifkooo

    I’m seeing the same issue in Work mode on macOS (Apple silicon) with desktop version 26.1106.51428.

    My project still has eight local repositories attached. On Nov 10, local session records showed write access to all eight from a chat with the same primary repository. In my current chat, only the primary repository is listed as writable. The other attached folders are readable. Creating a temporary file in them fails with Operation not permitted.

    This blocks changes across repositories from a single chat. Could you check why the secondary project folders are missing from the session’s writable roots?

  5. anssiv commented on Nov 12, 2026

    @anssiv

    I'm experiencing multiple serious regressions with Codex Desktop 26.1106.51428 on macOS (Apple Silicon).

    1. Secondary repository access is broken. Repositories explicitly configured under writable_roots remain inaccessible. Access has also been granted explicitly in chat, but Codex still refuses to write outside the primary repository.

    2. Git operations are blocked. Codex fails to stage changes because it cannot create .git/index.lock, returning Operation not permitted.

    3. Other filesystem operations fail. Writing to directories outside the primary workspace fails with Operation not permitted, even when permissions have been configured.

    4. Permission settings are ignored. Configured writable roots, trusted repositories, and explicit user approvals do not resolve the issues. Restarting the application and starting new conversations haven't helped.

    5. Existing conversations become unusable after restarting the app. Previously local conversations switch to Cloud mode after restarting Codex Desktop. I can no longer continue working in those conversations locally, effectively forcing me to start new conversations and lose the working context.

    6. MCP tools are unavailable in Desktop. A custom MCP server works correctly in Codex CLI but remains unavailable in Codex Desktop, even after logging out and back in.

    These workflows previously worked. The regressions became apparent around November 11–12, 2026.

    The combination of broken filesystem permissions, blocked Git operations, and conversations unexpectedly switching to Cloud mode makes Codex Desktop practically unusable for normal development.

    This appears to be a regression in Codex Desktop's permission handling and session management, rather than a workspace configuration issue.

  6. shjo0115 commented on Nov 12, 2026

    @shjo0115

    I am also affected by this on macOS (Apple Silicon), using ChatGPT/Codex Desktop 26.1106.51428 in Work mode. The problem is still blocking my work on November 12, 2026 (KST).

    Local development and file-editing workflows that previously worked are now blocked: additional folders attached to the project can be read, but the agent cannot write to them. Adding the folders again and repeatedly retrying the work has not restored access.

    In the current affected conversation, the supplied filesystem permission profile grants write access to the primary project mirror and temporary/runtime directories, but the additional local development folder is absent from the writable roots. Explicitly asking the agent to edit that folder does not change the effective policy.

    This has prevented me from completing updates to my local teaching application (SPACE) and continuing textbook/material-processing work. The app update/install workflow is also blocked; I understand that writing to an application installation directory may require separate authorization. The main issue here is that attaching the development folder does not give the agent the write access needed to finish the code changes.

    Could the team please investigate whether attached-folder permissions are failing to propagate to Work sessions, and provide a supported way to restore access? Please also clarify whether existing conversations need to be recreated after a fix. I cannot establish the exact cause or the version that introduced this, but these workflows were working before the recent failures.

    A fix status or supported workaround would be very helpful, as this is interrupting daily teaching preparation. Thank you.

  7. HKohlhoff commented on Nov 12, 2026

    @HKohlhoff
    Author

    The bug fix needs to come quickly because right now the app is unusable and our work can not be continued with a lot of switching and problems.

    Why does openAI make theses changes without extensive information to users. It is bad practice and customer-relation.
    The possibility to work as before the update determines the further use of openAI / ChatGPT, or switch to another provider. Claude is not that bad...

  8. shjo0115 commented on Nov 13, 2026

    @shjo0115

    I was previously on Pro 200 and upgraded to Pro 500 this month specifically because I planned to do much more serious local development work with Codex.

    Right after upgrading, this write-access regression started.

    Only the primary workspace folder is writable. Additional folders can be read, but Codex cannot modify or save files there. This completely blocks my real workflow, which depends on working across multiple local folders.

    I upgraded to Pro 500 to work more, but I’m currently unable to use the functionality I upgraded for.

    Please prioritize a fix for this regression as soon as possible.

    Environment: macOS (Apple Silicon), Codex Desktop 26.1106.51428, Pro account.

  9. kumarnimit commented on Nov 19, 2026

    @kumarnimit

    Stuck with this regression and it seems there are three issues still on Codex Desktop 26.1111.71704 (Mac, Apple Silicon):

    1. updating allowed folders will not work in the same chat - see below
    2. multiple folders are not getting write access
    3. command line tools are failing reporting "Operation not permitted" as folders outside the project is no longer writeable. Basic build commands are failing as well, since codex is no longer able to delete the caches, etc.

    I had multiple folders in a project - this still is not working on as the write permission for non primary folders stopped working (issue acknowledged in #61297 ) . Fortunately, these folders were all organized under a parent, so i gave access to the parent folder and then removed all other subfolders from the project settings. This still did not work until i created a new chat.

    While we can work around 1 and 2, 3 is making Codex unusable without external tool access.

  10. andyfly100 commented on Nov 22, 2026

    @andyfly100

    Same symptom here (macOS, Apple Silicon, Plus, Work mode), with a clear before/after between two versions, plus a working rollback.

    Setup: a CLI tool must write a lock file in ~/.<tool>/ (outside the project). ~/.codex/config.toml has:

    sandbox_mode = "workspace-write"
    [sandbox_workspace_write]
    writable_roots = ["/Users/<me>/.<tool>"]

    26.1111.71704: works. From Nov 14 to Nov 20, Work chats in this project ran the tool successfully every day. Their session context shows sandbox_policy: workspace-write with the writable_roots from config.toml, plus the project's second folder.

    26.1117.41037 (auto-updated Nov 22): broken.

    • New Work chats are registered differently in ~/.codex/sqlite/codex.db (local_thread_catalog): host chatgpt, conversation_origin = "tpp", no cwd. Older chats were host local, source_kind = vscode, with cwd set to the primary folder.
    • Asked to list its own environment, the agent reports sandbox_mode = "workspace-write" and approval_policy = "granular", with sandbox_approval auto-rejected. The only writable local path is the primary project folder; everything else is temp/runtime dirs. config.toml writable_roots are not applied, and secondary project folders are read-only.
    • Result: open ~/.<tool>/.data.lock: operation not permitted.
    • In the composer permission menu, "Ask for approval" and "Custom (config.toml)" are greyed out; only "Approve for me" can be selected.
    • Settings → Configuration shows the scopes Codex / Work / Admin. Only the Codex scope maps to config.toml. The Work scope has no writable-roots option ("Local file access" offers only default / read-only / workspace-write), and its approval setting says it applies to "native Work mode" chats.
    • The project-bar "cloud / on your computer" location toggle is gone.
    • Adding ~/.<tool> as an extra project folder (and trusting it) did not help: it stays read-only.

    Rollback fixes it. I reinstalled 26.1111.71704 from the official appcast (persistent.oaistatic.com/codex-app-prod/appcast.xml; the Developer ID team matches) and disabled Sparkle auto-update. New Work chats are back on host local, config.toml writable_roots apply again, and the tool works. No other changes were needed.

    Request: let native Work mode chats honor sandbox_workspace_write.writable_roots (or expose additional writable roots in the Work scope), and keep secondary project folders writable as before. Please also note this in the release notes: auto-update silently broke a workflow that had worked for weeks.

  11. yangshihao2020-sketch commented on Nov 24, 2026

    @yangshihao2020-sketch

    Additional macOS reproduction — still occurring on November 25, 2026

    I am also affected by this issue. Fresh filesystem probes in my affected Work conversation reproduced the failure at 2026-11-25 00:53 UTC+08:00 (2026-11-24 16:53 UTC).

    Environment

    • macOS 27.0.1, Apple Silicon / arm64, measured locally.
    • The installed ChatGPT.app bundle currently reports 26.1120.41243, build 30607.
    • The existing conversation's supplied client metadata still references 26.1117.41037. The version under which this already-running Work session originally started has not been independently established; the installed bundle version alone is not proof of that.
    • Project settings show multiple attached local folders, including the PDF library. The workflow also targets an Obsidian vault. Private folder names and full paths are omitted.

    Actual write tests in Work

    Each probe attempted to exclusively create a randomly named temporary file, write a random payload, read it back, verify it, and delete the test file.

    Target Result
    Primary project folder Create, write, read, verification and deletion all succeeded
    Obsidian vault Creation failed: PermissionError: [Errno 1] Operation not permitted
    Original-PDF directory inside the attached PDF library Creation failed: PermissionError: [Errno 1] Operation not permitted

    All three directories exist. The two failed probes created no files. The successful primary-folder test file was deleted. Existing files were untouched.

    The effective permission profile supplied to this Work conversation includes the primary project directory and temporary/runtime locations as writable, but omits the two target directories. It reports workspace-write and granular approval, with sandbox approval requests disabled.

    Codex comparison

    I can write to the same target directories using Codex, while Work continues to fail. This Codex success is my reported comparison; the fresh, independently captured probe results above are from Work. A similar Work-versus-Codex difference was reported in #60812.

    Impact and request

    This blocks an everyday literature workflow that needs to save notes in Obsidian and archive original PDFs in a separate attached folder. I have explicitly authorized these writes, but Work cannot complete them.

    Could the team please:

    1. Investigate whether additional attached-folder permissions are being omitted when assigning the effective permissions to Work sessions.
    2. Share the current fix status or a supported recovery procedure.
    3. Clarify whether a fix requires a new conversation or can restore access in existing Work conversations.

    Expected behavior is that explicitly attached, write-authorized folders remain editable together, with the primary folder selecting the default working directory, consistent with https://learn.chatgpt.com/docs/projects.

    This report does not establish the root cause or the version that introduced the problem. No macOS permissions or app configuration were modified for these probes.

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

    appbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions