Skip to content

Full access selection still starts sessions with workspace-write sandbox #29503

Open

Description

@KJ21-ENG

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

Version 26.616.51431

Note: the app bundle was not visible to the agent under /Applications/Codex.app, so this version is taken from the active Codex app/tool metadata for the affected session.

What subscription do you have?

Not exposed to the agent runtime. The reporter can update this with the exact plan if needed.

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

After selecting Full access in the Codex app permissions/access selector, new/local sessions still appear to be launched with an effective sandbox configuration of workspace-write, not full unrestricted access.

In the affected session, the runtime metadata exposed to the agent showed:

sandbox_mode: workspace-write
approval_policy: never
writable_roots:
  - /Volumes/MacSSD/Development/CursorAI_Project/App-1
  - /Volumes/MacSSD/tmp
  - /private/tmp

This was surprising because the UI access selection had been set to Full access. The agent therefore kept reporting that it was operating inside a sandbox, and some operations behaved as sandboxed even inside the selected workspace.

One concrete symptom was a Git metadata write failing while trying to update the local index under the workspace:

fatal: Unable to create '<workspace>/.git/index.lock': Operation not permitted

The workspace files themselves were readable and writable, but the effective permissions did not match the user's selected Full access mode.

What steps can reproduce the bug?

  1. Open the Codex app on macOS.
  2. Open a local project/workspace.
  3. In the permissions/access selector under the composer, select Full access.
  4. Start a new thread or side conversation in that project.
  5. Ask Codex to inspect or report the effective runtime permissions/sandbox state, or run an operation that writes Git metadata such as updating the index.
  6. Observe that the agent reports workspace-write / sandboxed permissions instead of danger-full-access, and Git metadata writes may fail with Operation not permitted.

Expected session details that are relevant:

Expected full access: sandbox_mode = danger-full-access, approval_policy = never
Observed effective access: sandbox_mode = workspace-write, approval_policy = never

What is the expected behavior?

When the user selects Full access, the effective runtime for new local sessions should match the documented full-access behavior, i.e. sandbox_mode = "danger-full-access" with approval_policy = "never", unless an organization or config policy is overriding it.

If a repo/user/org config or managed requirement forces workspace-write, the app should make that explicit in the UI so the visible selector does not imply Full access while the agent is actually sandboxed.

Additional information

The behavior seems recent. The user reports that they did not see Codex repeatedly mention the sandbox environment in earlier sessions after selecting Full access.

Possible areas to check:

  • Whether the Codex app UI selection is being applied to side conversations and newly created threads.
  • Whether project/user/team config is overriding the app selector without surfacing that in the UI.
  • Whether permission profiles and legacy sandbox_mode settings are interacting unexpectedly.
  • Whether .git paths inside the current workspace root are being protected differently from ordinary workspace files in workspace-write mode.

I searched the open issue list for the exact Full access / workspace-write / danger-full-access mismatch before filing and did not find an exact duplicate. There are recent sandbox-related Codex App issues, but they appear to describe different Windows/WSL symptoms rather than this macOS Full access selector mismatch.

