Repository navigation
Description
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):
- Open the existing Python project in VS Code on Windows with the Codex extension.
- Explicitly authorize starting the local engine in Alpaca Paper simulation mode only.
- 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.
- 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
github-actions commentedon Oct 14, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
CreateProcess: blocked by policy#53977Powered by Codex Action
Voyari commentedon Oct 14, 2026
Additional diagnostics:
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.
Voyari commentedon Oct 15, 2026
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.
Voyari commentedon Oct 16, 2026
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.