Repository navigation
Description
Codex App version
Current: 26.820.10647.0. Earlier on the same day: 26.820.7780.0.
Versions were identified from the WindowsApps package paths recorded in the local sandbox log, not from the About dialog.
The command-runner is 0.150.0-alpha.8. That same runner version appears in logs from August 26 as well as before and after today's app update, so this report does not establish that the runner version changed today.
Platform / environment
- Windows 10 Home 22H2, build 19045.6466, x64; Japanese locale.
- Windows-native execution, PowerShell;
[windows] sandbox = "elevated". - Desktop permission selection: Ask for approval; no Full Access.
- Node.js 24.19.0, a local TypeScript web application using esbuild/Wrangler.
- Project stored on the local C: drive under
C:\Users\<redacted-user>\Documents\Codex\<date>\<project>. - Subscription details are not included in this public report.
What issue are you seeing?
The Desktop app and its local command execution service start successfully. Commands can read the project and run its pure logic tests. However, enumerating the signed-in user's profile directory, C:\Users\<redacted-user>, fails inside the sandbox with EPERM.
This blocks local startup/bundling when esbuild tries to read an ancestor directory, even though the source file itself is readable. Current sandbox probes return:
workspace-read: OK
parent-directory-read: EPERM
A memory-only esbuild check (bundle: true, write: false, platform: "node", with an existing project TypeScript entry point) failed with:
Cannot read directory "../../../..": Access is denied.
Could not resolve "./lib/constraint-types.ts"
A local-server startup attempt also reported:
Cannot read directory "../../../../../..": Access is denied.
All 16 pure rule-engine tests pass. The server-dependent API/persistence tests cannot be rerun because local startup is blocked; this is not a claim that their assertions fail.
Timeline / evidence limitations
All times below are 2026-08-28, JST (UTC+09:00):
- 08:38: an existing local development verification note records successful build, API tests, HTTP response and persistence across a server restart. This is a saved earlier result, not a fresh replay of the old version or a raw trace attached here.
- 09:03:56: the sandbox log still records app package
26.820.7780.0. - 09:10:14: the sandbox log records package
26.820.10647.0. The user confirms updating Codex Desktop that morning. - 09:17: a local revalidation note records the build access-denied failure.
- Subsequent direct filesystem probes reproduce the profile-directory denial; restarting Desktop did not fix it.
This is a suspected update-related regression, not a confirmed causal attribution. We have not performed a rollback/A-B test and cannot assert that the app update was the only environmental change.
Minimal diagnostic reproduction on the affected installation
- Open the existing local project in Codex Desktop using Windows-native sandboxed execution / Ask for approval.
- Ask Codex to run the following with the available Node executable. Replace the redacted path with the actual signed-in Windows user's profile path. Do not derive it from the sandbox process's own home directory, which may differ.
node -e 'const fs = require("node:fs"); for (const [label, directory] of [["workspace", process.cwd()], ["parent-directory", "C:/Users/<redacted-user>"]]) { try { fs.readdirSync(directory); console.log(label + "-read: OK"); } catch (e) { console.log(label + "-read: " + e.code); process.exitCode = 1; } }'- The workspace read succeeds; the profile-directory read fails. This probe does not print directory contents or write files.
- Try the existing project's local build/startup. Ancestor-directory reads fail as above.
The normal signed-in user's PowerShell can inspect the profile directory's ACL. The same ACL inspection inside Codex is denied.
Troubleshooting already performed — important qualification
This installation is not an untouched reproduction:
- Additional task permission requests for workspace/temp access and profile/drive read access were attempted during troubleshooting; the directory-read failure persisted.
- After the failure was observed, the user tried a nonrecursive, non-inheriting
icacls /grantto addCodexSandboxUsers:(RX)on the profile directory itself only. No/T,(OI), or(CI)was used. The command ran for a prolonged time without completion and was interrupted with Ctrl+C. - A subsequent normal-PowerShell ACL display for that directory matched the earlier display: SYSTEM, Administrators and the signed-in user had full-control entries, and no CodexSandboxUsers entry appeared. This comparison is only for that directory; it is not a claim that every OS ACL was audited.
- Desktop was restarted; the denial still reproduces.
- No explicit sandbox reset/reinstallation, rollback, WindowsApps ownership/ACL modification, Full Access switch, or disabling of security software was performed. No app-code workaround was applied.
Current dated sandbox logs repeatedly contain:
setup refresh: processed 3 write roots (read roots delegated); errors=[]
read-acl-only mode: applying read ACLs
read ACL run completed
These messages coexist with the actual read denial. They do not establish that the requested directory received effective access.
Expected behavior / diagnostic request
The supported permission flow should provide the intended read access for local development, or identify exactly which policy/ACL prevents it and give a supported recovery path. A read-ACL completion message alone does not explain this failure.
Please advise which sanitized diagnostics would distinguish a Desktop permission-profile regression from pre-existing Windows ACL state. Full logs, private paths, project data and credentials have deliberately not been uploaded.
Related but not identical reports
- [Windows][26.820.7780.0] Local execution fails to start after updating Codex Desktop #41088: local execution fails during startup/handshake before commands run. In this case commands do run, and the failure is a specific directory read.
- Codex Windows App fails to start: bundled Codex CLI binary exists but cannot be executed #40867: the bundled Codex binary cannot execute. Here Codex and the command runner execute successfully.
These are context links, not an assertion of a shared root cause.
Activity
saji-jpg commentedon Aug 28, 2026
Update after another Codex Desktop update — 2026-08-28, 13:12 JST (UTC+09:00)
The user installed another offered update. The local sandbox log now records the app package version
26.825.3734.0(entries at 13:12:48 JST), whereas the original report was on26.820.10647.0. This version was identified from the package path in the execution log, not from the About dialog.The same read-only Node.js directory-enumeration probe was rerun in the existing workspace and sandbox. It still returns:
The second target is the signed-in Windows user's profile directory,
C:\Users\<redacted-user>, as in the original reproduction. No directory contents were printed.Scope of this retest: the directory-read denial reproduces after the update. The memory-only esbuild check, local-server startup and API/persistence tests were not rerun in this retest, so this comment does not claim a newly observed build failure on
26.825.3734.0.No additional permission-setting or ACL changes were made during this retest. The earlier troubleshooting history and evidence limitations in the original report still apply. The cause remains undetermined; this result does not by itself establish that the update caused the underlying ACL/access problem.
No raw logs, personal paths or project data are attached.
federiconoto commentedon Aug 28, 2026
Independent reproduction on Windows 11 x64 with Codex Desktop
26.825.3734.0.I can reproduce the same profile-boundary behavior described here, and in my case it also exposes two additional local-development blockers:
%USERPROFILE%\.docker\config.jsonfrom the Codex sandbox fails withAccess is denied.DOCKER_CONFIGto a minimal temporary config located inside the workspace, the Docker CLI itself starts correctly and prints the client version.docker versionsucceeds against Docker Desktop normally.No ACLs, ownership, WindowsApps permissions, Defender settings, Docker security settings, or WSL security settings were changed while reproducing this. The Docker config redirection was only used to isolate the first failure from the named-pipe failure.
So on this installation the observed boundary is:
This appears consistent with the profile-directory denial reported here, and the named-pipe behavior looks adjacent to #40923, where a sandboxed Desktop session also receives
EPERMconnecting to an existing Windows pipe.Happy to provide additional sanitized diagnostics if maintainers want a specific probe. No project data, credentials, or private logs are required to reproduce the behavior.
java20cn commentedon Aug 29, 2026
I can reproduce a closely related Windows sandbox permission regression after updating Codex to 26.825.32147 (released 2026-08-28). In my case, it also prevents Playwright/Chromium from running E2E tests.
Environment
1.
unelevatedsandbox causes build failuresAfter updating Codex, my Windows sandbox configuration was:
TypeScript/build commands that previously worked started failing with:
Changing the configuration to:
and completely restarting Codex fixed the build issue.
2. Playwright still cannot launch Chromium in
elevatedmodeWith:
the project builds successfully, but Playwright E2E tests cannot start Chromium.
Minimal reproduction from inside Codex:
Result:
The Chromium launch command already contains
--no-sandbox, so this does not appear to be Chromium's own sandbox failing after launch. The executable itself cannot be spawned.3. Direct executable test confirms the Codex sandbox difference
Running the Playwright Chromium executable directly inside Codex:
Inside Codex:
Running the exact same command in a normal PowerShell session outside Codex:
So the same executable on the same machine works normally outside the Codex sandbox but is denied inside it.
4. System-installed Chrome can start, but user profile access is denied
I also tested the system-installed Chrome from inside Codex:
Unlike the Playwright Chromium executable under
%LOCALAPPDATA%,chrome.exeitself can be started fromProgram Files.However, Chrome then fails when accessing its user profile under
%LOCALAPPDATA%:This suggests that the problem may be related to the Windows sandbox permissions/ACLs for the user's profile and
%LOCALAPPDATA%, rather than Playwright itself.5. Control test outside Codex
From a normal PowerShell session:
works correctly.
Summary:
This behavior started after updating to Codex 26.825.32147.
It appears that the current Windows sandbox prevents execution and/or required file access under the user's
%LOCALAPPDATA%, which breaks Playwright/Chromium-based E2E testing even with:The fact that the same Playwright installation and E2E tests work successfully from a normal PowerShell session on the same machine seems to isolate the problem to the Codex Windows sandbox.
Please let me know if there are any additional sandbox diagnostics or logs I can provide.
saji-jpg commentedon Aug 31, 2026
Additional retest of the session-scoped permission path on Codex Desktop
26.825.6671.0— 2026-08-31 JST.Important qualification: the literal
/sandbox-add-read-dirslash command was entered as a chat message, but this retest did not observe a command-success acknowledgement from that slash command itself. Instead, Codex issued an explicit session-scoped filesystem permission request for read access toC:\Users\<redacted-user>, and the permission system returned it as granted for the current session. Therefore, this comment does not claim that the documented slash command itself completed successfully.Requested permission:
C:\Users\<redacted-user>Immediately after the grant, the same read-only Node.js probe returned:
The second target was the same signed-in Windows user's profile directory used in the original reproduction. The probe printed no directory contents and wrote no files.
No Windows ACL, ownership, Defender, sandbox mode, or other system settings were changed during this retest. The build test was not rerun because its prerequisite parent/profile-directory read still failed.
The current Windows sandbox documentation says that after
/sandbox-add-read-dir <absolute path>succeeds, later sandbox commands in that session should be able to read the directory. This retest is not a literal proof that the slash-command path succeeded, but it does show that an accepted session-scoped read permission in the Desktop permission/control path did not become effective for the subsequent sandboxed command. This may help distinguish UI/control-plane acceptance from Windows sandbox policy or ACL propagation.No raw logs, personal paths, or project data are attached.
souzou-lab commentedon Oct 23, 2026
Adding a related Java case and a narrowly scoped diagnostic comparison. I am not claiming the same root cause or an update regression.
Environment from saved observations: native Windows build 22621, PowerShell 7.6.5, Codex desktop package-path version 26.1016.6573.0, command-runner filename 0.163.0-alpha.11. These are not new version probes or About-dialog checks. The session reports workspace-write, managed/restricted filesystem, and auto_review. Stored windows.sandbox is elevated; effective overrides are not fully known.
For a workspace at C:\Users<user><workspace>, the sandbox worker can read target JAR bytes and open the workspace directory with LIST_DIRECTORY, TRAVERSE, or READ_ATTRIBUTES individually. Those opens on the profile parent fail with error 5. Exact FindFirstFileW for the workspace component also fails. A fixed JDK 17 path-resolution/ZipFS.close operation encounters this boundary, blocking the Android build.
The saved sandbox token is non-elevated, medium integrity, with 6 restricting SIDs, no thread token, and SeChangeNotifyPrivilege enabled.
One explicitly authorized, auto-reviewed, read-only command outside the normal boundary successfully read the parent DACL and performed the exact lookup. Its exit code was 0. It was also non-elevated and medium integrity, but had a DIFFERENT user SID and no restricting SIDs. This is not a same-user, single-variable comparison.
The captured parent DACL has four allow ACEs and no explicit deny. None match the saved sandbox user, enabled groups, or restricting SIDs; an allow ACE matches the approved command's user. This is SID correspondence, not a kernel access-check trace or proof of the historical DACL.
The diagnostic made no ACL/config changes, token changes, wildcard enumeration, SDK relocation, or build retry. The ordinary sandbox is not repaired. No private paths, raw security descriptors, logs, or attachments are included.
Could maintainers advise a supported minimal repair, or an applicable fixed release, for this parent-component lookup? If directory access must change, please specify the target identity, required rights, inheritance, possible sibling-name visibility, and backup/revert procedure, accounting for both normal and restricting checks. If more backend/version information is essential, please identify a supported read-only way to obtain only that information.
We are not requesting Full Access, global home-directory read access, sandbox disablement, or an unreviewed ACL grant. If this belongs in a separate issue, please advise.