You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex App for Windows times out after submitting a prompt when the enterprise requirements policy contains permissions.filesystem.deny_read. #40831
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Our report #41809 was marked as a duplicate of this issue, so adding the root-cause analysis here — it explains this hang and several sibling reports.
Mechanism (code refs in #41809): Windows ACLs can't express globs, so every deny_read glob is snapshot-expanded by scanning the filesystem (windows-sandbox-rs/src/deny_read_resolver.rs); every concrete match is then (a) JSON-serialized into a single argv element for the sandbox wrapper and (b) given an individual deny ACE. Nothing bounds the match count, so one defect produces three symptoms:
This issue's hang:C:/Users/*/.ssh/** has a wildcard directory prefix, so the scan root becomes C:/Users — the snapshot scan walks every user profile on every sandboxed operation, presenting as a silent hang/timeout.
Why per-file expansion is unnecessary: deny ACEs are applied with CONTAINER_INHERIT_ACE | OBJECT_INHERIT_ACE, so an ACE on a directory already covers its whole subtree — dir/** could resolve to the directory's immediate children with no scan at all, and any match beneath an already-denied directory is redundant.
Verified workaround for enterprise admins: in permissions.filesystem.deny_read, use exact directory paths instead of recursive globs — e.g. "~/.ssh" instead of "C:/Users/*/.ssh/**" (also avoids the wildcard-prefix scan of C:\Users), "~/AppData/Local/Google/Chrome" instead of .../Chrome/**. Exact roots pass through without expansion, and a directory deny covers its subtree. After redeploying the policy, sessions start normally.
@mantasaudickas, thanks for your explanation.
If I want to deny reading .env files, like .env/.env.developement/.env.production, can I add [".env", ".env.*"] to the requirements file?
@mantasaudickas, thanks for your explanation. If I want to deny reading .env files, like .env/.env.developement/.env.production, can I add [".env", ".env.*"] to the requirements file?
In my opinion - it should work, but I am not an expert here.. :)
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Aug 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
mantasaudickas commentedon Aug 31, 2026
Our report #41809 was marked as a duplicate of this issue, so adding the root-cause analysis here — it explains this hang and several sibling reports.
Mechanism (code refs in #41809): Windows ACLs can't express globs, so every
deny_readglob is snapshot-expanded by scanning the filesystem (windows-sandbox-rs/src/deny_read_resolver.rs); every concrete match is then (a) JSON-serialized into a single argv element for the sandbox wrapper and (b) given an individual deny ACE. Nothing bounds the match count, so one defect produces three symptoms:C:/Users/*/.ssh/**has a wildcard directory prefix, so the scan root becomesC:/Users— the snapshot scan walks every user profile on every sandboxed operation, presenting as a silent hang/timeout.os error 206at thread start (Windows: thread/start fails with os error 206 ("failed to load AGENTS.md instructions") - deny-read glob expansion overflows the sandbox helper command line #41809): when a glob matches a big tree (a Chrome profile on our machine: 23,603 matches ≈ 3.5 MB of path text), the serialized deny list overflows the 32,767-charCreateProcessWcommand-line limit; under managed profiles that spawn failure is fatal to session creation.apply deny-read ACLsfailures /TokenDefaultDacl1344 (Windows sandbox fails with helper_unknown_error: apply deny-read ACLs in workspace-write mode #36087, Windows: sandbox broker wedges conversation thread across client restarts (deny-read ACLs -> silent hangs, spinning codex-windows-sandbox-setup); evidence of ACE accumulation (TokenDefaultDacl error 1344) #34842): the same expansion applies one deny ACE per matched file, so ACL work scales with matched-file count and accumulates/overflows.Why per-file expansion is unnecessary: deny ACEs are applied with
CONTAINER_INHERIT_ACE | OBJECT_INHERIT_ACE, so an ACE on a directory already covers its whole subtree —dir/**could resolve to the directory's immediate children with no scan at all, and any match beneath an already-denied directory is redundant.Verified workaround for enterprise admins: in
permissions.filesystem.deny_read, use exact directory paths instead of recursive globs — e.g."~/.ssh"instead of"C:/Users/*/.ssh/**"(also avoids the wildcard-prefix scan ofC:\Users),"~/AppData/Local/Google/Chrome"instead of.../Chrome/**. Exact roots pass through without expansion, and a directory deny covers its subtree. After redeploying the policy, sessions start normally.MicyToy commentedon Sep 2, 2026
@mantasaudickas, thanks for your explanation.
If I want to deny reading
.envfiles, like.env/.env.developement/.env.production, can I add[".env", ".env.*"]to the requirements file?mantasaudickas commentedon Sep 2, 2026
In my opinion - it should work, but I am not an expert here.. :)
MicyToy commentedon Oct 29, 2026
It fails on Windows even when I added
glob_scan_max_depth.Will the glob directory be supported for
permissions.filesystem.deny_readon Windows?