Skip to content

"Blocked by Policy" despite Full Access #43905

Open

Description

@whitefoxclean

What version of Codex CLI is running?

OpenAI Codex (v0.153.4)

What subscription do you have?

Pro

Which model were you using?

Astra High

What platform is your computer?

Windows using VS Code

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

No response

Codex doctor report

What issue are you seeing?

01a07365-55d0-7bb2-b7de-9ade13ab2016 is "Blocked by Policy" despite Full Access

What steps can reproduce the bug?

Uploaded thread: 01a07365-55d0-7bb2-b7de-9ade13ab2016

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Sep 8, 2026
  2. added
    CLI
    windows-os
    sandbox
    on Sep 8, 2026
  3. maboooo commented on Nov 9, 2026

    @maboooo

    Additional Windows desktop occurrence, reported with the affected user's authorization.

    On 2026-11-08 at 18:54:03 UTC, an authorized local development request was rejected before execution with only rejected: blocked by policy.

    Environment and verified evidence:

    • Windows / PowerShell, on the user's personal computer.
    • Installed desktop package observed during diagnosis: OpenAI.Codex 26.1103.4239.0.
    • Affected session metadata: codex-cli 0.167.0-alpha.3.2.
    • The exact rejected turn records approval_policy=never, sandbox_policy.type=danger-full-access; Full Access had been selected.
    • The single request would create a separate local revision package, edit two UI files, prepare synthetic preview data, and start a loopback preview. It was rejected as a whole: the new package and listener were absent afterward, while the old package and saved records remained intact.
    • The original payload contains no Start-Process, Stop-Process, or Remove-Item. It contains a loopback HTTP URL as a configuration value, a Python management tool's ordinary positional start argument, a here-string and pipelines.
    • A later read-only diagnostic request, intended only to parse the saved command as PowerShell AST data, was also rejected before execution. No parser result was produced.

    This appears consistent with the opaque-script / ordinary start argument variant discussed in #40060 and the diagnostic failure in #43633. The corresponding public tag still falls back to whole-script classification when a pipe is present; the opaque classifier can associate a launcher-looking token with a separate URL. Its heuristic decision maps Never to forbidden and OnRequest to a prompt:

    This is source-based evidence, not a captured internal decision trace or a confirmed common root cause. The assistant's initial attribution to automatic review was corrected: official documentation says auto-review does not run with approval_policy=never.

    The user tried selecting the normal Ask for approval mode, but a subsequent affected-chat turn still recorded approval_policy=never, danger-full-access, and approvals_reviewer=user. The user later explicitly chose to keep Full Access / never and continue independent development. Manual-approval recovery therefore remains unverified; no successful workaround or installed classifier fix is claimed. No denied request has been reformulated or routed through another executor, and no allow rule or bundled executable has been modified. Independent development is continuing.

    Update: the user then reported exiting their third-party antivirus application and explicitly requested a retry. The same read-only diagnostic request was submitted once, unchanged, through the original tool and was again rejected before process creation with the same generic error. Antivirus shutdown was user-reported, not independently verified at driver/service level; this is not proof that all endpoint protection was inactive. It does show that this user action did not resolve the observed refusal. No project operation was executed by that diagnostic retry.

    Could maintainers identify the responsible decision path, confirm the supported per-action approval recovery for this case, and expose a concrete reason/correlation identifier instead of the generic error? Please also clarify which supported desktop release addresses the opaque-script variant. No project source, raw commands/logs, credentials, private paths, or full session transcript are attached.

  4. UweKeim commented on Nov 10, 2026

    @UweKeim

    Additional observation from Codex Desktop on Windows, tested today (2026-11-10): a full Codex restart restored browser control, but did not resolve the process-start rejection.

    The session uses approval_policy = "never" and sandbox_mode = "danger-full-access". Full Access and browser access are enabled. The local rules file contains allow rules only. The rejected command uses the bundled PowerShell from primary runtime 26.1104.2876.0.

    Before restarting Codex:

    • Launching a locally built Windows test application via PowerShell Start-Process was rejected before execution with exec_command failed: CreateProcess … rejected: blocked by policy. No approval prompt or specific policy reason was shown. Ordinary read-only shell commands still worked.
    • Browser control independently failed with Local browser use is disabled in Work settings, although browser access was enabled.

    After fully restarting Codex:

    • Browser control worked again. The first localhost request returned ERR_CONNECTION_REFUSED because the development server was not running. Starting the prepared local web-server script succeeded; browser navigation, sign-in, UI interactions and screenshots then worked.
    • Retrying the Windows application launch still returned the same blocked by policy rejection. Cleaning up stale local development-server processes did not change that result.
    • No security settings, rules or bundled binaries were changed to obtain these results.

    Read-only inspection of the installed browser service located the Work-settings error in its per-turn signed access-response check. This identifies the client-side throw site, not why access was denied. We do not have an internal policy decision trace, and cannot establish whether the browser and process-start failures share a cause. In particular, I am not attributing this to approval auto-review under approval_policy = "never".

    Could the rejection expose the specific policy/rule and a diagnostic correlation ID? At present, the restart fixes one blocked capability while the other remains unexplained.

  5. UweKeim commented on Nov 12, 2026

    @UweKeim

    Update from 2026-11-12: this still occurs with codex-cli 0.167.0-alpha.4.1, approval_policy=never and sandbox_mode=danger-full-access.

    The corresponding source tag provides a plausible explanation for the latest local-server rejection:

    • Windows command classification falls back to opaque classification when the script contains a pipe. It can then associate a URL elsewhere in the script with Start-Process. Our rejected command set a loopback URL in an environment variable, launched a local EXE and piped its process information to Select-Object.
    • Execution-policy handling maps a dangerous-command match to Forbidden under Never, before the ordinary unrestricted-access path.
    • A subsequent read-only PowerShell request to fetch these source files and search their text was also rejected before execution. It contained URLs and Start-Process only as search data; it would not launch a process.

    These observations fit an overly broad heuristic, but we still have no internal decision trace proving which rule fired. The local rules contain allow entries only; no security settings, rules or bundled binaries were changed. This is not an attribution to approval auto-review.

    Could the rejection identify the matched classifier/reason, and could the quoted-search-text and unrelated-configuration-URL cases be covered by regression tests? A full-access session currently turns these ordinary development operations into repeated manual launches.

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