Skip to content

Windows: Android emulator launch blocked by policy with reported CodexSandboxUsers workspace ACL issue #48669

Open

Description

@Yasei-no-otoko

What version of the Codex App are you using (From “About Codex” dialog)?

Installed Windows package at report time: OpenAI.Codex 26.924.2738.0.
The affected session records bundled CLI version 0.158.0-alpha.2.1.

What subscription do you have?

Not included in this report.

What platform is your computer?

Windows 11 Pro, 10.0.26200, x64; PowerShell.
Android Emulator 37.1.11.0 (build 15917651), existing Android 10 / API 29 x86_64 AVD.

What issue are you seeing?

An authorized local Android emulator launch was rejected by automatic approval review with only blocked by policy. This prevented a local Vulkan validation run.

User-identified cause: CodexSandboxUsers did not actually have Full Control over the workspace. The user identified this Windows filesystem permission problem as the reason for the rejection. Please investigate the mismatch between Codex's configured access, the actual workspace ACLs, and the generic policy-denial diagnostic.

The affected turn nevertheless recorded:

{
  "approval_policy": "never",
  "sandbox_policy": { "type": "danger-full-access" }
}

At 2026-09-27 05:10:24 UTC, the launch tool failed before the command ran. The error was a CreateProcess / Rejected wrapper ending in:

rejected: blocked by policy

No denied path, missing access right, Windows access-denied error code, or more specific review reason was supplied.

What steps can reproduce the bug?

Observed workflow on the affected installation (a clean-machine reproduction has not been established):

  1. Open an existing local Android project in Codex Desktop on Windows.
  2. Have an existing API 29 test AVD available and a workspace directory for validation logs.
  3. Ask Codex to run local Android/Vulkan validation.
  4. Codex attempts to start the AVD headlessly and redirect its output into the workspace.
  5. Observe the automatic-review rejection above.

The launch portion of the rejected command is shown below with project/AVD names generalized. The original command also recorded local validation metadata and waited for the emulator with adb.

# Run from the repository root; use an existing test AVD.
$evidence = (Resolve-Path 'validation/current/android/vulkan-validation').Path
$emulator = Join-Path $env:LOCALAPPDATA 'Android/Sdk/emulator/emulator.exe'

$process = Start-Process -FilePath $emulator -ArgumentList @(
    '-avd', '<EXISTING_TEST_AVD>',
    '-port', '5556',
    '-no-window', '-no-audio', '-no-boot-anim', '-no-snapshot',
    '-gpu', 'swiftshader_indirect',
    '-cores', '2', '-memory', '2048'
) -WindowStyle Hidden -PassThru `
  -RedirectStandardOutput (Join-Path $evidence 'emulator-stdout.log') `
  -RedirectStandardError (Join-Path $evidence 'emulator-stderr.log')

What is the expected behavior?

Codex should check the actual workspace access required by an authorized operation and provide an actionable diagnostic if Windows permissions prevent it. A full-access configuration and Windows ACLs are distinct; the failure message should make that distinction clear.

If the rejection instead comes from an independent approval rule, identify that reason rather than leaving the user to infer a filesystem problem from blocked by policy. Any permission remediation should be scoped to the required workspace access.

Additional information

  • At report time, read-only ACL inspection shows an explicit CodexSandboxUsers: Allow FullControl entry on the workspace root, inherited by the nested repository and validation directory. It also shows an inherited Read & Execute entry.
  • A later retry, explicitly authorized by the user, successfully started the same test AVD at 2026-09-27 09:12:55 UTC and completed the Vulkan validation exercise.
  • The missing-permission diagnosis above is the user's finding. The captured logs do not contain the earlier ACL snapshot, an ACL-change timestamp, or a controlled before/after test tying that ACL change to the review decision. Current ACL entries alone do not establish the effective token permissions at the original failure.
  • Local usernames, machine names, SIDs, private project contents, and unrelated logs have been omitted. No permissions or system settings were changed while preparing this report.

Activity

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

    @github-actions
    Contributor
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