Skip to content

[Windows Desktop] Selecting "Full access" sends permission_profile: "managed" that is not defined locally, silently falling back to workspace-write #56663

Open

Description

@asfasdad

Environment

Item Value
OS Windows 11 Pro 22H2, build 22000, x64
Desktop app ChatGPT / OpenAI.Codex_26.1021.2667.0_x64__2p2nqsd0c76g0 (MSIX)
Desktop build available at time of report 26.1021.3705.0
CLI codex-cli 0.164.0-alpha.11.1
MXC support MXC availability: false → legacy elevated sandbox backend
Execution host local:C:\Users\<user>\.codex (native Windows, not Cloud/durable)
Account local administrator

What happens

  1. In the composer permission selector, select Full access ("可不受限制地访问互联网和你电脑上的任何文件").
  2. Start a new chat and ask the agent to create a folder on the Desktop.
  3. The agent runs:
$desktopPath = [Environment]::GetFolderPath('Desktop')
$targetPath = Join-Path $desktopPath 'test'
New-Item -ItemType Directory -Path $targetPath -Force
  1. It fails:
New-Item: Access to the path 'C:\Users\<user>\Desktop\test' is denied.

The same session can write inside its working directory (E:\...\日常工作), so it is not a total write lockout — it behaves exactly like workspace-write.

The permission selector visibly shows Full access and the selection persists across restarts (permission-selection-by-host-id:local = {"kind":"agent-mode","agentMode":"full-access"}).

Evidence

1. The client requests a profile name that does not exist

From ~/.codex/logs_2.sqlite (logs.feedback_log_body), every turn:

op=TurnInput
requested_settings: ThreadSettingsOverrides {
  approval_policy: None,
  approvals_reviewer: None,
  sandbox_policy: None,
  permission_profile: Some("managed")
}

Observed on 2026-10-22 17:46, 2026-10-23 10:28, 2026-10-23 17:52 (three different sessions).

managed is not one of the three built-in profiles (:read-only, :workspace, :danger-full-access), and it is not defined locally:

$ codex doctor
  ✓ sandbox   restricted fs + restricted network · approval OnRequest
      filesystem sandbox       restricted
      managed filesystem source none
      sandbox backend          elevated
$ codex sandbox -P managed -- cmd /c echo hi
Error: default_permissions refers to undefined profile `managed`

Neither ~/.codex/requirements.toml nor C:\ProgramData\OpenAI\Codex\requirements.toml exists.

2. The two profiles behave completely differently at runtime

$ codex sandbox -P :danger-full-access -C <cwd> -- cmd /c "whoami & mkdir C:\Users\<user>\Desktop\probe"
desktop-xxxx\administrator        # NOT dropped to a sandbox account
exit 0                            # probe created successfully

$ codex sandbox -P :workspace -C <cwd> -- cmd /c "whoami & mkdir C:\Users\<user>\Desktop\probe"
desktop-xxxx\codexsandboxoffline  # dropped to the sandbox user
exit 1                            # 拒绝访问 / Access denied

So the sandbox machinery and the full-access path both work. The failure is that the running command never gets the full-access profile.

3. The sandbox user is read-only on the Desktop

$ icacls C:\Users\<user>\Desktop
C:\Users\<user>\Desktop  DOMAIN\CodexSandboxUsers:(OI)(CI)(RX)     <-- explicit, read+execute only
                         NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                         BUILTIN\Administrators:(I)(OI)(CI)(F)
                         DOMAIN\<user>:(I)(OI)(CI)(F)

CodexSandboxUsers is Codex's own managed group ("Codex sandbox internal group (managed)"), membership: CodexSandboxOffline, CodexSandboxOnline.

4. Sandbox log confirms workspace-write semantics

~/.codex/.sandbox/sandbox.<date>.log, for every turn from the desktop app:

START: ...pwsh.exe -NoProfile -Command $desktopPath = [Environment]::GetFolderPath('Desktop'); ...
read-acl-only mode: applying read ACLs
read ACL run completed
granting write ACE to C:\Users\<user>\Documents\Codex\<date>\new-chat-N for sandbox group and capability SID
setup refresh: processed 2 write roots (read roots delegated); errors=[]

It grants a write ACE only to the turn's CWD — precisely the workspace-write behaviour. No dangerFullAccess turn produces that granting write ACE line.

5. UI state and runtime state disagree

.codex-global-state.json → electron-persisted-atom-state.heartbeat-thread-permissions-by-id:

Thread created activePermissionProfile sandboxPolicy
2026-10-15 … 10-19 :danger-full-access dangerFullAccess ✅
2026-10-21 14:33 → now :danger-full-access workspaceWrite ❌

At the same time permission-selection-by-host-id:local and agent-mode-by-host-id.local both read full-access.

