Skip to content

Windows sandbox refresh drops inner OS errors from ACL failures, blocking diagnosis #54100

Open

Description

@anilkrk

Environment

Codex desktop app on Windows, using its normal tools. The observed command-runner filename has version label 0.162.0-alpha.17.2. Exact desktop app build, Windows build and installed build-to-source equivalence are not verified. The current interface does not expose the selected native sandbox implementation. No separately launched CLI reproduction is claimed.

Observed behavior

At 2026-10-14 20:55:37 UTC, sandbox setup processed 13 write roots, failed on five existing project paths, and exited 1. Sanitized per-target error: write ACE grant failed on <PROJECT_PATH>: open ACL target for update. Aggregate result: setup refresh had errors. Adjacent 5/6-root contexts succeeded.

Normal apply_patch Add calls on an authorized exact file failed twice with only Failed to write file. An existing-file pre-read separately reported path contains a reparse point. File/parent permission grants were reported successful, but effective OS access and causal correlation between those tool calls and the setup event remain unproven. No permission, ACL, security-mode or binary workaround has been applied. Product writes have not been blindly retried.

Source evidence explaining missing diagnostics

Pinned official source:
https://github.com/openai/codex/blob/rust-v0.162.0-alpha.17.2/codex-rs/windows-sandbox-rs/src/setup_provisioning.rs

At lines 1124/1127 the write-ACL error is formatted using outer Display into both aggregate and per-target text. Lines 1178/1181 do the same for deny-ACL errors. At line 1217 a fresh generic failure replaces the original Result. Thus later debug formatting cannot recover the io::Error cause from that Result.

https://github.com/openai/codex/blob/rust-v0.162.0-alpha.17.2/codex-rs/windows-sandbox-rs/src/acl.rs

Lines 636–641 attach the outer context after a target-open request for READ_CONTROL | WRITE_DAC with share read/write/delete and backup semantics. The log retains the context but not its underlying OS code.

Expected behavior and minimal proposed diagnostic change

Preserve the complete error chain, including raw Windows code, in private per-target and aggregate logs. Four diagnostic-only formatting changes to alternate Display {e:#} / {err:#} would preserve the nested cause. Keep all ACL masks, path/reparse checks, approvals and deny protection unchanged.

Please have Windows-sandbox maintainers confirm the supported actual-helper-context diagnostic path and correlate the desktop tool admission with its effective permission snapshot. A new CLI context, nearby unrelated OS codes, or successful elevated command is not proof of the original error or a normal-tool repair.

Maintainer regression criteria: nested known io::Error codes 5 and 32 remain present for both write and deny error formatting and aggregation; permission enforcement is unchanged. Deliver any fix through a supported signed runtime. Original project owners then verify their same normal-tool operation and readback independently.

Support route already attempted

The official Help Center AI support accepted the sanitized request and confirmed email receipt, but explicitly said it could not route to a human engineer or issue a case/reference ID. It directed us to in-app feedback or this public tracker. No human escalation, full error code, installed fix or successful owner resume is claimed.

Activity

  1. github-actions commented on Oct 14, 2026

    @github-actions
    Contributor
  2. added
    bug
    app
    windows-os
    sandbox
    on Oct 14, 2026
  3. anilkrk commented on Oct 15, 2026

    @anilkrk
    Author

    Follow-up, 15 October 2026: the user attempted the in-app /feedback route. They reported a UI message stating that the feedback upload could not be verified. Submission is therefore unconfirmed; we cannot establish either successful upload or definitive non-delivery from that message. No independently verified support receipt or engineering assignment is available.

    We did not repeat the uncertain submission or change account, credential or security settings in response. No private chat identifier, personal path, account information, source content or raw logs are included in this comment.

    Please advise a supported way to verify the uncertain feedback submission and obtain actionable diagnostics or a signed repair for the original writer-admission failure. This feedback-upload symptom is not established as the cause of the filesystem 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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions