Skip to content

Windows sandbox initialization fails with helper_unknown_error: setup refresh had errors after upgrading from 0.143.x to 0.144.5 #33964

Open

Description

@yy80832476

What version of Codex CLI is running?

0.1445

What subscription do you have?

pro

Which model were you using?

No response

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

Environment

  • OS: Windows 11 x64
  • Codex CLI: 0.144.5
  • Installed via:
    npm install -g @openai/codex
  • Node.js: v24.x

Summary

After upgrading from Codex CLI 0.143.x to 0.144.5, Windows sandbox initialization consistently fails.

The same project works correctly with 0.143.x, but fails every time with 0.144.5.

The CLI falls back to read-only mode because the filesystem sandbox cannot be initialized.


Error

Windows filesystem sandbox initialization failed

helper_unknown_error:
setup refresh had errors

Sandbox log:

granting write ACE to <project_root>

write ACE grant failed:
SetNamedSecurityInfoW failed: 5

Expected behavior

Sandbox initializes successfully and the project is writable.


Actual behavior

Sandbox initialization fails.

Codex falls back to read-only mode.


Reproduction

  1. Install Codex CLI 0.144.5 via npm.
  2. Open an existing Git project that previously worked with 0.143.x.
  3. Run:
codex

Sandbox initialization fails immediately.

Downgrading to 0.143.x makes the problem disappear without changing the project.


Investigation performed

I checked the following:

  • Helper starts successfully.
  • CodexSandboxUsers ACL entries exist.
  • Project root has no DENY ACE.
  • No junctions / symbolic links / reparse points exist.
  • Git repository is normal.
  • The failure occurs during ACL refresh.

The project contains DENY ACEs only under directories managed by the sandbox, such as:

.git
.agents

These appear to be sandbox-related ACL entries rather than manually configured permissions.


Additional observations

The sandbox log shows:

granting write ACE ...

SetNamedSecurityInfoW failed: 5

This suggests the failure happens during the ACL refresh step introduced in 0.144.x.

Since the identical project works correctly with 0.143.x, this appears to be a regression in the Windows sandbox implementation rather than a project permission issue.


Regression

Version Result
0.143.x ✅ Works normally
0.144.5 ❌ Sandbox initialization fails

What steps can reproduce the bug?

Environment

  • OS: Windows 11 x64
  • Codex CLI: 0.144.5
  • Installed via:
    npm install -g @openai/codex
  • Node.js: v24.x

Summary

After upgrading from Codex CLI 0.143.x to 0.144.5, Windows sandbox initialization consistently fails.

The same project works correctly with 0.143.x, but fails every time with 0.144.5.

The CLI falls back to read-only mode because the filesystem sandbox cannot be initialized.


Error

Windows filesystem sandbox initialization failed

helper_unknown_error:
setup refresh had errors

Sandbox log:

granting write ACE to <project_root>

write ACE grant failed:
SetNamedSecurityInfoW failed: 5

Expected behavior

Sandbox initializes successfully and the project is writable.


Actual behavior

Sandbox initialization fails.

Codex falls back to read-only mode.


Reproduction

  1. Install Codex CLI 0.144.5 via npm.
  2. Open an existing Git project that previously worked with 0.143.x.
  3. Run:
codex

Sandbox initialization fails immediately.

Downgrading to 0.143.x makes the problem disappear without changing the project.


Investigation performed

I checked the following:

  • Helper starts successfully.
  • CodexSandboxUsers ACL entries exist.
  • Project root has no DENY ACE.
  • No junctions / symbolic links / reparse points exist.
  • Git repository is normal.
  • The failure occurs during ACL refresh.

The project contains DENY ACEs only under directories managed by the sandbox, such as:

.git
.agents

These appear to be sandbox-related ACL entries rather than manually configured permissions.


Additional observations

The sandbox log shows:

granting write ACE ...

SetNamedSecurityInfoW failed: 5

This suggests the failure happens during the ACL refresh step introduced in 0.144.x.

Since the identical project works correctly with 0.143.x, this appears to be a regression in the Windows sandbox implementation rather than a project permission issue.


Regression

Version Result
0.143.x ✅ Works normally
0.144.5 ❌ Sandbox initialization fails

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Jul 18, 2026
  2. added
    CLI
    windows-os
    sandbox
    on Jul 18, 2026
  3. github-actions commented on Jul 18, 2026

    @github-actions
    Contributor
  4. TheThouZands commented on Jul 19, 2026

    @TheThouZands

    ChatGPT codex app has the same issue in Version 26.715.31925, happens on selecting full access

    also while inside a project, ask, and auto approve actions buttons do not work, sticking only to workspace option, only full access works, and is the one causing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions