Skip to content

Windows: command rejected as “blocked by policy” despite Full access, with no actionable decision trace #59415

Open

Description

@stewhalsall86

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

App build not confirmed. Installed Codex CLI: 0.166.0-alpha.6.

What subscription do you have?

Not provided in this sanitized report.

What platform is your computer?

Windows 11 Home

What issue are you seeing?

Codex rejected an authorized localhost-only Docker startup before execution. The rejection did not identify the blocking rule or a supported approval route.

Confirmed permission settings:

  • Full access
  • sandboxPolicy.type: dangerFullAccess
  • approvalPolicy: never
  • approvalsReviewer: user

Observed rejection, with command contents omitted:
CreateProcess → Rejected → “…pwsh.exe -Command … rejected: blocked by policy”

The intended operation was to start an isolated local application using an existing pinned Docker image and a loopback-only port binding. The outer launch was rejected before the Docker commands ran; no child exit code or application error was produced.

Read-only inspection did not find local rule files or configuration explaining the denial. The available evidence does not establish which policy layer caused it.

What steps can reproduce the bug?

No minimal reproduction is included. Historical sequence:

  1. Full access was selected and the recorded settings above were confirmed.
  2. An explicitly authorized localhost-only Docker startup was submitted through Codex on Windows.
  3. The outer command launch was rejected before execution with “blocked by policy,” without an actionable rule or decision trace.

Startup has not been retried for this report, and permissions have not been changed.

Feedback reference: 01a1123a-4f8f-70a1-a622-5df3e0a60028.

What is the expected behavior?

If execution is prohibited, provide an actionable rejection identifying the matching rule or blocking check, its source, and the supported resolution. Full access should not be presented as overriding an enforced restriction.

Please correlate the feedback reference with the execution-policy decision trace and identify the blocking check. Please also explain how users can obtain a sanitized decision trace when the rejection supplies none.

Additional information

This report does not establish the root cause. No credentials, environment-variable values, raw logs, attachments or conversation history are included.

Related symptom reports found during the repository search: #54746 and #58550. This report does not establish that they have the same underlying cause.

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