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
windows sandbox: setup refresh failed with status exit code: 1 #14409
What terminal emulator and version are you using (if applicable)?
VSCode, PowerShell
What issue are you seeing?
Codex continues to hit the Sandbox error while running reads and writes to project directories at C:\ActiveWorkspace\EV Conversion Project\Software\ev-autopilot
I have been having intermittent issues with this with codex CLI versions: 0.95, 0.97, 0.100, 0.111, 0.113, 0.114
I have tried running codex --full-auto which did not help
@i-schuyler I have had same issues on Codex App for Windows! For what its worth, the only "workaround" / fix for now is using the Codex CLI directly and rolling back to v0.113. See my comment here in another similar gh issue: #14675 (comment)
Can't use the Codex App or the VScode extension, but can at least use the Codex CLI directly for now.
@i-schuyler@Shubender I was able to get a little further in debugging the issue. Here is a workaround that should work with current version of Codex: #14675 (comment)
@GitMurf thanks for your comment and solution. I came up with a solution that wasn't exactly the smartest, but it saved me from errors and unnecessary queries - I simply “asked” it not to use apply_patch in AGENTS.md
## Editing policy
Absolute rule: never use `apply_patch`, `apply_patch`-like tools, or any internal file-editing tool.
Never use any tool or workflow that may invoke sandboxed editing, virtualized editing, or sandbox setup/refresh.
For all file modifications, use shell-only editing commands such as PowerShell `Get-Content` / `Set-Content` / .NET file APIs.
If any edit tool fails with a sandbox-related error, do not retry it and do not use any internal editing tool again in that turn.
Activity
github-actions commentedon Mar 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Shubender commentedon Mar 12, 2026
The same problem in VS Code and Codex App.
GitMurf commentedon Mar 20, 2026
@i-schuyler I have had same issues on Codex App for Windows! For what its worth, the only "workaround" / fix for now is using the Codex CLI directly and rolling back to v0.113. See my comment here in another similar gh issue: #14675 (comment)
Can't use the Codex App or the VScode extension, but can at least use the Codex CLI directly for now.
GitMurf commentedon Mar 20, 2026
@i-schuyler @Shubender I was able to get a little further in debugging the issue. Here is a workaround that should work with current version of Codex: #14675 (comment)
Shubender commentedon Mar 26, 2026
@GitMurf thanks for your comment and solution. I came up with a solution that wasn't exactly the smartest, but it saved me from errors and unnecessary queries - I simply “asked” it not to use
apply_patchin AGENTS.mdnotnotype commentedon Apr 3, 2026
On Windows, sandboxed file edits fail with:
windows sandbox: helper_firewall_rule_create_or_add_failed: SetRemoteAddresses failed: Error { code: HRESULT(0x80070057), message: "参数错误。" }
What I verified:
BFEandMpsSvcare runningGet-NetFirewallProfile/New-NetFirewallRulereturn access deniedGet-NetFirewallProfileworksThis suggests Windows Firewall itself is healthy, and the failure is specific to Codex's Windows sandbox helper when configuring firewall rules.