Ruled out

  • Broken NTFS ACL — creating a folder on the Desktop as the normal admin token succeeds (WRITE_OK), so the DACL is fine for non-sandboxed processes.
  • Broken sandbox / broken full-access implementation — -P :danger-full-access runs unsandboxed as administrator and writes the Desktop successfully.
  • Enterprise/MDM policy — managed filesystem source: none; C:\ProgramData\OpenAI\Codex does not exist; Get-AppxPackage-independent inspection shows no requirements.toml anywhere.
  • Project-level config overriding permissions — codex doctor reports the project .codex/config.toml contributes only one ignored key (notify).
  • Stale client version — behaviour is identical on 26.1013.3656.0 (CLI 0.163.0-alpha.10.2) and 26.1021.2667.0 (CLI 0.164.0-alpha.11.1).
  • config.toml leftovers — removing sandbox_mode / [sandbox_workspace_write] / default_permissions (so that codex doctor reports a clean default stack) does not change the behaviour; the client still sends managed.
  • Granting CodexSandboxUsers Modify on the Desktop — still Access denied, because the sandboxed process runs under a restricted token / integrity level, so group DACL grants do not apply.
  • unelevated sandbox backend — also denied (whoami shows the real user, but writes are still blocked).
  • Defining a local [permissions.managed] — not possible from user config:
    • extends = ":danger-full-access" → permissions profile 'managed' cannot extend unsupported built-in profile ':danger-full-access'
    • "**" = "write" → filesystem glob path '**' only supports 'deny' access
    • "C:/**" = "write" → filesystem path 'C:' must be absolute
    • "~/**" = "write" → elevated Windows sandbox requires effective ':root' read access
    • adding ":root" = "write" → runner failed during SpawnChild: resolve permission profile token mode
    • default_permissions = ":danger-full-access" + -P managed → default_permissions refers to undefined profile 'managed'

Expected behaviour

Selecting Full access in the composer should result in the turn's effective sandbox policy being dangerFullAccess (commands run unsandboxed), or at minimum the client should map agent-mode: full-access to the built-in :danger-full-access permission profile rather than to an undefined managed name.

If managed is intended to be provided by the service (cloud-managed policy), then the client should surface a visible error or a warning in the permission selector instead of silently degrading to workspace-write while still displaying "Full access".

Impact

On Windows, a user who explicitly opted into full access still cannot write outside the workspace roots (Desktop, Downloads, other drives). workspace-write does allow writes inside the turn's CWD, which is why the issue is easy to misdiagnose as a filesystem permission problem.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    app-server
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. 5zHao commented on Oct 24, 2026

    @5zHao

    I’m experiencing a similar issue in the Windows ChatGPT desktop app.

    Here is the behavior I observed:

    • Before sending the first message in a new conversation, the permission selector below the composer shows “Full access.”
    • After I send the message, the permission selector disappears.
    • The assistant then reports that the effective permission mode is workspace-write, rather than Full access.
    • I can successfully create and read a test file in the current workspace, but this only confirms that workspace writing works.
    • In my older conversations, Full access was available and worked normally.

    The issue seems to occur specifically when starting a new conversation: Full access is selected before the first message, but the effective permission appears to fall back to workspace-write after the conversation starts.

    Is this a known bug? Is there a workaround or a fix planned?

    A note about my technical background: I’m not a programmer and have very little knowledge of coding. ChatGPT helped me organize and translate this report into English based on what I observed. Some technical terms may not be perfectly accurate, so please let me know if you need any additional information or diagnostic steps from me.

    Environment: Windows ChatGPT desktop app, observed on October 24, 2026.

  4. igorzep commented on Oct 24, 2026

    @igorzep

    Additional Windows ARM64 report from 2026-10-25: repeated permission/consent requests despite the user's intended Full Access mode, with a permission-context mismatch observed in the same conversation.

    Environment verified locally:

    • Windows NT 10.0.26200.0.
    • Installed MSIX package: OpenAI.Codex 26.1021.3705.0, ARM64.
    • The running Codex executable reports: codex-cli 0.164.0-alpha.11.1.

    Observed sequence:

    1. During an existing development task, the user explicitly authorized transferring their own test-tool sources between their Codex tasks and executing the prepared tests locally. The user then complained that the agent was repeatedly asking permission despite Full Access being selected/intended.
    2. At that point, the effective permission context supplied to this conversation still reported workspace-write, restricted network access, and a restricted filesystem profile named managed.
    3. Later in the same conversation, an updated permission context reported danger-full-access, approval policy never, network enabled, and an unrestricted filesystem profile of type disabled.
    4. Authorized local test compilation and execution completed. We have not established which UI interaction or internal event produced the permission-context transition.

    User-visible impact: routine, already-authorized work was interrupted by repeated requests for consent, while the explanation given to the user conflicted with their understanding that Full Access was active.

    Evidence limits:

    • Full Access being selected before the complaint is the user's report; no screenshot of the earlier selector state was collected.
    • The permission values above are the effective context delivered to the agent, not an independent inspection of app-server logs or an outside-workspace write probe.
    • The evidence does not establish that every interruption was a native approval dialog. Some were redundant agent-level confirmation requests. These should be distinguished from sandbox approvals and first-party MCP-tool approval prompts.
    • No missing-profile root cause, organization-policy override, or persistent recovery has been independently confirmed in this report.

    Please investigate whether the selected permission mode, effective per-turn profile, and agent-visible context remain synchronized when continuing existing Windows desktop tasks. Full Access should be reflected accurately, and explicit authorization for routine actions within the task should not need to be repeatedly restated. If a separate approval layer legitimately applies, the UI and agent should identify that layer clearly.

    Related symptom for first-party task-tool approval dialogs: #40793; this report does not claim the same root cause.

    Submitted at the user's explicit request. No project sources, local account paths, credentials, session identifiers, or full conversation logs are included.

  5. Coslnus commented on Nov 10, 2026

    @Coslnus

    I’m seeing the same old-versus-new session behavior on Windows 11 25H2 (build 26200.9711), using the ChatGPT desktop app version 26.1103.4239.0 (x64) on a personal Plus account.

    Older sessions still show the permission selector and can make HTTPS requests from local commands. In every new session, the selector is missing and the same requests fail. An affected session reports managed, workspace-write, and restricted network access. HTTPS requests fail with WinError 10013 when connecting to the configured Windows proxy at 127.0.0.1:10809. /debug-config and /status both show “No commands.”

    I found no local requirements.toml or managed_config.toml. Enabling respect_system_proxy = true, fully restarting the app, and creating a fresh session made no difference. The rotated sandbox log did not record the failed connection.

    Is there a way to determine why the desktop app assigns the managed profile to new sessions while older sessions continue to work?

  6. Oblivious0214 commented on Nov 13, 2026

    @Oblivious0214

    Additional Windows reproduction, November 13, 2026.

    On the same Windows PC and in the same installed desktop application, I selected Full access in both ChatGPT Work and Codex.

    • ChatGPT Work: creating a small text file on the Desktop fails with Access denied. The effective permissions supplied to the session are sandbox_mode=workspace-write, approval_policy=granular (sandbox_approval=false), and a managed/restricted filesystem profile.
    • Codex: a newly created conversation reports sandbox_mode=danger-full-access, approval_policy=never, and an unrestricted filesystem. Desktop file creation succeeds (user-confirmed).
    • The desktop app's saved local permission selection was independently inspected and records full-access.
    • Reselecting permissions and troubleshooting the local configuration have already been tried without restoring access in Work.

    Installed Windows app package: OpenAI.Codex_26.1106.6628.0_x64.
    The locally running Codex binary reports 0.167.0-alpha.4.1; this does not establish the exact execution backend used by ChatGPT Work.

    The comparison suggests a difference between the Work and Codex permission-dispatch or session-initialization paths, but does not establish the root cause. Could maintainers investigate why Full access works in a new Codex conversation while the Work conversation still receives a restricted policy?

    No project contents, credentials, raw logs, or private conversation identifiers are included.

  7. qinhaiyang699-maker commented on Nov 15, 2026

    @qinhaiyang699-maker

    Possible workaround: switching from ChatGPT to Codex in the same Windows desktop app restored local file access

    I encountered a similar permission issue in the ChatGPT Windows desktop app and found a potentially useful workaround.

    Environment

    • Windows 10, build 19045
    • ChatGPT Windows desktop app
    • Local Work task
    • Execution identity: "codexsandboxoffline"
    • Effective sandbox: "workspace-write"
    • Permission profile: "managed / restricted"
    • Approval policy: "granular"

    Problem

    Although Full access was selected in the UI, the Work execution session did not include my target E: drive directories in its writable roots. The agent reported that sandbox write escalation was unavailable.

    The directories existed and were readable, but the session policy prevented write operations.

    What I tried

    1. Re-associating a specific local project folder restored write access to that folder. Creating, writing, reading, and deleting a temporary test file all succeeded.
    2. Selecting the entire "E:" drive did not produce the same usable access in the affected session.
    3. Without changing Windows ACLs, reinstalling the application, or modifying sandbox configuration, I switched the desktop app's top-left mode selector from ChatGPT to Codex.
    4. I then continued using the same Work task, and it was able to process the E: drive data.

    Important distinction

    This was a mode switch inside the same ChatGPT desktop application, not a switch to a separate Codex application or a new project.

    Possible explanation

    The mode switch may have refreshed the execution session, workspace authorization, or effective permission profile. I have not isolated which mechanism caused the change.

    Suggested investigation

    Could the ChatGPT and Codex modes initialize or propagate different permission profiles for the same local Work task?

    It would be useful to verify whether the selected Full access mode is consistently reflected in the effective runtime policy, especially when switching modes or resuming existing tasks.

    I am sharing this as an observed workaround, not a confirmed permanent fix. No Windows ACL changes or sandbox bypasses were involved.

  8. Asylum831 commented on Nov 21, 2026

    @Asylum831

    Windows reproduction on desktop package 26.1117.4957.0 — permission control disappears after the first message

    Observed on November 21, 2026 in ChatGPT Work on Windows 11 25H2, build 26200.9974. The installed OpenAI.Codex package is x64, version 26.1117.4957.0.

    1. Open a new Work conversation in the Windows desktop app. The lower-left corner of the composer shows 完全访问 (“Full access”).
    2. Send a first message asking Work to read a public X post with a locally installed tool, Agent Reach.
    3. Once the conversation is created, the permission control disappears. The + button is still there. Other existing Work conversations on the same computer still show the permission control.

    Saved setting and effective permissions. The desktop app’s persisted local-host selection records agentMode = full-access. The top-level sandbox_mode in the local Codex configuration is also danger-full-access. The affected conversation reports a managed, restricted filesystem profile, workspace-write, restricted network access, and sandbox_approval = false.

    Impact on a local skill. Work could locate the Agent Reach executable, read its installed skill instructions, and launch the program. Two read attempts in the affected conversation failed:

    • agent-reach read <public-post-url> encountered [WinError 10013] while opening a network connection, then PermissionError: [Errno 13] Permission denied while opening a lock file under %USERPROFILE%\.agent-reach\browser-locks\.
    • agent-reach twitter thread <public-post-url> also failed with PermissionError: [Errno 13] in the same lock directory. Neither attempt returned the post.

    Could the desktop team check how the first message determines the effective permission profile and whether the composer hides the control based on that choice? If this execution mode requires restricted access, showing the effective mode and the reason in the conversation would let users understand why installed skills fail. The execution-location selection was not independently verified in this reproduction.

    November 23 follow-up — saved run location and first-message routing

    The desktop app’s saved run-location preference on this PC was work-run-location-v1 = local, alongside the previously reported Full access selection. The local executor logged an active connection around the time the first message was sent. The desktop log then recorded the new conversation opening on a /c/… route. A repeat Agent Reach test on November 23 still failed with Permission denied when opening its lock file.

    Read-only inspection of the installed Windows build (UI 26.1117.41037, MSIX 26.1117.4957.0) identified a possible explanation. In the singleRunLocation branch, the client hides the location picker and chooses cloud when cloud access is allowed, even when the stored preference is local. The corresponding feature evaluation in the desktop cache was true. This is a cached value, not a trace of the exact decision taken on the original turn. Another user on the same build reported the same first-message transition in #62975.

    Could the desktop team confirm whether this rule was intended to override a saved Local preference for new personal Work conversations? If so, is there a supported way to start a new local Work conversation on this build, and could the composer show the effective run location before the user sends the first message?

  9. venditto commented on Nov 23, 2026

    @venditto

    In ChatGPT Work per Windows seleziono «Accesso completo», ma le nuove sessioni locali partono con permission_profile=managed e sandbox_mode=workspace-write. Ho verificato che il processo può leggere E:, ma il controllo del diritto di creare file restituisce Win32 5, «Accesso negato». Lo stesso controllo riesce nella cartella della chat su C:. Ho già riselezionato i permessi, aperto nuove chat, reinstallato l’app e riavviato Windows. Potete verificare perché la scelta «Accesso completo» non viene applicata alla sessione locale e indicarmi se esiste una versione che corregge il problema?

  10. moxuan-HJCX commented on Nov 27, 2026

    @moxuan-HJCX

    Additional Windows ChatGPT Work observation: the permission picker is missing in one conversation but present in another on the same machine.

    • Affected conversation: the composer shows the “+” button and model selector, but no permission label or menu. The session reports a restricted managed filesystem profile, sandbox_mode=workspace-write, and sandbox escalation approval disabled. Reading a folder outside the writable workspace on D: succeeds. The folder is outside the writable roots reported by the session.
    • Comparison conversation: the permission menu is visible and shows “Full access” selected. This is a separate conversation. The selected setting there does not establish that Full access was ever selected in the affected conversation.

    Expected: the affected conversation should show its effective permission mode. If the mode cannot be changed from that composer, the UI should explain why the control is unavailable.

    The exact desktop build and the point at which the control became unavailable were not verified.

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-serverbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions