Skip to content

Windows: exec_command rejected with “blocked by policy” without an actionable explanation #49373

Open

Description

@njzhb

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

Powered by Codex & OWL 版本 26.924.22138

What subscription do you have?

ChatGPT Pro

What platform is your computer?

No response

What issue are you seeing?

A user-authorized startup request for a local Python/Streamlit application on Windows was rejected by the execution tool:

exec_command failed: CreateProcess … rejected: blocked by policy

The application is configured for OKX Demo/simulated trading, not live trading. The exact reason for the rejection is unknown; we cannot establish that trading functionality caused it.

The tool did not provide a specific rule, approval link, or supported resolution path. Please investigate the rejection and explain the supported way to proceed. I am not requesting a bypass of safeguards.

Incident time: 2026-09-29 05:09:30.933 UTC+8
Tool: functions.exec → tools.exec_command
Tool call ID: call_Lzb0yJsTWzGY9PFRp2h9rL0I

Feedback ID: 01a0e6f6-6085-7053-baf4-a950a1cf1813
Diagnostic feedback was successfully uploaded through the Codex app.

The error excerpt above is not the complete command or underlying approval log. The received tool output was itself truncated. Please use the identifiers to locate the original records.

What steps can reproduce the bug?

Feedback ID: 01a0e6f6-6085-7053-baf4-a950a1cf1813

What is the expected behavior?

If the operation is blocked, provide a clear explanation of the applicable restriction and a supported resolution or approval path. Please investigate this rejection using the attached diagnostic feedback ID.

Additional information

Codex attempted a user-authorized startup of a local Python/Streamlit Demo application through tools.exec_command. The request was rejected with “CreateProcess … rejected: blocked by policy”, without a specific reason or supported approval path. The denied request has not been retried.

Activity

  1. added
    app
    on Sep 29, 2026
  2. added
    bug
    windows-os
    sandbox
    tool-calls
    on Sep 29, 2026
  3. njzhb commented on Sep 30, 2026

    @njzhb
    Author

    A new recovery package is ready for review: recover.ps1, changes.diff, REVIEW.txt and manifest.json. It preserves the latest state-active, backs up affected code, deploys only four files and starts one trading_host.py instance in HOLD with automatic Demo disabled.

    The previously denied command copied an older state snapshot and is no longer applicable. It must not be replayed; approving that denial would not approve this new operation.

    The current desktop agent session exposes no interface for submitting this new operation for native approval. The documented TUI /approve entry only selects existing denied actions; it cannot submit this package without a denial record. We have not manufactured a denial or attempted a workaround.

    Please identify the supported native approval or recovery path for this specific state-preserving operation, including the applicable client entry point.

  4. arriannayfq commented on Sep 30, 2026

    @arriannayfq

    Additional report from the Codex desktop app on Windows, observed September 29–30, 2026 (UTC+8).

    The user selected Full access. Preparing and starting an isolated, loopback-only Node.js/Next.js local test service through PowerShell was rejected before process creation with CreateProcess … rejected: blocked by policy. A configuration with no provider API key and paid generation disabled was also rejected. Other read-only inspection, build and test operations work.

    The latest recorded occurrence was 2026-09-30 01:09:24 UTC+8. No actionable rule, approval/review identifier, shell exit status or supported recovery procedure was exposed. No application process or provider request was observed from the rejected operation. We stopped the denied operation rather than trying alternate tools, ports or wrappers.

    Environment: Windows 11 build 22631; exact full desktop app release has not been independently captured. This is a personal workspace. No client material, code, credentials or full session logs are attached.

    Please help identify the rejecting component and provide a supported diagnostic/recovery path. This report does not establish a common root cause with the other reports, and is not a request to bypass safeguards.

  5. jianggl123 commented on Oct 12, 2026

    @jianggl123

    Windows Codex Desktop pre-execution policy rejection — request for correlated diagnostics

    I am reporting a historical Windows Codex Desktop execution failure and requesting an actionable diagnostic, not a policy bypass.

    Incident

    • Incident UTC: 2026-10-12T04:18:33.447657Z
    • Historical Thread ID: 01a12e55-559b-7393-bac8-a85e5180ad2a
    • Tool call ID: NOT_PROVEN
    • Original Codex App/CLI version: NOT_PROVEN

    Exact observed signature

    codex_core::tools::router
    CreateProcess ... powershell.exe ... rejected: blocked by policy
    

    The preserved checkpoint reports command_execution_events=0, command_success=false, and blocked_by_policy=true. The evidence does not establish whether OS-level CreateProcessW was invoked.

    Expected behavior

    If a command is denied, the product should expose an actionable policy owner, winning rule/predicate, correlation identifier, and supported remediation path. If the request is rejected before OS process creation, that should be distinguished from a Win32 child-process creation failure.

    Verified evidence

    • The Thread ID above matches the original thread.started event.
    • The timestamp and router error are preserved in the original event record.
    • The target was Windows PowerShell; no successful command execution was recorded.
    • No credentials, private source, full prompt, complete session log, or diagnostic attachment is included here.

    Unknowns

    The policy owner, effective sandbox policy, effective approval policy, original Codex version, winning rejection rule, enforcing component, OS CreateProcessW status, and UAO causal role remain unproven. Similar public reports are not being treated as proof of a shared root cause.

    Requested platform diagnostics

    For this exact historical event, please provide the supported diagnostic chain:

    request/thread correlation
    → effective execution policy
    → winning rejection rule/predicate
    → enforcing component/process
    → whether OS CreateProcessW was invoked
    → supported remediation
    

    Please identify whether the decision came from router command safety, exec policy, Windows Sandbox service, command-runner, approval policy, or another platform layer.

    This request does not ask to bypass Sandbox, loosen Approval, disable security protections, or replay the denied command. It requests only a privacy-preserving explanation and supported resolution.

    Related symptom reports: #49373, #43633, and #50979. These references do not establish a common root cause.

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