You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: exec_command rejected with “blocked by policy” without an actionable explanation #49373
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
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.
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.
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.
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.
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:
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.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
njzhb commentedon Sep 30, 2026
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.
arriannayfq commentedon Sep 30, 2026
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.
jianggl123 commentedon Oct 12, 2026
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
2026-10-12T04:18:33.447657Z01a12e55-559b-7393-bac8-a85e5180ad2aNOT_PROVENNOT_PROVENExact observed signature
The preserved checkpoint reports
command_execution_events=0,command_success=false, andblocked_by_policy=true. The evidence does not establish whether OS-levelCreateProcessWwas 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
thread.startedevent.Unknowns
The policy owner, effective sandbox policy, effective approval policy, original Codex version, winning rejection rule, enforcing component, OS
CreateProcessWstatus, 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:
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.