Repository navigation
Description
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
- In the composer permission selector, select Full access ("可不受限制地访问互联网和你电脑上的任何文件").
- Start a new chat and ask the agent to create a folder on the Desktop.
- The agent runs:
$desktopPath = [Environment]::GetFolderPath('Desktop')
$targetPath = Join-Path $desktopPath 'test'
New-Item -ItemType Directory -Path $targetPath -Force- 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-accessruns unsandboxed asadministratorand writes the Desktop successfully. - Enterprise/MDM policy —
managed filesystem source: none;C:\ProgramData\OpenAI\Codexdoes not exist;Get-AppxPackage-independent inspection shows no requirements.toml anywhere. - Project-level config overriding permissions —
codex doctorreports the project.codex/config.tomlcontributes only one ignored key (notify). - Stale client version — behaviour is identical on
26.1013.3656.0(CLI 0.163.0-alpha.10.2) and26.1021.2667.0(CLI 0.164.0-alpha.11.1). - config.toml leftovers — removing
sandbox_mode/[sandbox_workspace_write]/default_permissions(so thatcodex doctorreports a clean default stack) does not change the behaviour; the client still sendsmanaged. - Granting
CodexSandboxUsersModify on the Desktop — stillAccess denied, because the sandboxed process runs under a restricted token / integrity level, so group DACL grants do not apply. unelevatedsandbox backend — also denied (whoamishows 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
github-actions commentedon Oct 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
5zHao commentedon Oct 24, 2026
I’m experiencing a similar issue in the Windows ChatGPT desktop app.
Here is the behavior I observed:
workspace-write, rather than Full access.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-writeafter 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.
igorzep commentedon Oct 24, 2026
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:
Observed sequence:
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:
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.
Coslnus commentedon Nov 10, 2026
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 withWinError 10013when connecting to the configured Windows proxy at127.0.0.1:10809./debug-configand/statusboth show “No commands.”I found no local
requirements.tomlormanaged_config.toml. Enablingrespect_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
managedprofile to new sessions while older sessions continue to work?Oblivious0214 commentedon Nov 13, 2026
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.
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.
qinhaiyang699-maker commentedon Nov 15, 2026
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
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
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.
Asylum831 commentedon Nov 21, 2026
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.
Saved setting and effective permissions. The desktop app’s persisted local-host selection records
agentMode = full-access. The top-levelsandbox_modein the local Codex configuration is alsodanger-full-access. The affected conversation reports a managed, restricted filesystem profile,workspace-write, restricted network access, andsandbox_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, thenPermissionError: [Errno 13] Permission deniedwhile opening a lock file under%USERPROFILE%\.agent-reach\browser-locks\.agent-reach twitter thread <public-post-url>also failed withPermissionError: [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 withPermission deniedwhen opening its lock file.Read-only inspection of the installed Windows build (UI
26.1117.41037, MSIX26.1117.4957.0) identified a possible explanation. In thesingleRunLocationbranch, 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 wastrue. 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?
venditto commentedon Nov 23, 2026
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?
moxuan-HJCX commentedon Nov 27, 2026
Additional Windows ChatGPT Work observation: the permission picker is missing in one conversation but present in another on the same machine.
managedfilesystem 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.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.