Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
1.2026.190.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows 11 Home, version 25H2, build 26200.9711, x64
What issue are you seeing?
Codex on Windows fails to execute a local security repair command with the following error:
exec_command failed: CreateProcess
Rejected(...)
rejected: blocked by policy
Full Access is enabled.
The session configuration previously reported:
sandbox_mode = danger-full-access
approval_policy = never
No approval request is generated. /approve shows no available commands, and /debug-config is interpreted as plain text.
The operation was intended to restart only a local web dashboard and rotate a compromised password.
The available sandbox logs do not contain the rejection message. They show both mxc and elevated selections, but neither has been conclusively linked to the failed command.
What steps can reproduce the bug?
Feedback ID: 01a14589-8e19-7c10-8514-a5d29e26326e
What is the expected behavior?
Codex should either execute an authorized operation within the effective sandbox policy or provide a specific, actionable explanation of which policy prevents it.
If an approval is required, the application should expose an appropriate approval workflow.
The user should be able to apply a narrowly scoped security repair without disabling general protections or affecting unrelated processes.
Additional information
Windows: 11 Home 25H2, build 26200.9711, x64.
ChatGPT Windows application version: 1.2026.190.0.
Sandbox log entries include:
Windows sandbox selection: mxc
MXC availability: true
Windows sandbox selection: elevated
The effective sandbox mode at the moment of rejection remains unconfirmed.
CODEX_HOME was not defined in the inspected shell.
The default .codex/.sandbox/sandbox.log was absent, but two other sandbox log files existed.
Feedback ID:
01a14589-8e19-7c10-8514-a5d29e26326e
No security settings were changed, and the blocked command was not retried.
Please advise how to identify the effective blocking policy and resolve this issue safely.
Activity
github-actions commentedon Oct 17, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
PowerBIIT commentedon Oct 18, 2026
Additional bounded diagnostic evidence from Windows desktop:
CreateProcess: Rejected(... rejected: blocked by policy).approval_policy=never,sandbox_policy.type=danger-full-access, andpermission_profile.type=disabled.Could maintainers clarify which supported diagnostic exposes the deciding policy/reason for this pre-process rejection, and the supported resolution if the operation should be permitted? Full Access alone has not explained the denial. We have not disabled security settings or retried the rejected effect through an alternative executor.
No project name, source code, command contents, logs, conversation history, session identifiers, credentials, or account details are included.
bry-gif commentedon Oct 18, 2026
Additional file-deletion reproduction and approval-path result, 18 October 2026 (Windows desktop).
Environment: the bundled executable reports
codex-cli 0.163.0-alpha.10.2. The desktop application version was not independently established for this reproduction.An owner-authorized cleanup of one obsolete project-owned JPEG (85,878 bytes), inside the active project workspace, was rejected before PowerShell process creation:
The attempted PowerShell command verified the exact resolved file path and checked for reparse points before using non-recursive
Remove-Item -LiteralPath ... -Force. The observed error was a tool/runtime admission refusal, with no PowerShell output or Windows access-denied error.At that rejection, the chat supplied Full access settings (
danger-full-access, approval policynever). Read-only inspection of the user configuration also foundapprovals_reviewer = "user". The inspected user rules file contained 12 allow rules and no prompt/forbidden rules. A read-onlyexecpolicy checkfor a simplified single-file removal returnedmatchedRules: []; this checks only the supplied rules file and is not evidence that every runtime or managed policy permits the action. Inspected current-thread and desktop logs did not expose a deciding rule or rationale. The source of the refusal remains unresolved.The owner then explicitly changed this chat to Ask for approval. The supplied runtime permissions changed to workspace-write, and an exact-file request was submitted through the supported
require_escalatedapproval route. It revalidated the directory/file types, resolved target, byte length and SHA-256 before removal. After approval, PowerShell returned exit code 0:{"RemovedFiles":1,"LogicalBytesRemoved":85878,"StillExists":false}This establishes a working approved route for that single action after the owner-controlled permission change. It does not establish the cause of the original Full access refusal, prove that all deletions are fixed, or test any recursive dependency cleanup.
Please expose the deciding policy and an actionable review path for this class of pre-process rejection. If non-recursive, authorized workspace cleanup is intentionally blocked under Full access/never, the UI/error should explain that restriction and the supported next step. Users should not need to diagnose an unexplained denial or manually approve every routine project action.
This report contains no private project paths, account details, credentials, raw logs, screenshots or session transcript.
Zeusnee0316 commentedon Oct 21, 2026
Additional Windows desktop incident: a local source edit was rejected before execution (2026-10-20).
This is a separate incident from the read-only diagnostic described in #53977; I am not asserting an identical root cause.
Observed result
blocked by policy.danger-full-access) with approval policynever. These settings do not establish permission from every enforcement layer.Version and evidence limits
Requested supported resolution
No project name, private paths, full command, source files, database contents, credentials, account identifiers, session/call identifiers, or raw logs are attached. The original incident is preserved locally; please specify an appropriate private correlation channel if needed. This report requests diagnosis and a supported resolution, not a bypass.
robineverswift commentedon Oct 25, 2026
Additional successful approval-path comparison from Windows desktop, observed 2026-10-25. Consolidating #56826 here because the core behavior and supported recovery overlap with the earlier file-deletion report.
danger-full-access,approval_policy=never). Explicitly authorized removal of identified application diagnostics/cache files was rejected before PowerShell started withCreateProcess ... rejected: blocked by policy; those rejected attempts deleted nothing.execpolicy checkagainst that file returnedmatchedRules: []. This does not cover every enforcement layer or identify the cause.workspace-write; the normalrequire_escalatedrequest with a specific cleanup justification was then approved and succeeded.The bundled CLI queried during diagnosis reported
0.164.0-alpha.11.1; this is not an independently verified desktop app version. The scripts had the same bounded purpose and checks, but the successful version tolerated missing directories, so this was not a byte-identical controlled experiment. The original enforcing rule remains unknown.This adds a successful multi-file result through the supported human-approval route, not proof of a universal deletion fix. Closing #56826 as a duplicate to keep the discussion together.
No private paths, usernames, credentials, session identifiers, raw logs or conversation transcripts are included.
tmaslancev108-ui commentedon Oct 25, 2026
I am experiencing a similar issue in the Codex desktop environment on Windows.
Incident: October 25, 2026, 14:45:26 Moscow time.
Environment:
approval_policy=never,sandbox_policy=danger-full-access.exec_command, launching PowerShell.Observed behavior:
The command was rejected before PowerShell started:
CreateProcess ... rejected: blocked by policyNo actionable policy explanation, rule identifier, or approval prompt was provided. The intended local development changes and tests were not executed.
The command involved local application code and synthetic tests. No production services or physical devices were affected.
I have already submitted feedback through the application. The exact call ID and command have been preserved for private investigation.
I have not bypassed the restriction, disabled security protections, or retried the blocked operation through another execution method.
Could the maintainers please clarify:
Thank you.
zhangzz3 commentedon Oct 26, 2026
I’m experiencing a similar issue in the Codex desktop app on Windows.
Observed: October 26, 2026, UTC+8.
Environment and authorization
sandbox_mode = "danger-full-access"andapproval_policy = "never".What happened
I asked Codex to launch a fresh browser process with an isolated temporary profile to investigate a publishing-result detection bug.
The launch attempt was rejected before the command ran. A simpler attempt to open Chrome with a new temporary profile—without injecting cookies or submitting any content—was also rejected.
The tool returned:
Read-only shell commands continued to work, but the browser-launch commands did not execute. Reconfirming my authorization did not resolve the issue.
Diagnostics performed
These checks do not cover every enforcement layer, so I cannot identify the policy responsible. The assistant initially described this as an automatic approval rejection, but that attribution was not verified; the confirmed error is only
blocked by policy.Expected behavior
An explicitly authorized browser-launch operation should either execute or return a specific denial reason and a supported recovery path.
Actual behavior
The operation is rejected without an actionable explanation or an approval prompt. The independent-browser test remains incomplete.
Similar browser tests work on my other computers, although I have not established a version-matched comparison.
Could the maintainers clarify which enforcement layer can produce this error under Full Access, where its decision details can be inspected, and how users should recover through the supported approval flow?
demonslay677 commentedon Oct 26, 2026
Additional verified recovery on Windows desktop, 26 October 2026: switching the affected chat from Full Access to Ask for approval, then approving the specific restart request, resolved this incident.
Environment and diagnosis
26.1021.31345, build21828, production channel; the app update checker reported up to date.0.164.0-alpha.11.1.approval_policy=neverandsandbox_policy=danger-full-access. Desktop logs resolved the reviewer asuser.The rejected operation was a bounded restart of one idle, owned localhost dashboard after identity and activity checks. It failed before execution with
CreateProcess … rejected: blocked by policy.Recovery that worked
After the switch, the context reported
workspace-write. Codex submitted the restart usingsandbox_permissions=require_escalatedwith an explicit justification. It completed with exit code 0 and a new server process. A sandboxed follow-up check stalled; a separately approved read-only localhost verification then succeeded.The running dashboard loaded the intended fix: all 131 history runs remained, the 33 false skipped-record warnings fell to zero, and the running-version endpoint reported no pending restart.
No execution-rule overrides, Codex configuration-file edits, or binary patches were applied. This verifies recovery through the supported human-approval workflow for this operation, not a universal fix or a byte-identical controlled experiment.
Remaining issue
The exact original classifier match is still unconfirmed. The compound script included localhost HTTP checks and a separate process launch, making the Windows URL-launch heuristic a plausible explanation. #54076 addresses related false positives for independent literal commands but retains conservative handling for pipelines and script state; we have not established that it fixes this case.
It would help if the rejection identified the deciding rule and, when applicable, explained that an interactive approval mode is needed instead of returning only “blocked by policy.”
maxitaaaa commentedon Oct 26, 2026
Additional authorized static-deployment case observed on 2026-10-26 (UTC+8), in Codex Desktop for Windows.
This adds a deployment example to the local-repair/deletion cases above. It is one observed incident, not a deterministic minimal reproduction or proof of a shared root cause.
Observed operation and error
exec_commandintended to launch the installed Node/Wrangler CLI was rejected before process creation withCreateProcess ... rejected: blocked by policy.ProcessStartInfo/CreateNoWindow, and capture sanitized output. No secret values or complete private command are included here.Verified settings and limits
approval_policy=neverandsandbox_mode=danger-full-access.user. Auto-review was not enabled.default.ruleshad no explicit forbid rules. This does not establish that other enforcement layers permitted the action.workspace-write/restricted-network permissions. The original deployment has not been retried under that new context, so no claim is made that the permission selector failed or that this particular deployment is fixed.Impact and requested clarification
The opaque error left the assistant unable to distinguish an intentional non-overridable restriction from an eligible operation requiring a different approval path. It also initially paused unrelated authorized backup work unnecessarily; that independent work was subsequently resumed.
Please expose a privacy-safe enforcement-layer identifier and denial reason, and explain the supported action-specific review procedure when one exists. Legitimate safety denials should remain enforced; this is not a request to disable protections or permit policy circumvention.
No raw logs, session history/identifiers, screenshots, credentials, account details, server addresses, private paths, repository names, or source files are attached.
kadones70-svg commentedon Nov 5, 2026
Additional Windows incident, observed 5 November 2026: an explicitly authorized deletion of two generated renderer build directories was rejected before PowerShell started.
Observed rejection and effective context
exec_command failed: CreateProcess { message: "Rejected(... rejected: blocked by policy)" }.2026-11-05T02:36:46.046Z.call_613cbcb00c1f417bb9e0853542e93280.approval_policy="never"andsandbox_policy={"type":"danger-full-access"}.The command used native PowerShell: resolve the explicitly named project temporary directory and two explicitly named child directories; verify containment and reparse-point constraints; then use
Remove-Item -LiteralPathwith-Recurse -Force -ErrorAction Stop. Private absolute paths are omitted.Read-only diagnosis
codex execpolicy checkagainst the original command returned{"matchedRules":[]}. This checks the supplied local rules, not every runtime enforcement layer.configRequirements.requirements=null. This does not reconstruct the historical decision.Subsequent result
A later
codex doctorrun found a stale/unreachable app-server control socket. The supportedcodex app-server daemon startrestored that connection; daemon status then reported running (managed server 0.164.0, CLI 0.166.0).After the owner explicitly requested a fresh deletion attempt, one attempt through the same execution tool and native PowerShell route was again rejected before process creation with
blocked by policy. Read-only follow-up confirmed both target directories remained, with 263 files in each. Thus the daemon connection repair did not resolve the deletion rejection.No alternate executor, security-setting change, or policy bypass was used. This submission performs no further deletion attempt.
Requested clarification
Please identify the deciding enforcement layer and reason, and explain the supported action-specific review/remediation procedure if this is a false positive. The successful Ask for approval examples above may be relevant, but that mode change has not been tested for this incident. This report does not establish a shared root cause with the other cases.
The owner authorized posting this bounded diagnostic report. No source files, credentials, personal files, private absolute paths, screenshots, or full conversation logs are attached.
Chris-Booth commentedon Nov 7, 2026
Additional bounded Windows desktop reproduction, observed 7 November 2026. This has the same rejection text as this issue; a shared root cause has not been established.
Environment
OpenAI.Codex_26.1029.7803.0_x64(observed in the running app's executable path, not read from About).codex-cli 0.166.0-alpha.6.10.0.26300, x64.7.6.5.sandbox_mode=danger-full-access,approval_policy=never, filesystem permission profile unrestricted. The owner explicitly confirmed Full Access and authorized the exact cleanup, including again after the first rejection.Minimal observed action
A generated coverage-inventory text file in the owner's task output under Documents was verified to exist: 10,375 bytes, Archive attribute, not read-only. Its parent and contents had no reparse points. Read/list/hash commands and ordinary file creation work in this session.
The following is the actual single-file command shape, with the personal/task path redacted:
It was rejected by
exec_commandwith:The tool returned a launch rejection rather than PowerShell stdout/stderr or a filesystem access error. The target remains present. An approved batch of obsolete generated test/coverage folders and a literal single-folder recursive removal were rejected in the same way before this narrower file-only test. No deletion succeeded.
Expected / request
Please identify which policy/reviewer layer is enforcing this denial and why the narrow explicitly authorized generated-file cleanup is rejected under the recorded Full Access / never configuration. If a mandatory restriction intentionally applies, return an actionable reason and supported owner-review/recovery path rather than only
blocked by policy.No blanket safety bypass is requested. Further execution attempts have stopped. No security settings were changed during these checks, and no alternative execution mechanism was used to evade the rejection.
Submitted with AI assistance at the owner's explicit request. No credentials, project identity, personal paths, brokerage/trade data, account identifiers, raw logs or session transcript are attached.
karinekullman commentedon Nov 17, 2026
I have a similar issue: sandbox_approval = false blocks Git operations despite “on-request” configuration, observed 17 nov 2026
On Windows, “Approve for me” is missing from both the settings and the permissions control below the message box. The app is up to date, and Standard permissions is enabled. The local configuration specifies approval_policy = "on-request" and approvals_reviewer = "user". No explicit guardian_approval = false setting was found. However, requests for elevated access are rejected with sandbox_approval = false. Git cannot create .git/index.lock. The problem persists in new chats and after restarting and reinstalling the app.
Anfet commentedon Nov 23, 2026
Additional Windows VS Code incident observed on 24 November 2026. The session reported
sandbox_mode=danger-full-access,approval_policy=never, and unrestricted filesystem access. An explicitly requested Android test link was rejected byexec_commandbefore PowerShell started withCreateProcess ... rejected: blocked by policy. No deciding rule or rationale was returned; ordinaryadb devicesand device input commands worked.The rejected command had the shape
adb -s <device> shell am start -a android.intent.action.VIEW -d 'https://<host>/<path>' <package>. The inspected user rules had nopromptorforbiddenentries, and the project shell guard only restricts shared ADB server operations. This does not exclude another policy layer.After the user changed the session to an approval-enabled, workspace-restricted mode, an escalation for a different, explicitly approved test link executed and reached Android. A narrowly scoped allow rule was saved for that exact command. Returning to Full Access/never and requesting another URL again produced the generic rejection. This establishes an approved path for the test link, not the cause of the later denial.
Source-level hypothesis: the extension-bundled binary reports
0.171.0-alpha.13(the currently configured local CLI reports0.171.0; the executor version at the earlier rejection was not independently established). In the matching tagged Windows command classifier, opaque PowerShell command analysis can classify astarttoken combined with a URL as a URL launch. Ourstartbelongs to Android'sam start, not PowerShellStart-Process. Depending on the parsing path, this may explain the match; the available runtime log does not identify the branch, so this remains a hypothesis rather than a confirmed root cause.Could the error expose the actual decision source and matched heuristic or rule, along with an actionable review path when Full Access is active? No private addresses, project identifiers, account details, credentials, or raw logs are included.