Skip to content

Windows CLI: pip dry-run rejected before process creation with no actionable policy reason #55752

Open

Description

@NeerajSingh0503

What version of Codex CLI is running?

codex-cli 0.162.1

What subscription do you have?

ChatGPT Plus

Which model were you using?

Exact model at rejection not independently verified. Current doctor configuration reports gpt-6.1-sol.

What platform is your computer?

Windows 11 Professional, Microsoft Windows NT 10.0.26200.0, x64

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

Windows PowerShell 5.1.26100.9711. Terminal emulator/host version not independently verified.

Codex doctor report

Doctor summary; full JSON has not been attached to this form.
CLI: 0.162.1
overallStatus: fail
sandbox.helpers: fail; elevated Windows sandbox provisioning failed; helper_unknown_error
Doctor invocation approval policy: OnRequest
Active thread overrides: not inspected
Doctor working directory: C:\WINDOWS\system32
app_server.status: warning, stale or unreachable control socket
Authentication/provider connectivity: checks passed
The rejected thread reported approval_policy=never. These are different invocation contexts. A causal connection between sandbox provisioning failure and the policy rejection has not been established.

What issue are you seeing?

An explicitly authorized, wheel-only pip dependency-resolution dry-run
was rejected before process creation.

Observed error:
exec_command failed: CreateProcess
rejected: blocked by policy

The rejected session reported approval_policy=never. No approval action,
matched rule, policy identifier or actionable explanation was provided.

The requested operation involved no package installation, source builds,
application execution or SQL access. HTTPS requests were restricted to
pypi.org and files.pythonhosted.org. Output was restricted to a dedicated
D: staging directory.

A subsequent codex doctor invocation reports:

  • overallStatus: fail
  • elevated Windows sandbox provisioning: failed
  • error code: helper_unknown_error

The doctor invocation reports OnRequest and did not inspect active thread
overrides. It ran from C:\WINDOWS\system32, so its configuration is not
assumed identical to the rejected session.

The sandbox finding is relevant, but its causal relationship to the
original policy rejection is unestablished.

What steps can reproduce the bug?

Observed incident; not an independently verified minimal reproduction.

  1. Request a wheel-only pip dry-run in Codex CLI on Windows.
  2. Codex submits a PowerShell/Python launcher.
  3. Before process creation, it returns: CreateProcess ... rejected: blocked by policy.
  4. No approval action or specific policy reason is shown; no resolver output is created.

The blocked action was not retried.
Feedback thread: 01a13af8-7cab-7402-8582-7e282e3ef0ae

What is the expected behavior?

If the operation is prohibited, identify the enforcing policy or provide
a privacy-safe diagnostic and supported review path.

If approval is required, explain how to request it under the effective
configuration without bypassing safeguards.

Additional information

codex doctor --json reports overallStatus=fail.

sandbox.helpers:

  • status: fail
  • backend: elevated
  • provisioning: failed
  • error: helper_unknown_error
  • invocation approval policy: OnRequest

The rejected thread reported approval_policy=never.
Doctor ran from C:\WINDOWS\system32 and did not inspect active thread
overrides, so the configurations must not be treated as identical.

The report also warns that the background app-server socket is stale
or unreachable. Authentication and provider connectivity checks pass.

No causal connection between these findings and the original rejection
has been established.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added
    CLI
    windows-os
    sandbox
    on Oct 21, 2026
  3. NeerajSingh0503 commented on Oct 21, 2026

    @NeerajSingh0503
    Author

    Feedback upload acknowledged thread:
    01a13af8-7cab-7402-8582-7e282e3ef0ae

    Please correlate it with the original “blocked by policy” rejection
    and provide the deciding rule and supported resolution.

    The URL-plus-"start" explanation remains unverified.
    The rejected resolver operation has not been retried.

  4. NeerajSingh0503 commented on Oct 21, 2026

    @NeerajSingh0503
    Author

    Feedback upload acknowledged thread:
    01a13af8-7cab-7402-8582-7e282e3ef0ae

    Please correlate it with the original “blocked by policy” rejection
    and provide the deciding rule and supported resolution.

    The URL-plus-"start" explanation remains unverified.
    The rejected resolver operation has not been retried.

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