Activity

  1. added
    bug
    app
    sandbox
    on Jun 23, 2026
  2. gm-fire commented on Jun 24, 2026

    @gm-fire

    Adding another reproduction from the Codex Desktop app on macOS.

    Environment:

    Codex Desktop: 26.616.81150, bundle 4306
    Codex CLI: 0.142.0
    macOS: 15.3.1 (24D70), arm64
    Current Codex originator: Codex Desktop
    

    Observed behavior:

    • The user-facing permissions UI was set to Full access.
    • After quitting Codex Desktop and reopening the project/thread, a later Git staging operation failed while creating the Git index lock:
    fatal: Unable to create <workspace>/.git/index.lock: Operation not permitted
    
    • The affected turn appeared to have an effective sandbox like workspace-write with the workspace root writable but .git treated as read-only, so ordinary workspace edits were possible but git add could not write .git/index.lock.
    • In a fresh side conversation in the same project after reopening, the effective metadata shows full access again:
    sandbox_policy: { type: danger-full-access }
    permission_profile: { type: disabled }
    approval_policy: never
    
    • A direct non-persistent write probe under .git succeeded in that fresh side conversation, and .git/index.lock was not present. So this does not look like a macOS file ownership issue or a stale lock file. It looks like a Codex Desktop permission-state / session-resume mismatch: the UI can show Full access, while the affected agent turn is still running with a restricted sandbox snapshot where Git metadata is blocked.

    Expected behavior:

    If the UI says Full access for a local project, resumed threads and side conversations should get the same effective danger-full-access permissions, or the UI should clearly show that an older/restricted sandbox snapshot is still active for that turn.

    Privacy note: I have intentionally replaced the local user and repo path with <workspace> because this is a public issue. I can provide more exact session details through a private/support channel if useful.

  3. briancl2 commented on Aug 6, 2026

    @briancl2

    Adding bounded macOS Desktop evidence from a public, sanitized investigation: https://github.com/briancl2/build-meta-analysis/issues/1559#issuecomment-5207186363

    In one fresh-parent transfer, five fresh visible destinations resolved to approval_policy=on-request / sandbox_mode=workspace-write while the source task and local configured/default state were never / danger-full-access. Sanitized turn_context evidence places the first observed divergence in the Desktop/high-level fresh-task request assembly: app-server resolved the explicit restrictive fields it received.

    Controls in the same episode matter:

    • the same parent after Stop resolved back to never/danger-full-access;
    • an internal subagent control was unrestricted;
    • a later manually activated fresh task was unrestricted.

    That falsifies a config-only, app-server-only, model-only, and universal-fresh-task explanation for this bounded case. It supports an atomic activation contract plus a requested/resolved permission receipt with provenance/revision, before the first model/tool action.

    Claim ceiling: one macOS Desktop transfer/build family; no all-host recurrence rate or internal code-location claim.

  4. alexph-dev commented on Oct 13, 2026

    @alexph-dev

    Additional local-to-local macOS evidence, observed October 13, 2026.

    Environment: Desktop 26.1007.30912, build 20156; child runtime 0.162.0-alpha.17.2. Both the parent and the created chat ran on the same Mac. No remote server or remote handoff was involved.

    Observed sequence:

    1. An existing local chat used the built-in create_thread tool to create a chat in another local project with environment.type = local, without a worktree. The parent's persisted turn context was approval_policy=never, sandbox_policy.type=danger-full-access, and permission_profile.type=disabled.

    2. Before the child's first model action, the Desktop log recorded these explicit launch fields:

      requestApprovalPolicy=on-request
      requestApprovalsReviewer=user
      requestPermissionProfile=:workspace
      resolvedApprovalPolicy=on-request
      useAppServerPermissionDefault=false
      
    3. The child's persisted first-turn context confirmed:

      approval_policy=on-request
      sandbox_policy.type=workspace-write
      sandbox_policy.network_access=false
      permission_profile.type=managed
      
    4. The user observed Full access in the composer while the chat required approval. Ordinary command networking failed with a DNS-resolution error, and Desktop recorded a command-execution approval request.

    5. After the user selected Full access and continued, Desktop sent requestApprovalPolicy=never and requestPermissionProfile=:danger-full-access. The next persisted turn context confirmed never / danger-full-access / disabled, and the network command succeeded through ordinary execution.

    The current user configuration and saved local-host preference also select Full access. Those are corroborating current observations, not historical proof of the preference at creation; the parent's actual full-access turn context and the child's restrictive launch receipt establish the local-to-local discrepancy directly.

    This points to the Desktop task-creation path supplying restrictive settings for this occurrence. It does not establish the internal reason for choosing them, a recurrence rate, or that every related resume/Dots report shares the same cause. We have not run a fresh controlled reproduction. A separate long-running browser-tool wait occurred in this chat; we are not attributing that delay to this permission mismatch.

    Please investigate permission propagation for agent-created local chats, make the displayed access mode reflect the effective runtime policy, and expose the source of any intentional override. This interrupts unattended delegation even when both chats run on the same computer.

    Only sanitized technical evidence is included here. No names, usernames, local paths, account/project/chat identifiers, business data, raw logs, or screenshots are attached. Prepared with Codex assistance and posted with the account owner's approval.

  5. eddietisma commented on Oct 26, 2026

    @eddietisma

    Additional Windows desktop reproduction involving tool-created chats and permission propagation.

    Environment and scope

    • Windows x64, desktop package OpenAI.Codex version 26.1021.3705.0.
    • Bundled CLI reports 0.164.0-alpha.11.1.
    • A patched launcher/custom model provider is in use. This is disclosed because a complete clean-client runtime reproduction has not yet been performed.
    • This report contains sanitized configuration and behavior only. No chat/session IDs, account data, private repository details, credentials, or complete logs are included.

    Observed behavior

    During diagnosis, the saved local permission selection read agentMode: full-access. The TOML was once found at on-request / workspace-write and was corrected. After correction, these user defaults were verified:

    approval_policy = "never"
    sandbox_mode = "danger-full-access"

    Five verification chats had been created through the desktop codex_app.create_thread tool, targeting a saved local project. Their assigned Git worktrees and scratch output were on another drive from the saved project directory. There is no immutable TOML snapshot from the exact moment those five chats were first created, so their initial policy is not by itself proof that the launcher ignored Full Access TOML defaults.

    The initial turn contexts recorded approval_policy: on-request, sandbox_policy.type: workspace-write, and network_access: false. Their explicit writable roots included the saved project drive and each chat's visualization directory, excluding the assigned worktree/scratch drive. Routine work therefore repeatedly crossed the effective sandbox boundary and generated approval requests.

    One chat subsequently started manual UI turns with approval_policy: never and sandbox_policy.type: danger-full-access. Four retained restricted contexts. A controlled follow-up through send_message_to_thread, after the global defaults were verified as Full Access, also started a new turn with the restricted policy. Editing user defaults therefore did not repair this tool-created/resumed chat path.

    This is a mismatch between the selected/default permission intent and the tool-created chat path. It is not a claim that approving a command once should disable the sandbox, or that automatic review itself has been proven faulty.

    Bounded static control

    The relevant permission-selection fallback helper was compared read-only between the running patched bundle and the unmodified Microsoft Store installation of the same desktop version. The helper bytes match exactly, SHA-256:

    a7362d8025fe170318fe9ecb2ffff4310d33cfef50bed0ce1bc0aedff2a90745

    Asset: webview/assets/app-initial-438d1df57f70.js.

    With source permission context available, the helper preserves full-access. With that context missing for the delegated path, its fallback resolves auto even when the host selection and TOML defaults are Full Access. The ordinary user-created path preserves Full Access in the same bounded helper test.

    This establishes that this fallback is also present in the stock bundle. It does not establish that all effects of the patched launcher/provider have been excluded, or prove that the fallback is unintended. Please triage whether the defect is missing source-context propagation, the fallback choice, or the absence of an explicit permission-selection option for delegated thread creation/resumption.

    Reproduction outline and expected behavior

    1. Select Full Access in a Windows desktop local project and verify the defaults above.
    2. Ask an agent to create separate visible verification chats using create_thread with target.environment.type: local.
    3. Assign owned worktrees/scratch paths outside the saved project's default writable roots.
    4. Inspect each first turn_context before accepting benchmark/work results.
    5. Compare a manual UI continuation after selecting Full Access with a tool-submitted continuation.

    For explicitly authorized delegated work, the requested/resolved permission mode should be observable before execution. If restricted delegated execution is intentional, the tool should expose a supported permission-selection mechanism and explain the downgrade, rather than leave the user approving routine commands repeatedly while their saved host selection is Full Access.

  6. eddyraveland commented on Oct 27, 2026

    @eddyraveland

    Adding a related macOS report involving dot-created tasks.

    Environment: ChatGPT desktop for macOS 26.1021.31345, build 21828; bundled Codex 0.164.0-alpha.11.1; personal ChatGPT Pro account.

    My saved local config is valid and requests:

    sandbox_mode = "danger-full-access"
    approval_policy = "never"
    approvals_reviewer = "user"

    The app’s user-facing permission selection is also set to Full Access, as reported by me, not just the config file. This makes the mismatch between the selected/default access and the effective task permissions particularly confusing. The affected task’s own permissions selector is absent, so I cannot change it there.

    An inspected task created by my dot executed on my connected Mac, but received workspace-write, auto_review and restricted network access. The task interface had no permissions selector. Taking control through the “You have control / Return control” banner did not change those effective permissions. I have observed the same user-facing restriction across dot-created tasks; the inspected task supplies the concrete runtime evidence.

    A read-only inspection of the installed client found a preserveServerPermissions path that strips local permission overrides, plus a server-default state that can hide the picker. These are diagnostic clues, not proof of the exact backend policy responsible.

    This appears related to the local-to-local task-creation evidence already in this thread. One important difference is that my affected dot-created task provides no visible permissions control for selecting Full Access again.

    Could maintainers clarify:

    1. Which policy determines permissions for dot-created tasks that execute on a connected local Mac?
    2. Is there a supported way to set defaults for all future dot-created tasks?
    3. Is the absent selector intentional, or a UI/configuration defect?

    I am requesting supported configuration and transparent controls, not a bypass of safeguards. No private task identifiers, email address, full configuration, raw logs or screenshots are included.

  7. substrateindependent commented on Nov 15, 2026

    @substrateindependent

    I'm seeing the same thing on the Codex desktop app for macOS, version 26.1111.21308, on an Apple silicon MacBook Pro running macOS 26.6.2. I'm signed in with my ChatGPT Work account.

    What's happening

    Full Access is selected in the app, but every new thread in my project runs sandboxed. Codex reports these effective settings from inside the session:

    sandbox_mode: workspace-write
    network_access: restricted
    approval_policy: granular (sandbox_approval: false, rules: false, skill_approval: false, mcp_elicitations: true)
    filesystem: project folder = write, project .git = read
    

    Because sandbox approvals are off, Codex can't ask to run anything outside the sandbox. When it did manage to request one out-of-sandbox run, I clicked Approve and the request ended before the command ran.

    How to reproduce

    1. Open a project that is a Git repository and select Full Access.
    2. Start a new thread and ask Codex to run a command that writes inside .git. Mine is a sync script that opens .git/langham-sync/process.lock for append.
    3. The command fails with PermissionError: [Errno 1] Operation not permitted.

    What I expected

    sandbox_mode danger-full-access, which is what the app says is selected.

    What I've ruled out

    • The same command runs fine in Terminal as my user.
    • The same command runs fine in the app's bundled CLI (v0.169.0-alpha.11.1) started with --sandbox danger-full-access. Exit code 0.
    • Setting sandbox_mode = "danger-full-access" in ~/.codex/config.toml, quitting the app, and starting a new thread changes nothing.
    • There is no /etc/codex and no managed preference under com.openai.codex, so nothing on the Mac is enforcing a policy.
    • The app updated itself to 26.1111.21308 on November 14. The problem was there before the update and is still there after it.

    When it started

    It worked through November 13 and failed on the morning of November 14, 2026. The one thing that changed on my side is that the project's root Git repository was replaced overnight. Same folder path, new .git, and three nested repositories inside it. I mention it in case the app ties a project's permissions to the repository.

    I need the desktop app to honor Full Access for this project. Is there a fix, or a setting I can change to get there?

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