Repository navigation
Description
Description
After the latest ChatGPT Desktop update, every chat (new threads and resuming existing ones) fails immediately with:
Fatal error: Failed to initialize session: failed to load AGENTS.md instructions for environment `local`:
fs sandbox helper failed with status exit code: 1: windows sandbox failed: elevated Windows sandbox requires effective `:root` read access
This affects 100% of sessions — the app is completely unusable for local work.
Environment
- OS: Windows 11 (10.0.26200)
- App: ChatGPT Desktop, package
OpenAI.ChatGPT-Desktop_1.2026.133.0_x64(MSIX/Store-installed) - App build:
26.911.61220(from configBROWSER_USE_CODEX_APP_VERSION) - Codex CLI bundled/installed alongside:
codex-cli 0.139.0(update to 0.154.0 available but not yet applied) [windows] sandbox = "elevated"inconfig.toml
What I already tried (none fixed it)
-
Switched
[windows] sandboxto"unelevated"→ different, more specific failure:windows unelevated restricted-token sandbox cannot enforce split filesystem read restrictions directly; refusing to run unsandboxedThis is because my
default_permissions = "shift_ai_safe"profile uses deny-read overlays (e.g..env,.ssh/**= "none" while other paths are readable/writable), which the unelevated restricted-token backend can't enforce. Reverted to"elevated". -
Relaunched the app via "Run as administrator" → identical original error.
-
Windows Settings → Apps → ChatGPT → Repair → identical original error.
-
Windows Settings → Apps → ChatGPT → Reset → app data was reset per the OS, but the app reopened already logged in with all previous state intact (project/thread list, etc.) — meaning the actual persistent state lives outside the MSIX package container (in
%USERPROFILE%\.codex\) and "Reset" doesn't touch it. Error unchanged.
Diagnostic evidence from %USERPROFILE%\.codex\.sandbox\
setup_marker.jsonshows the sandbox principals were created back on 2026-05-24, but their granted roots are empty:{ "version": 5, "offline_username": "CodexSandboxOffline", "online_username": "CodexSandboxOnline", "created_at": "2026-05-24T10:53:14.158560+00:00", "proxy_ports": [], "allow_local_binding": false, "read_roots": [], "write_roots": [] }deny_read_acl_state.jsonshows no registered principals:{ "principals": {} }sandbox.<today>.logshows--codex-run-as-fs-helperbeing spawned and retried in a tight ~2s loop, presumably failing and retrying, for every attempted session.
This looks like the sandbox reprovisioning step (populating read_roots/write_roots and the deny-read ACL principal registry) silently failed after the update, and there's no user-facing repair path that re-triggers it — elevated relaunch, OS-level app repair, and OS-level app reset all leave this state untouched.
Related issues (same bug family, not exact duplicates)
- Windows elevated sandbox does not recursively grant usable ACLs to existing workspace files #15165 – elevated sandbox does not recursively grant usable ACLs to existing workspace files
- Windows sandbox setup fails applying deny ACE to E: repository .agents directory. #46062 – sandbox setup fails applying deny ACE to a repo directory
- Codex Desktop Windows sandbox setup fails on NTFS ACL / SetNamedSecurityInfoW error 5, then agents fall back to unsandboxed PowerShell escalation #31620 – setup fails on NTFS ACL / SetNamedSecurityInfoW error 5, falls back to unsandboxed PowerShell
- Windows sandbox can leave workspace owned by CodexSandboxOnline, then setup refresh fails with SetNamedSecurityInfoW 5 #29867 – workspace left owned by CodexSandboxOnline, setup refresh fails
Ask
- A supported way to force full sandbox re-provisioning (recreate/repopulate
read_roots/write_rootsand the deny-read ACL registry) without manually touching files under.codex\.sandbox\, since neither app Repair nor Reset reaches this state.
Activity
Chappy-des commentedon Sep 17, 2026
Additional context: likely correlated with the v0.154.0 Windows sandbox provisioning rewrite
I cross-checked the timing against the release history via the GitHub API and found a strong correlation worth noting.
Release
rust-v0.154.0(published 2026-09-09) shipped a large rewrite of exactly this subsystem, per its own changelog:Right after that release, there's a visible cluster of fresh, closely related reports:
For context, the broader bug class (Windows elevated sandbox ACL/permission failures) isn't new — it goes back to at least #10601 (2026-02-04) with a steady trickle of similar reports every month since. So this doesn't look like a brand-new category of bug, but the v0.154.0 provisioning rewrite looks like a plausible trigger for a regression/resurfacing right around when my (and other users') sessions broke.
In my case specifically,
setup_marker.jsonshowsread_roots: []/write_roots: []despite the sandbox principals existing since 2026-05-24 — consistent with the new provisioning protocol failing to populate roots for an account that was originally set up under the old mechanism.Chappy-des commentedon Sep 17, 2026
Additional finding: forcing fresh provisioning also fails, and never even reaches UAC
Since Repair, Reset, and a full Uninstall/Reinstall (same package version) all left the app in the identical broken state, I tried forcing a completely fresh sandbox provisioning by closing the app and renaming
%USERPROFILE%\.codex\.sandboxout of the way (not deleting — just moved to.sandbox.bak-20260917) before relaunching.Result: the app correctly detected this and surfaced a new, different UI state — a banner reading "続けるには、Windows のセットアップを完了してください" ("To continue, please complete Windows setup") with a "続ける" (Continue) button, which is progress compared to before (it recognized the marker was gone).
However, clicking "続ける" (and the follow-up "セットアップを再試行" / "Retry setup" button) never completes. The banner changes to "Windows のセットアップが完了しませんでした / セットアップは停止済みです" ("Windows setup did not complete / setup has stopped"), and retrying repeatedly does not progress further.
Critically: no UAC elevation prompt ever appears at any point in this flow. Since elevated sandbox setup should need to create/configure the
CodexSandboxOffline/CodexSandboxOnlinelocal accounts and grant ACLs (privileged operations), I'd expect a UAC prompt somewhere in this sequence. Its complete absence suggests the fresh-provisioning code path is failing/exiting before it ever gets to the point of requesting elevation — not a user permission or "user declined UAC" issue.The new sandbox log for this attempt only shows, repeated in a tight loop:
with no further detail about what happens after that detection, and no user-creation/ACL-grant log lines like the original
setup_marker.json(created 2026-05-24, presumably by an older app version) would imply once existed.This suggests the regression isn't limited to refreshing an existing sandbox's ACLs (as most of the linked issues describe) — the initial/fresh provisioning path introduced in the v0.154.0 rewrite appears to be broken too, at least in this environment (package
OpenAI.ChatGPT-Desktop_1.2026.133.0_x64, MSIX/Store-installed on Windows 11).At this point I've exhausted every avenue available to me as a user (config toggle, elevated relaunch, OS-level repair, OS-level reset, full uninstall/reinstall, and forcing fresh provisioning by clearing local sandbox state) — all converge on the same dead end. Flagging this for visibility in case it helps narrow down where in the new provisioning flow this breaks.
nemesiswes commentedon Sep 17, 2026
Yep just ran into this exact issue. Codex was working perfectly last night, actually today at 3ish AM even. Now it has this error on every past conversation. Hopefully they see this and get it fixed soon.
Its definitly the update because it was released yesterday and I didn't install it until today.
Powered by Codex & OWL
Version 26.911.61220
Released Sep 16, 2026
nemesiswes commentedon Sep 18, 2026
Found a fix for me at least. My config.toml had root set to deny
After changing that to ":root" = "read"
then only allowing writes to certain folders. Its now working again.
Chappy-des commentedon Sep 18, 2026
Thanks @nemesiswes — your fix worked for me too!
For anyone else hitting this: I combined it with rolling back
.sandboxto apre-repair-attempt state, since my earlier attempt at forcing fresh
provisioning (renaming
.sandbox→.sandbox.bak-20260917, described above)never completed and left a half-provisioned
.sandboxbehind.What worked:
.sandboxfrom the.sandbox.bak-20260917backup (moved thehalf-finished fresh-provisioning attempt aside first, just in case).
":root" = "read"to my custom permission profile's[permissions.<profile>.filesystem]section inconfig.toml(I usedefault_permissionswith a named profile instead ofsandbox_mode, sothe section path is slightly different from a stock config, but same fix).
Both new threads and resuming existing ones work again after that. Really
appreciate you sharing this — saved me from being stuck indefinitely.
nemesiswes commentedon Sep 18, 2026
Glad it fixed it. I was getting tired of waiting and even had another update from codex. The update didn't fix it so I decided to just ask the site ChatGPT about it and it recommended checking my config.toml. I gave it my configs and it suggested testing that fix. I did have to change my configs a bit since its now using ":root" = "read" instead of ":root" = "deny". But its been working great so far.
So AI fixed the AI, lmao.
Nexus-nimdA commentedon Sep 18, 2026
The problem with that fix is it gives access back to reading every folder on the drive outside of its sandbox. So, while it may not give errors it's not really a true fix to the state it was when :read was set to deny forcing it to only read inside its sandboxed environment. Still would like to see a fix that let's us actually sandbox it's read permission how we all had it working before this update 😬
nemesiswes commentedon Sep 18, 2026
Yea that's what ChatGPT was saying when it suggested the fix. But I was ok with that for now. I am much more paranoid about write permissions and making sure those are locked down to only the project folder. I would rather see a true fix too.
fa7373 commentedon Sep 21, 2026
this problem has not been fixed yet, I hope there will be a real fix in the near future.
slov89 commentedon Sep 22, 2026
I'm still having this issue, app completely unusable
tetthy2004 commentedon Sep 22, 2026
Additional data point for this issue, from a different Windows machine hitting the exact same symptom.
Confirmed root cause chain on this machine:
setup_marker.jsonhadread_roots: []/write_roots: [], matching OP.setup refresh: processed 3 write roots; errors=[]repeated in the log), then broke with no error logged at the transition.sandbox setup required: sandbox setup marker missing or incompatiblecontinuously via the fs-helper process, no UAC prompt, no provisioning attempt logged..sandbox/.sandbox-secrets/.sandbox-bin(confirmed viaCodexSandboxServiceevent log), and the app correctly detected "setup required" on next launch — but the retry consistently fails with "Windows のセットアップが完了しませんでした" (Windows setup did not complete) and no UAC prompt ever appears.PerAppRuntimeBroker(CLSID{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}, APPID{15C20B67-12E7-4BB6-92BB-7AFF07997402}) is denied to theOpenAI.Codex_26.915.4065.0_x64__2p2nqsd0c76g0app container.LaunchPermissionsecurity descriptor:ALL APPLICATION PACKAGEShas AccessMask0xB(Local Launch + Remote Launch + Remote Activation) — missing bit0x4(Local Activation).NT SERVICE\TrustedInstallerwith a System-integrity mandatory label; even an elevated Administrator (withSeTakeOwnershipPrivilege/SeRestorePrivilegeenabled) gets access denied opening it withTakeOwnershiprights. Fixing it would require a true SYSTEM-context process, which felt too invasive to do on a personal machine, so I stopped there.This suggests the sandbox's first-time-setup flow depends on activating
PerAppRuntimeBrokervia DCOM/LRPC (presumably to invoke the UAC consent/account-creation broker), and on this machine that activation is silently denied before any UI appears — so setup fails instantly with no prompt, surfaced only as the generic "elevated Windows sandbox requires effective:rootread access". It'd help if the setup flow surfaced this specific DCOM denial rather than the generic message.Windows 11 Pro 10.0.22621, Codex app 26.915.4065.0 (MSIX via Microsoft Store).
mustafasahinphoto commentedon Sep 23, 2026
Additional data point: minimal reproduction on a clean machine —
":root" = "deny"alone is sufficientSame symptom here, and still failing after two updates (26.915.4065.0 → 26.917.6896.0).
I reduced it to a single config key with an A/B test on a second, previously untouched machine: no prior ChatGPT/Codex install, no
%USERPROFILE%\.codexdirectory, nothing imported during onboarding. Same build, same[windows] sandbox = "elevated".Test A — stock configuration. Fresh install, no
default_permissionskey at all. Opened a newly created empty folder as the project and sent a one-word greeting. Works — the model answers normally.Test B — one key added. With the app closed,
default_permissions = "test_deny"was prepended and the profile below appended. Nothing else in the file was touched:Same app, same folder, same one-word message → fails with the identical error:
So
":root" = "deny"on its own reproduces this from scratch. There is no tool call and no file access involved — a one-word message never reaches the model. The profile above is built directly from the shape the permissions documentation recommends for least privilege.Two negative results that may save triage time
Empty
read_roots/write_rootsinsetup_marker.jsonis not the fault signal. My affected machine has them empty — but so does the clean machine where Test A works, withcreated_atfrom the same day and provisioning done by the fresh install itself. Empty arrays appear to be the normal resting state of that file, so it should not be read as evidence of failed provisioning.Machine-local causes are ruled out by the clean-machine reproduction: accumulated
.codexstate, sandbox provisioning history, working directory, drive-root paths, profile size, third-party antivirus and Windows Smart App Control were all eliminated as a group. The DCOM /PerAppRuntimeBrokerlead reported earlier in this thread is not needed to explain the failure either.The documented fallback does not help.
[windows] sandbox = "unelevated"refuses the same profile outright:Refusing is the correct behaviour — better than silently running unsandboxed — but it means a deny-by-default profile has no working sandbox mode on Windows in this build.
On the
":root" = "read"workaround posted earlier in this thread: it works here too, with exactly the caveat another commenter already raised. It restores read access to the entire machine, which is the opposite of what a deny-by-default profile exists for. Writes do stay confined to the granted roots, so it is a usable stopgap, but it is a concession rather than a fix.Environment
OpenAI.Codex26.917.6896.0 (MSIX / Microsoft Store) — also reproduced on 26.915.4065.0[windows] sandbox = "elevated"on both machines0.154.0-alpha.6.2→0.155.0-alpha.9.2Happy to run further tests on the clean machine if anything specific would help — it is isolated, so destructive or experimental steps are fine there.
fpeguero commentedon Sep 24, 2026
Root cause found: sandbox setup helper fails to launch — provisioning payload exceeds Windows command-line limit (os error 206)
I hit the same
elevated Windows sandbox requires effective ':root' read access (code -32603)error and traced the underlying cause via~/.codex/.sandbox/sandbox.<date>.log.Environment:
@openai/codex),[windows] sandbox = "elevated"Causal chain (with log evidence):
The sandbox setup helper never runs. When a setup refresh is triggered, codex tries to spawn it with an ~812 KB payload on the command line, which exceeds the Windows
CreateProcesslimit (~32,767 chars):Because provisioning silently fails,
setup_marker.jsonkeeps"read_roots": []and"write_roots": [](matching the OP's diagnostics), and any session in a folder containingAGENTS.mdfails bootstrap with the:root read accesserror — the fs sandbox helper is only invoked to readAGENTS.md, which is why folders without one start fine.Things that do NOT fix it (tested):
~/.codex/.sandboxto force re-provisioning — it regenerates with empty roots again (payload bug persists)RESTRICTEDread on the drive root) — the check fails because provisioning never ran, not because of actual ACLswindows.sandbox = "unelevated"— refuses: "cannot enforce split filesystem read restrictions directly"Workaround:
codex -s danger-full-access(skips the fs sandbox wrapper), at the obvious cost of losing the filesystem jail.Suggested fix: pass the provisioning payload to
codex-windows-sandbox-setup.exevia a temp file or stdin instead of the command line.syyysssuui commentedon Sep 28, 2026
Additional reproduction case and recovery workaround
I encountered the same error on Windows 11 with Codex Desktop:
In my case, both an existing thread and starting/resuming local work were affected.
My relevant configuration was approximately:
There were also a few explicitly allowed local paths, but there was no explicit
":root" = "read"rule.Unlike some related reports, my custom profile did not explicitly contain:
However, the effective permission set still did not provide
:rootread access, and the Windows elevated sandbox rejected the session.Workaround that recovered the app
I changed only:
to:
After saving
config.toml, Codex immediately started accepting commands again.Notably, I did not restart Codex Desktop. The permission change appeared to be picked up dynamically, and the already-open thread became usable again.
Environment details:
26.924.22138approval_policy = "on-request"[windows] sandbox = "elevated"This suggests that a custom permission profile can trigger the effective
:rootread-access failure even without an explicit":root" = "deny"rule, and that switching the active default profile to:workspacecan be a recovery workaround.This may also be related to #46312.
日本語メモ / Japanese note
日本語利用者向けの補足です。
私の環境では、制限付きの独自 permission profile を
default_permissionsに指定している状態で、が発生し、Codexでローカル作業を開始・再開できなくなりました。
独自profileには
":root" = "deny"を明示的には設定していませんでした。config.tomlのを
へ変更したところ、Codex Desktopを再起動せず、その場でコマンド受付が復旧しました。
同様の症状が出た方には、
default_permissionsとカスタムpermission profileの確認が一つの切り分け方法になると思います。JenoBoka commentedon Oct 5, 2026
Hello guys, do we have any updates on this, as I am frustrated of this problem.
the whole point of using Codex and elevated sandboxing is to deny read access to the whole machine.
Nexus-nimdA commentedon Oct 9, 2026
This just broke entirely for me again even with the workarounds today with the update - anyone else ?