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
CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
The exact rejected turn records approval_policy=never, sandbox_policy.type=danger-full-access; Full Access had been selected.
The single request would create a separate local revision package, edit two UI files, prepare synthetic preview data, and start a loopback preview. It was rejected as a whole: the new package and listener were absent afterward, while the old package and saved records remained intact.
The original payload contains no Start-Process, Stop-Process, or Remove-Item. It contains a loopback HTTP URL as a configuration value, a Python management tool's ordinary positional start argument, a here-string and pipelines.
A later read-only diagnostic request, intended only to parse the saved command as PowerShell AST data, was also rejected before execution. No parser result was produced.
This appears consistent with the opaque-script / ordinary start argument variant discussed in #40060 and the diagnostic failure in #43633. The corresponding public tag still falls back to whole-script classification when a pipe is present; the opaque classifier can associate a launcher-looking token with a separate URL. Its heuristic decision maps Never to forbidden and OnRequest to a prompt:
This is source-based evidence, not a captured internal decision trace or a confirmed common root cause. The assistant's initial attribution to automatic review was corrected: official documentation says auto-review does not run with approval_policy=never.
The user tried selecting the normal Ask for approval mode, but a subsequent affected-chat turn still recorded approval_policy=never, danger-full-access, and approvals_reviewer=user. The user later explicitly chose to keep Full Access / never and continue independent development. Manual-approval recovery therefore remains unverified; no successful workaround or installed classifier fix is claimed. No denied request has been reformulated or routed through another executor, and no allow rule or bundled executable has been modified. Independent development is continuing.
Update: the user then reported exiting their third-party antivirus application and explicitly requested a retry. The same read-only diagnostic request was submitted once, unchanged, through the original tool and was again rejected before process creation with the same generic error. Antivirus shutdown was user-reported, not independently verified at driver/service level; this is not proof that all endpoint protection was inactive. It does show that this user action did not resolve the observed refusal. No project operation was executed by that diagnostic retry.
Could maintainers identify the responsible decision path, confirm the supported per-action approval recovery for this case, and expose a concrete reason/correlation identifier instead of the generic error? Please also clarify which supported desktop release addresses the opaque-script variant. No project source, raw commands/logs, credentials, private paths, or full session transcript are attached.
Additional observation from Codex Desktop on Windows, tested today (2026-11-10): a full Codex restart restored browser control, but did not resolve the process-start rejection.
The session uses approval_policy = "never" and sandbox_mode = "danger-full-access". Full Access and browser access are enabled. The local rules file contains allow rules only. The rejected command uses the bundled PowerShell from primary runtime 26.1104.2876.0.
Before restarting Codex:
Launching a locally built Windows test application via PowerShell Start-Process was rejected before execution with exec_command failed: CreateProcess … rejected: blocked by policy. No approval prompt or specific policy reason was shown. Ordinary read-only shell commands still worked.
Browser control independently failed with Local browser use is disabled in Work settings, although browser access was enabled.
After fully restarting Codex:
Browser control worked again. The first localhost request returned ERR_CONNECTION_REFUSED because the development server was not running. Starting the prepared local web-server script succeeded; browser navigation, sign-in, UI interactions and screenshots then worked.
Retrying the Windows application launch still returned the same blocked by policy rejection. Cleaning up stale local development-server processes did not change that result.
No security settings, rules or bundled binaries were changed to obtain these results.
Read-only inspection of the installed browser service located the Work-settings error in its per-turn signed access-response check. This identifies the client-side throw site, not why access was denied. We do not have an internal policy decision trace, and cannot establish whether the browser and process-start failures share a cause. In particular, I am not attributing this to approval auto-review under approval_policy = "never".
Could the rejection expose the specific policy/rule and a diagnostic correlation ID? At present, the restart fixes one blocked capability while the other remains unexplained.
Update from 2026-11-12: this still occurs with codex-cli 0.167.0-alpha.4.1, approval_policy=never and sandbox_mode=danger-full-access.
The corresponding source tag provides a plausible explanation for the latest local-server rejection:
Windows command classification falls back to opaque classification when the script contains a pipe. It can then associate a URL elsewhere in the script with Start-Process. Our rejected command set a loopback URL in an environment variable, launched a local EXE and piped its process information to Select-Object.
Execution-policy handling maps a dangerous-command match to Forbidden under Never, before the ordinary unrestricted-access path.
A subsequent read-only PowerShell request to fetch these source files and search their text was also rejected before execution. It contained URLs and Start-Process only as search data; it would not launch a process.
These observations fit an overly broad heuristic, but we still have no internal decision trace proving which rule fired. The local rules contain allow entries only; no security settings, rules or bundled binaries were changed. This is not an attribution to approval auto-review.
Could the rejection identify the matched classifier/reason, and could the quoted-search-text and unrelated-configuration-URL cases be covered by regression tests? A full-access session currently turns these ordinary development operations into repeated manual launches.
CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
maboooo commentedon Nov 9, 2026
Additional Windows desktop occurrence, reported with the affected user's authorization.
On 2026-11-08 at 18:54:03 UTC, an authorized local development request was rejected before execution with only
rejected: blocked by policy.Environment and verified evidence:
OpenAI.Codex 26.1103.4239.0.codex-cli 0.167.0-alpha.3.2.approval_policy=never,sandbox_policy.type=danger-full-access; Full Access had been selected.Start-Process,Stop-Process, orRemove-Item. It contains a loopback HTTP URL as a configuration value, a Python management tool's ordinary positionalstartargument, a here-string and pipelines.This appears consistent with the opaque-script / ordinary
startargument variant discussed in #40060 and the diagnostic failure in #43633. The corresponding public tag still falls back to whole-script classification when a pipe is present; the opaque classifier can associate a launcher-looking token with a separate URL. Its heuristic decision mapsNeverto forbidden andOnRequestto a prompt:This is source-based evidence, not a captured internal decision trace or a confirmed common root cause. The assistant's initial attribution to automatic review was corrected: official documentation says auto-review does not run with
approval_policy=never.The user tried selecting the normal Ask for approval mode, but a subsequent affected-chat turn still recorded
approval_policy=never,danger-full-access, andapprovals_reviewer=user. The user later explicitly chose to keep Full Access / never and continue independent development. Manual-approval recovery therefore remains unverified; no successful workaround or installed classifier fix is claimed. No denied request has been reformulated or routed through another executor, and no allow rule or bundled executable has been modified. Independent development is continuing.Update: the user then reported exiting their third-party antivirus application and explicitly requested a retry. The same read-only diagnostic request was submitted once, unchanged, through the original tool and was again rejected before process creation with the same generic error. Antivirus shutdown was user-reported, not independently verified at driver/service level; this is not proof that all endpoint protection was inactive. It does show that this user action did not resolve the observed refusal. No project operation was executed by that diagnostic retry.
Could maintainers identify the responsible decision path, confirm the supported per-action approval recovery for this case, and expose a concrete reason/correlation identifier instead of the generic error? Please also clarify which supported desktop release addresses the opaque-script variant. No project source, raw commands/logs, credentials, private paths, or full session transcript are attached.
UweKeim commentedon Nov 10, 2026
Additional observation from Codex Desktop on Windows, tested today (2026-11-10): a full Codex restart restored browser control, but did not resolve the process-start rejection.
The session uses
approval_policy = "never"andsandbox_mode = "danger-full-access". Full Access and browser access are enabled. The local rules file contains allow rules only. The rejected command uses the bundled PowerShell from primary runtime 26.1104.2876.0.Before restarting Codex:
Start-Processwas rejected before execution withexec_command failed: CreateProcess … rejected: blocked by policy. No approval prompt or specific policy reason was shown. Ordinary read-only shell commands still worked.Local browser use is disabled in Work settings, although browser access was enabled.After fully restarting Codex:
ERR_CONNECTION_REFUSEDbecause the development server was not running. Starting the prepared local web-server script succeeded; browser navigation, sign-in, UI interactions and screenshots then worked.blocked by policyrejection. Cleaning up stale local development-server processes did not change that result.Read-only inspection of the installed browser service located the Work-settings error in its per-turn signed access-response check. This identifies the client-side throw site, not why access was denied. We do not have an internal policy decision trace, and cannot establish whether the browser and process-start failures share a cause. In particular, I am not attributing this to approval auto-review under
approval_policy = "never".Could the rejection expose the specific policy/rule and a diagnostic correlation ID? At present, the restart fixes one blocked capability while the other remains unexplained.
UweKeim commentedon Nov 12, 2026
Update from 2026-11-12: this still occurs with
codex-cli 0.167.0-alpha.4.1,approval_policy=neverandsandbox_mode=danger-full-access.The corresponding source tag provides a plausible explanation for the latest local-server rejection:
Start-Process. Our rejected command set a loopback URL in an environment variable, launched a local EXE and piped its process information toSelect-Object.ForbiddenunderNever, before the ordinary unrestricted-access path.Start-Processonly as search data; it would not launch a process.These observations fit an overly broad heuristic, but we still have no internal decision trace proving which rule fired. The local rules contain allow entries only; no security settings, rules or bundled binaries were changed. This is not an attribution to approval auto-review.
Could the rejection identify the matched classifier/reason, and could the quoted-search-text and unrelated-configuration-URL cases be covered by regression tests? A full-access session currently turns these ordinary development operations into repeated manual launches.