Skip to content

Windows IDE extension: exec_command fails with “CreateProcess … rejected: blocked by policy” without an actionable explanation #53981

Open

Description

@Voyari

What version of the IDE extension are you using?

26.1007.21434

What subscription do you have?

ChatGPT Team

Which IDE are you using?

Visual Studio Code

What platform is your computer?

Windows — exact OS build not yet collected

What issue are you seeing?

Codex in VS Code rejected an exec_command operation with this error:

exec_command failed: CreateProcess … Rejected(… rejected: blocked by policy)

The requested operation included starting a local Python engine for an Alpaca Paper trading simulation. This was explicitly authorized for simulated trading only, with no real-money trading authorized.

The rejection occurred at process creation, before any Alpaca API request. No specific policy identifier, detailed rejection reason, or actionable remediation was provided.

The session configuration reported approval_policy: never and danger-full-access. I do not know which component enforced the rejection or whether this is expected behavior.

Please clarify:

  • Which component or policy rejected the operation?
  • Is this an expected restriction or an IDE execution issue?
  • What supported troubleshooting or review path is available?

Additional diagnostics:

  • Registered engine version: 0.162.0-alpha.17.2
  • Failure timestamp: October 14, 2026, approximately 04:41:55 UTC
  • Tool call ID: call_2472952be4ca472cb0605578bcc8cb94

What steps can reproduce the bug?

Observed sequence (not a confirmed minimal reproduction):

  1. Open the existing Python project in VS Code on Windows with the Codex extension.
  2. Explicitly authorize starting the local engine in Alpaca Paper simulation mode only.
  3. Codex attempts an exec_command operation that combines project checks, duplicate-process checks, starting paper_engine.py through PowerShell Start-Process, and a local panel health check.
  4. Process creation is rejected with “blocked by policy,” without a detailed explanation.

The process-launch portion used the Python launcher with arguments:
-3.11 -B paper_engine.py

PowerShell Start-Process also included the project working directory, -WindowStyle Hidden, and -PassThru.

Expected behavior: either execute the authorized operation if permitted, or provide a specific rejection reason and a supported next step.

Actual behavior: generic process-creation rejection. The precise triggering part of the combined command has not been isolated.

What is the expected behavior?

If the operation is permitted, Codex should start the explicitly authorized local Python process. If it is restricted, the extension should explain which policy or component blocked it and provide an actionable, supported troubleshooting or review path, rather than only “blocked by policy.”

Additional information

The intended use is automated simulated trading through Alpaca Paper only. No real-money trading was authorized.

The error occurred during process creation, before any Alpaca API request. The available evidence does not establish whether the cause is an execution restriction, a configuration issue, or another policy layer.

I am requesting clarification and a supported resolution, not instructions to bypass restrictions. I can provide additional sanitized diagnostics if needed.

Activity

  1. added
    extension
    on Oct 14, 2026
  2. added
    bug
    windows-os
    sandbox
    tool-calls
    on Oct 14, 2026
  3. Voyari commented on Oct 14, 2026

    @Voyari
    Author

    Additional diagnostics:

    • Windows 11 Home, version 25H2, OS build 26200.9711, verified using Win32_OperatingSystem and Windows version registry fields.
    • VS Code extension: openai.chatgpt 26.1007.21434.
    • Bundled Codex: 0.162.0-alpha.17.2.
    • %ProgramData%\OpenAI\Codex\requirements.toml was checked and does not exist. This does not rule out other policy sources.
    • The execpolicy checker requires --rules; no applicable rule file was found, so no policy decision could be obtained.

    Diagnostic logging limitation:
    Inspection of this installed extension indicates that it explicitly sets its child process to RUST_LOG=warn. Therefore, setting RUST_LOG=debug externally cannot be assumed to enable backend debug logging.

    The extension has a Codex output channel and an undocumented chatgpt.logLevel setting, but these have not been changed. Please confirm the supported backend diagnostic logging procedure for this exact extension build.

    No permissions, rules, settings, environment variables, or bot processes were changed. The rejected command was not retried.

  4. Voyari commented on Oct 15, 2026

    @Voyari
    Author

    Additional issue: selecting “Feedback — Send feedback about this chat” in the VS Code extension closes the menu and returns to the conversation. No feedback form, confirmation, or session ID appears, so submission is unconfirmed.

    CODEX_HOME/.sandbox/sandbox.log was also checked and does not exist.

    Please provide a supported way to submit the affected IDE session and identify the component responsible for the original execution rejection.

  5. Voyari commented on Oct 16, 2026

    @Voyari
    Author

    Attached is a minimal sanitized extract from the affected IDE session, containing the original tool call, rejection output, and latest preceding execution context.

    The original error is already truncated in the transcript. It provides no policy identifier or shttps://github.com/openai/codex/issues/53981pecific rejection reason.

    In this VS Code extension, /status works, but /debug-config was treated as ordinary chat text.

    Please identify the enforcing component and provide a supported remediation or an IDE-specific diagnostic procedure. The rejected launch 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

    bugextensionsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions