Repository navigation
Description
What version of the Codex App are you using?
The app update-check tool reports 26.1007.71326, build20398, prod, up_to_date. The Windows AppX resource path reports OpenAI.Codex_26.1007.9446.0_x64. These are separate observed version sources, not a claim that the About dialog was inspected. The package's bundled codex.exe reports codex-cli0.162.0-alpha.17.2.
What subscription do you have?
Not collected for this report.
What platform is your computer?
Windows11,25H2, build26200.9711, x64. Incident observed2026-10-15.
What issue are you seeing?
In a workspace-write desktop chat, request_permissions returned all21 requested exact write targets with scope=turn and network=null. One target was a new JSON admission file outside the original writable workspace. The immediately following sandboxed Node write to that exact target failed before any application activation:
EPERM: operation not permitted, open 'C:\Users<user>\Documents<project-control>\state\admission.json'
The target above is redacted; the real target was absent and its parent directory existed. A read-only byte/string and Windows normalization check independently verified that the actual requested, returned and attempted target paths matched. This was not a doubled-backslash or different-path discrepancy.
What steps reproduced the incident?
This is the recorded incident sequence, not a claim that a new standalone minimal reproduction was executed:
- Prepare immutable synthetic-only output and enumerate exact external write targets, including the new admission JSON. No network or whole-directory grant was requested.
- Call request_permissions for those exact targets. Observe all targets returned as granted, scope=turn.
- Invoke the bundled Node runtime through the normal shell tool. Its first external operation is fs.writeFileSync(target, exactPreparedBytes, {flag:'wx'}).
- Observe EPERM before the application workspace, consumer or activation receipt is created.
- Earlier copyFileSync and direct-byte variants had failed. Fully quit and reopen the desktop app; verify new application process identities, then request the exact permissions anew.
- Execute one post-restart activation attempt. The same first exact-file write still fails EPERM. No further application activation write was retried.
Existing workspace-local file writes and read-only diagnostics work. The failed exact external admission target remains absent. The approved grant response and individual error records are retained locally; no raw conversation or private files are attached.
What is the expected behavior?
The runtime should enforce a granted exact-file permission for creation of that file, or identify the higher-priority effective restriction that prevents it. Please provide a supported way to diagnose the grant-to-command permission binding and a version-compatible recovery path that preserves managed isolation.
Additional information
The declared local Windows setting is sandbox="elevated". This does not establish the incident-time effective backend. Effective developer instructions were workspace-write with granular request_permissions=true and sandbox_approval=false. No require_escalated or Full Access recovery was used.
Sandbox logs contain profile read-attributes ACE/sharing error32 and a hide-users SetFileAttributes access-denied5 warning. These warnings also occur around successful read-only commands and do not name the failing target; their causal relationship is UNKNOWN. A narrow Defender status check could not load its module, so Controlled Folder Access was neither established nor excluded.
The app reports no eligible update. Current official Windows sandbox documentation describes retrying legacy elevated setup and shows codex sandbox setup .... The installed bundled CLI's sandbox --help lists uninstall and help but does not list setup. We did not invoke an undocumented helper, uninstall the sandbox or assume a hidden command exists. Please identify the supported repair entry point for this desktop build if re-provisioning is appropriate.
Feedback was successfully submitted through the app. Its identifier can be provided privately; it is intentionally omitted here.
Related reports found during duplicate checking: #52593 concerns native realpath, not this first-file creation failure; #53292 concerns write_stdin after grants. Neither establishes a common cause or a confirmed duplicate. No verified fix was identified in the inspected material.
We are not requesting a sandbox bypass, weaker sandbox mode, security-policy downgrade, moved/shadow writer or execution of the denied application operation outside the sandbox. No product source, account data, patient documents, raw logs or .sandbox-secrets are attached. No security settings were changed during this investigation.
Requested maintainer guidance and acceptance
- How can this installed desktop build expose the effective, redacted permissions delivered to a command after request_permissions returns?
- Is exact-file creation outside the base workspace supported by this mechanism? If not, what is the supported least-privilege path?
- Is there a confirmed fix or supported same-boundary sandbox repair for this build?
After a supported correction and fresh exact permission/admission validation, acceptance is one bounded write to the same authorized admission target followed by hash readback. Successful feedback, setup startup or changed metadata alone will not be reported as corrected access. Model execution and clinical/real-data testing remain outside this diagnostic report.
Activity
danohlinka commentedon Oct 16, 2026
A related fresh observation: a distinct synthetic-only technical task, unrelated to installing/rerunning the earlier model-evaluation package, received a session-scoped request_permissions grant for an exact set of 21 paths. Its first actual required new admission file was then attempted once using the standard apply_patch tool.
apply_patch returned:
Failed to write file <approved-new-admission-path>.No errno was exposed by apply_patch; I am not claiming that this new error is EPERM. EPERM was observed in the earlier Node-based attempts described in the original issue.
Readback confirmed that the new target, activation receipt and product workspace do not exist. All nine pre-pinned shared control files are byte-identical. No follow-up attempt to the denied admission operation was made using another tool, directory or executor, and no ACL, security, sandbox or full-access setting was changed. The task remains unactivated.
Could you advise a supported, build-compatible correction for the effective exact-path permission binding, while preserving the existing filesystem/network boundary? A returned grant is not resulting in successful creation of the actual newly approved file. We can provide narrowly redacted diagnostics if you specify which fields are needed.
No attachments, patient data, prompts, credentials or local personal paths are included in this update.