Skip to content

Windows Codex Desktop 26.908.40834: write operations hang; clean workspace never launches requested write command #45603

Open

Description

@dongyuehliu

Environment

  • Codex Desktop version: 26.908.40834
  • Platform: Windows
  • Subscription: ChatGPT Plus
  • Model: GPT-5.6 Sol
  • Windows user: 2025-04-10-D01\COSH
  • Current user SID: S-1-5-21-2638354131-1635556175-1629256366-1001
  • System was fully rebooted during troubleshooting.
  • Usage limits were not exhausted (about 98% of the current 5-hour allowance remained during testing).

Summary

Codex Desktop can perform some read-only operations, but write-oriented operations hang indefinitely.

Controlled testing indicates two separate failure modes:

  1. An existing project workspace fails during sandbox ACL setup with SetNamedSecurityInfoW failed: 5.
  2. A newly created clean workspace has correct ownership and successful sandbox ACL setup (errors=[]), but an explicitly requested PowerShell write command is never launched and does not appear in the sandbox log.

The second failure reproduces independently of the original repository, Git, project configuration, custom agents, or workspace ACL ownership.

Failure mode 1 — Existing project: sandbox ACL setup fails

Existing project:

D:\eevision_xe10\evmesh

Sandbox log reports:

granting write ACE to D:\eevision_xe10\evmesh for sandbox group and capability SID
write ACE grant failed on D:\eevision_xe10\evmesh: SetNamedSecurityInfoW failed: 5

deny ACE failed on D:\eevision_xe10\evmesh\.git:
SetNamedSecurityInfoW failed for D:\eevision_xe10\evmesh\.git: 5

setup refresh completed with errors
setup error: setup refresh had errors

ACL inspection shows normal inherited permissions including Authenticated Users:(M), but the workspace and .git owner SID differ from the currently logged-in Windows user's SID:

Workspace owner:
S-1-5-21-2283855486-1997267379-3259020087-1001

Current user:
S-1-5-21-2638354131-1635556175-1629256366-1001

Normal file modification is possible through inherited permissions, but Codex fails when attempting to modify the security descriptor.

Failure mode 2 — Clean workspace: ACL setup succeeds, but write command is never launched

To isolate the issue, I created a completely new directory and opened it as a new Codex project:

D:\codex_test

Owner is the current user:

(Get-Acl "D:\codex_test").Owner
2025-04-10-D01\COSH

ACL after Codex initialization includes:

2025-04-10-D01\CodexSandboxUsers:(OI)(CI)(M)
S-1-5-21-3298927432-701962161-1885063525-1065416621:(OI)(CI)(M)

The sandbox log confirms successful workspace-write ACL provisioning:

granting write ACE to D:\codex_test for sandbox group and capability SID
setup refresh: processed 3 write roots (read roots delegated); errors=[]
setup binary completed
read-acl-only mode: applying read ACLs
read ACL run completed
helper launch resolution: using copied command-runner path ...

Reproduction test

In a new session using D:\codex_test, I explicitly instructed Codex to execute only:

Set-Content -LiteralPath '.\code_test2.txt' -Value 'hello'

and not to use any alternative method.

Codex entered the processing/running state but did not complete the operation.

Most importantly, Set-Content never appears anywhere in the sandbox log.

The same log contains other commands such as Get-Content and Get-Item, so command logging is active. The explicitly requested write command appears never to reach the sandbox execution layer.

This suggests the write request may be hanging or being lost before reaching codex.exe / codex-command-runner / PowerShell.

Additional controlled tests

Tests performed include:

  • Existing Visual Studio C++ repository
  • New Codex sessions
  • Completely new Codex project
  • Clean directory unrelated to the repository
  • Full Windows reboot
  • Read-only operations
  • File creation/write operations

Observed pattern:

  • Some read-only operations succeed.
  • Write/create operations hang.
  • In the original repository, sandbox ACL setup itself fails.
  • In the clean workspace, ACL setup succeeds but the requested write command may never be launched.

The clean-workspace failure therefore does not appear to be caused solely by Git, .git, repository contents, project instructions, custom agents, Visual Studio, exhausted usage limits, the original conversation/session, or ordinary NTFS write permission.

Global Codex configuration

%USERPROFILE%\.codex\config.toml contains only:

model = "gpt-5.6-sol"
model_reasoning_effort = "xhigh"

There are no custom approval_policy, sandbox_mode, or Windows sandbox settings in the global configuration.

Other sandbox-log observation

The command runner repeatedly logs:

hide users: failed to hide current user profile dir (C:\Users\Default):
SetFileAttributesW failed for C:\Users\Default: 5 (Access is denied.)

This also occurs during runs where workspace ACL setup otherwise reports errors=[]. Permissions/ownership of C:\Users\Default have not been modified during troubleshooting.

Expected behavior

With a clean workspace and successful sandbox provisioning, a simple command such as:

Set-Content -LiteralPath '.\code_test2.txt' -Value 'hello'

should be dispatched to the sandbox command runner and create the file.

Actual behavior

Codex remains in a running/processing state, but the requested write command is never observed in the sandbox log and the file is not created.

Possibly related issues

This may be related to other Windows sandbox regressions reported against Codex Desktop 26.908.40834, including #45152 and #45153 (SetNamedSecurityInfoW / sandbox initialization failures).

However, the clean-workspace reproduction appears different from a pure ACL failure because the workspace owner is correct, CodexSandboxUsers has Modify permission, sandbox write-ACE provisioning reports errors=[], and the requested write command itself never appears in the sandbox log.

This may indicate an additional tool-dispatch / turn-lifecycle / command-submission problem above the Windows sandbox execution layer.

I can provide the complete sandbox.2026-09-15.log if needed. It contains both the SetNamedSecurityInfoW failed: 5 failures against the existing repository and successful errors=[] provisioning for the clean workspace.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Sep 15, 2026
  2. github-actions commented on Sep 15, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. dongyuehliu commented on Sep 15, 2026

    @dongyuehliu
    Author

    I reviewed #44882. It appears related to Failure Mode 1 in this report (SetNamedSecurityInfoW failed: 5), but it does not appear to cover Failure Mode 2.

    In my clean control workspace D:\codex_test, the workspace is owned by the current user, the sandbox successfully grants the write ACE, and setup completes with:

    granting write ACE to D:\codex_test for sandbox group and capability SID
    setup refresh: processed 3 write roots (read roots delegated); errors=[]
    setup binary completed
    

    However, when Codex is explicitly instructed to execute:

    Set-Content -LiteralPath '.\code_test2.txt' -Value 'hello'

    the operation hangs and the requested Set-Content command never appears in the sandbox log at all.

    Therefore #44882 may explain the ACL failure in my existing repository, but it does not appear to explain the independently reproduced clean-workspace failure where sandbox setup succeeds and the write command is never dispatched to the execution layer.

    I am keeping this issue open for maintainer triage unless the underlying root cause of both behaviors is confirmed to be the same.

  4. seishinshigo commented on Sep 15, 2026

    @seishinshigo

    I can reproduce the ACL/setup failure described in Failure Mode 1 on the same Codex Desktop version, 26.908.40834.

    Environment:

    • Codex Desktop: 26.908.40834
    • Windows 11 Home 25H2
    • OS build: 26200.9445
    • PowerShell: 7.6.6
    • Sandbox mode: workspace-write

    I isolated the behavior with independent workspaces.

    Elevated sandbox

    Non-Git workspace:

    D:\Users\<user>\project\<non-git-test>

    Get-Date succeeds normally.

    Git workspace 1:

    D:\Users\<user>\project\<repo1>

    Sandbox setup fails before the command starts:

    deny ACE failed on D:\Users\<user>\project\<repo1>\.git:
    SetNamedSecurityInfoW failed for D:\Users\<user>\project\<repo1>\.git: 5
    setup refresh completed with errors
    setup error: setup refresh had errors
    

    Git workspace 2:

    D:\Users\<user>\project\<repo2>

    The same failure occurs against that repository's own .git:

    deny ACE failed on D:\Users\<user>\project\<repo2>\.git:
    SetNamedSecurityInfoW failed for D:\Users\<user>\project\<repo2>\.git: 5
    setup refresh completed with errors
    setup error: setup refresh had errors
    

    For both failing repositories:

    • repository root owner: interactive Windows user
    • .git and .git\HEAD owner: <machine>\CodexSandboxOffline
    • ACL inheritance enabled
    • no explicit DENY ACE
    • no EFS encryption
    • Windows Defender Controlled Folder Access disabled
    • no third-party AV/EDR registered in SecurityCenter2

    I also fully restarted Codex Desktop and retried. Running Codex Desktop as Administrator and approving UAC did not change the result; the same .git / SetNamedSecurityInfoW ... : 5 failure occurred.

    Unelevated control

    After changing:

    [windows]
    sandbox = "unelevated"

    and restarting Codex Desktop, Get-Date succeeds in both Git workspaces.

    So on this machine the A/B result is:

    • non-Git + elevated -> succeeds
    • Git + elevated -> fails while applying a DENY ACE to .git
    • same Git repos + unelevated -> succeeds

    No ACL, owner, inheritance, EFS, Defender, or repository settings were modified during diagnosis.

    OpenAI Support recommended using unelevated as the temporary fallback while the elevated sandbox issue remains unresolved.

  5. dongyuehliu commented on Sep 15, 2026

    @dongyuehliu
    Author

    Additional A/B results after applying the suggested unelevated workaround on Codex Desktop 26.908.40834.

    First, a correction to my original report: I initially thought the global config.toml contained only the model settings because there were many blank lines after the first two lines. After inspecting the complete file, it is a Codex Desktop-managed config containing runtime/plugin/MCP/project settings as well. The relevant current settings include:

    model = "gpt-5.6-sol"
    model_reasoning_effort = "high"
    
    [windows]
    sandbox = "unelevated"

    I did not otherwise modify the generated runtime/plugin/MCP settings.

    After setting sandbox = "unelevated", fully exiting/restarting Codex Desktop, and testing fresh sessions in the clean non-Git workspace D:\codex_test, behavior is still inconsistent:

    1. Fresh session, without first reading test.txt: explicitly executing Set-Content returned success.
    2. Another fresh session: reading test.txt succeeded; a subsequent explicit Set-Content command in the same session hung.
    3. Another fresh session: the first requested Set-Content -LiteralPath '.\code_test5.txt' -Value 'hello' did not behave normally and returned an error saying the path D:\codex_test\code_test5.txt could not be found (although Set-Content should create a new file when the parent directory exists). A subsequent explicit Get-Content command then hung.

    Therefore, unelevated does appear to bypass the reproducible elevated-sandbox ACL/setup failure from Failure Mode 1, and it allowed at least one clean-workspace write to succeed. However, it does not make command execution reliable on this machine: fresh sessions in the same clean non-Git workspace can still hang or produce anomalous command behavior.

    At this point I do not think the remaining Failure Mode 2 can be reduced to a simple read -> write transition. The stronger observation is that command execution/dispatch is intermittent across fresh sessions even with sandbox = "unelevated".

    I have not changed NTFS ownership/ACLs, reset .codex, or reinstalled the app during these tests.

  6. dongyuehliu commented on Sep 15, 2026

    @dongyuehliu
    Author

    Update after upgrading Codex Desktop: the issue is no longer reproducible in my current tests.

    Version A/B

    Previously failing version: 26.908.40834

    As documented above, command execution in a clean non-Git workspace was intermittent, including hangs after reads and anomalous/undispatched write commands.

    New version: 26.908.70816

    I kept the same machine and current config, including:

    [windows]
    sandbox = "unelevated"

    After upgrading and restarting Codex Desktop:

    1. In the clean non-Git workspace D:\codex_test, Codex successfully read test.txt, executed Set-Content, and created/read the test output normally.
    2. I then tested the real Git workspace D:\eevision_xe10\evmesh. Read, write, read-back, and deletion of a harmless test file all succeeded.

    So the same workflows that were reproducibly/intermittently failing on 26.908.40834 are currently working on 26.908.70816.

    I have not changed the repository NTFS ownership/ACLs, reset .codex, or reinstalled Windows. I am leaving the issue open for maintainer triage for now, since I do not know whether 26.908.70816 contains an intentional fix for the underlying problem or whether it could recur.

  7. aravelo7 commented on Sep 17, 2026

    @aravelo7

    I reproduced what appears to be the same Windows sandbox ownership / ACL failure on a normal local NTFS workspace.

    Workspace:

    D:\Projects\MinDisclosure

    All Codex commands started failing before actual command execution, including a basic Get-Location, with:

    helper_unknown_error: setup refresh had errors

    The sandbox log showed:

    deny ACE failed on D:\Projects\MinDisclosure\.git

    SetNamedSecurityInfoW failed for D:\Projects\MinDisclosure\.git: 5

    setup refresh completed with errors

    I then inspected the ACL of the .git directory.

    The relevant state was:

    Owner: LAPTOP-IN91EGM5\CodexSandboxOffline

    AreAccessRulesProtected: False

    CodexSandboxUsers already had Modify, Synchronize access.

    I changed only the owner of:

    D:\Projects\MinDisclosure\.git

    back to my normal Windows user.

    I did not reset the ACL tree, modify the repository contents, or change the ownership of the whole workspace.

    Immediately afterwards, command execution recovered in the same workspace:

    Get-Location

    successfully returned:

    D:\Projects\MinDisclosure

    So in this reproduction, the immediate blocker was specifically the .git directory being owned by CodexSandboxOffline. During sandbox setup refresh, Codex could no longer apply the required deny ACE to .git, causing the entire command helper initialization to fail.

    I do not yet have a deterministic reproduction for the ownership transition itself, so I cannot confirm which Codex operation originally changed the .git owner to CodexSandboxOffline.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions