Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Installed Windows package: 26.1002.7124.0, verified with Get-AppxPackage rather than the About dialog.
The local Codex executable reports codex-cli 0.162.0-alpha.2. These are separate version observations.
What subscription do you have?
Not collected.
What platform is your computer?
Native Windows x64: Microsoft Windows NT 10.0.26300.0.
PowerShell commands executed through Codex Desktop's bundled runtime. Exact PowerShell version was not collected.
What issue are you seeing?
An explicitly authorized Chrome launch was rejected before PowerShell executed, even with Full Access. The message was only:
exec_command failed: CreateProcess {
message: "Rejected(\"<redacted PowerShell invocation> rejected: blocked by policy\")"
}
The command launches a local Chrome executable, uses a dedicated browser profile, enables a debugging port, and opens an HTTPS website. The original website and private profile path are redacted.
The user then retried the launch under two other approval configurations. The results were:
| Effective per-turn configuration | Result |
|---|---|
Full Access: danger-full-access, approval_policy=never, reviewer user |
Immediate blocked by policy rejection; no Chrome launch from the denied call |
Workspace access: granular policy with sandbox_approval=false, rules=false, skill_approval=false, reviewer user |
Immediate rejection: approval required by policy, but AskForApproval::Granular.sandbox_approval is false |
Workspace access: approval_policy=on-request, reviewer auto_review; tool call specifies sandbox_permissions=require_escalated |
Approval completed and launch succeeded; a subsequent read-only check confirmed the Chrome process and a listener on 127.0.0.1:9445 |
The effective configurations above were checked against local turn-context records and Desktop's resolved turn-start configuration logs, not inferred solely from config.toml.
Ordinary read-only shell commands continued to work. The diagnostic assistant initially attributed the first rejection to automatic review of the debugging-port launch. The actual failed turn had reviewer user and policy never, so an automatic-review denial was not established. This illustrates why an actionable error matters.
What steps can reproduce the bug?
The following is a sanitized illustration of the original command shape, not an independently executed minimal reproducer. The public example URL and profile directory replace the original values.
Start-Process -FilePath 'C:\Program Files\Google\Chrome\Application\chrome.exe' -ArgumentList @(
'--remote-debugging-port=9445',
"--user-data-dir=$env:TEMP\codex-issue-browser-profile",
'--no-first-run',
'--no-default-browser-check',
'--new-window',
'https://example.com'
)- In Codex Desktop on Windows, use Full Access with effective approval policy
never. - Explicitly authorize execution of the browser-launch command through
exec_command. - Observe the pre-execution rejection with
blocked by policy. - Compare the effective approval policy before retrying. In this incident, the granular policy rejected the request because sandbox approval was disabled; the later
on-requestpolicy accepted an explicit escalation request and the original launch succeeded.
The original Full Access attempts included additional setup/probe commands. The later granular rejection and successful approved attempt used the standalone launch command. This was not a controlled experiment changing only one setting, and the outcome should not be interpreted as a pristine-profile reproduction.
What is the expected behavior?
Please make the denial identify the applicable command-safety heuristic and its interaction with the effective approval policy.
For example, explain that a URL-bearing process launch requires review, that never prevents that review even under Full Access, or that granular.sandbox_approval=false disables the applicable approval category. Indicate the supported review path when one exists.
If this URL-launch restriction is intentional, document it clearly for Full Access and expose enough information to distinguish it from an actual automatic-review denial or a filesystem permission failure. This report does not request unconditional approval of browser debugging, disabling protections, or bypassing a rejection.
Additional information
Source analysis consistent with the incident
The source tag matching the reported CLI version contains:
- Windows URL-launch classification: the PowerShell heuristic checks for an HTTP/HTTPS URL and a
Start-Processtoken. This branch does not inspect the remote-debugging flag. - Dangerous-command approval decision: dangerous commands become
ForbiddenunderNever, andPromptunderOnRequestorGranular. - Granular prompt rejection: sandbox prompts are rejected when the corresponding category is disabled.
- Generic rejection text:
DangerousCommandMatch::Otheris rendered asblocked by policy.
The original command contains both the URL and Start-Process, so this is a source-based explanation consistent with the observed failures. The tool error did not expose an internal rule identifier, and no instrumented trace of the classifier was collected.
Inspection found no prompt or forbidden entries in the user rule file. A local execpolicy check of the standalone command against that file returned matchedRules: []; this is only an explicit-file check, not proof that all runtime heuristics or configuration layers allow execution.
Related reports
- Windows execpolicy false positive when Start-Process and an unrelated URL appear in the same PowerShell script #40060 and Windows: Full Access rejects benign process launch + loopback health check on 0.153.4 #45050 concern the same broad Windows URL-launch heuristic, especially unrelated URLs in compound scripts.
- This report adds an actual URL-bearing browser launch and a three-configuration denial/approval comparison, focusing on diagnostics and approval-mode clarity rather than asserting the unrelated-URL false positive.
Evidence limits and redaction
Observed on October 9, 2026, using an existing installation and user configuration. A clean official-install/profile comparison was not performed, and the package version alone does not establish an unmodified binary.
No raw transcripts, browser profiles, screenshots, account identifiers, session/turn IDs, process IDs, private directories, authentication files, cookies, credentials, or complete configuration files are attached. Only sanitized technical excerpts are included.
Activity
github-actions commentedon Oct 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ZzuMrW commentedon Oct 9, 2026
Follow-up: URL removal/restoration comparison under Full Access
Additional tests were performed in the same Windows Desktop chat on October 9, 2026, after submitting this issue. The active permissions were again
danger-full-accesswithapproval_policy=never. Nosandbox_permissionsoverride was supplied to these launch calls.The user explicitly requested each test. The executable, debugging port, dedicated profile directory, and other launch flags were kept unchanged. Only the final HTTPS website argument was removed or restored.
exec_commandcompleted with exit code 0. A read-only process check found the Chrome main process, and a TCP check confirmed a listener on127.0.0.1:9445.CreateProcess ... rejected: blocked by policy; reported tool wall time 0.2 seconds.All three commands used this structure:
This is a redacted description, not executable PowerShell. The original profile directory and website are omitted. Tests B and C restored the actual original URL; no substitute example URL was tested.
This comparison strengthens the source-based explanation in the issue: a debugging-port launch was allowed when the URL was absent, while adding the URL to
Start-Processtriggered a repeatable denial undernever. It does not support attributing the block specifically to the debugging-port flag.The two denied calls did not execute the requested launch. They did not stop the browser from test A. The checks verified the process and listening port, not the contents of a browser window.
Limits: this was an ordered comparison on the existing installation/profile, not a clean-profile experiment. The browser was already running when tests B and C were attempted, and no internal classifier trace was collected. No security rules were edited. No raw logs, private paths, original website, process IDs, or session identifiers are attached.
Code locations for this comparison
These links use the
rust-v0.162.0-alpha.2source tag matching the observed local CLI version. Line numbers were checked against the complete repository files (including blank lines).is_dangerous_powershell_words, lines 38–55has_urlacross the PowerShell words and checks forStart-Process/related launch tokens. When both are present, the command is classified as dangerous. This condition does not inspect the debugging-port flag.args_have_url/looks_like_url, lines 305–333render_decision_for_unmatched_command_for_platform, lines 793–807NeverproducesForbidden;OnRequestandGranularproducePrompt. This explains why Full Access does not by itself permit the URL-bearing command undernever.prompt_is_rejected_by_policy, lines 216–238Granular.sandbox_approval is falseerror.dangerous_command_rejection_reason, lines 1110–1119DangerousCommandMatch::Othercase returns the genericblocked by policytext, without naming the URL-launch heuristic.The evidence-supported path is:
The no-URL / URL / unchanged-retry results are consistent with this path. They remain behavioral evidence plus source analysis, not an instrumented trace of the installed classifier.