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: authorised local commands rejected with “blocked by policy” and no explanation #53982
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
I’m using Codex on Windows for a local software project. Two development operations were rejected before execution:
Starting an isolated local test server, including one retry after my explicit approval
Running a Python script to calculate file hashes and save two development reports
The error includes: CreateProcess … rejected: blocked by policy. No specific blocking rule or supported recovery step was provided. Other independent development operations subsequently succeeded.
Expected: Either execute permitted operations or explain the blocking rule and how to resolve it through supported controls.
The report-writing failure occurred on 14 October 2026, approximately 12:23–12:29 UTC.
I encountered the same CreateProcess … rejected: blocked by policy error in Codex Desktop on Windows 11 while running an authorized offline Python environment setup.
The process did not start, and no repository files were changed.
I submitted in-app feedback.
Feedback ID: 019fbd52-5755-77d0-a50c-0f7af4fb9e38
Please advise on the officially supported resolution.
No Codex desktop para Windows, uma operação de preparação da aquisição oficial de Fastify 5.12.3 foi recusada com “CreateProcess rejected: blocked by policy”, antes de iniciar o processo ou baixar o pacote.
Precisamos identificar o controle responsável, a justificativa da recusa e o procedimento suportado para continuar, preservando as proteções existentes.
I also experienced a similar issue with the Windows Codex CLI: an explicitly requested deletion of a folder inside my project workspace was rejected before PowerShell started with "blocked by policy", despite running with --yolo and Full Access.
I even submitted feedback through Codex itself. Feedback thread ID: 01a17e99-e309-7f61-a884-5179c35ed541.
It appears that Codex flagged a command as requiring approval, and because --yolo sets approval_policy = "never", it immediately rejected the command because there was no approval path available.
Given this issue and the multitude of similar/duplicate issues, I suggest codex team clarify how automatic approval review works and update the rejection message so we and the agents know what to do. I had to dig through GitHub issues (as Codex couldn't fix this) to find the solution above.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
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
escoxd0 commentedon Oct 19, 2026
I encountered the same
CreateProcess … rejected: blocked by policyerror in Codex Desktop on Windows 11 while running an authorized offline Python environment setup.The process did not start, and no repository files were changed.
I submitted in-app feedback.
Feedback ID:
019fbd52-5755-77d0-a50c-0f7af4fb9e38Please advise on the officially supported resolution.
rodrigovaz028 commentedon Oct 20, 2026
No Codex desktop para Windows, uma operação de preparação da aquisição oficial de Fastify 5.12.3 foi recusada com “CreateProcess rejected: blocked by policy”, antes de iniciar o processo ou baixar o pacote.
Feedback enviado: 01a0eed9-6461-75d0-9d58-b0d4dbf2efe1.
Precisamos identificar o controle responsável, a justificativa da recusa e o procedimento suportado para continuar, preservando as proteções existentes.
Abdomash commentedon Oct 27, 2026
I also experienced a similar issue with the Windows Codex CLI: an explicitly requested deletion of a folder inside my project workspace was rejected before PowerShell started with "blocked by policy", despite running with
--yoloandFull Access.This response in #54476 (https://github.com/openai/codex/issues/54476#issuecomment-6207845526) resolved it for me. I simply switched to "Approve for me" and retried the task successfully.
I even submitted feedback through Codex itself. Feedback thread ID: 01a17e99-e309-7f61-a884-5179c35ed541.
It appears that Codex flagged a command as requiring approval, and because
--yolosetsapproval_policy = "never", it immediately rejected the command because there was no approval path available.Given this issue and the multitude of similar/duplicate issues, I suggest codex team clarify how automatic approval review works and update the rejection message so we and the agents know what to do. I had to dig through GitHub issues (as Codex couldn't fix this) to find the solution above.
jay-researcher commentedon Nov 8, 2026
I am experiencing the same issue on Windows.
The authorized local UAT command was rejected before process creation with:
CreateProcess ... rejected: blocked by policy
No rule ID, matching policy, or supported recovery procedure was provided.
Feedback ID: 01a1afa5-46df-7742-9e14-f65b3f49d6f1
Windows: Microsoft Windows NT 10.0.26200.0 x64
Candidate version: CodeReviewer 7.4.35
Candidate commit: 1133f89fb4dc4f85eb070b68aeac5f99030649d3
Please identify the responsible policy and the supported recovery procedure.