Skip to content

Windows Desktop: opaque URL-launch rejection in Full Access and granular approvals (0.162.0-alpha.2) #52543

Open

Description

@ZzuMrW

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'
)
  1. In Codex Desktop on Windows, use Full Access with effective approval policy never.
  2. Explicitly authorize execution of the browser-launch command through exec_command.
  3. Observe the pre-execution rejection with blocked by policy.
  4. Compare the effective approval policy before retrying. In this incident, the granular policy rejected the request because sandbox approval was disabled; the later on-request policy 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:

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

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

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 9, 2026
  2. github-actions commented on Oct 9, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. ZzuMrW commented on Oct 9, 2026

    @ZzuMrW
    Author

    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-access with approval_policy=never. No sandbox_permissions override 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.

    Test Change to the standalone launch command Observed result
    A Remove the final URL argument exec_command completed with exit code 0. A read-only process check found the Chrome main process, and a TCP check confirmed a listener on 127.0.0.1:9445.
    B Restore the original HTTPS URL argument Rejected before execution with CreateProcess ... rejected: blocked by policy; reported tool wall time 0.2 seconds.
    C Retry test B unchanged The same pre-execution rejection; reported tool wall time 0.2 seconds.

    All three commands used this structure:

    Start-Process -FilePath <installed chrome.exe path> -ArgumentList @(
      '--remote-debugging-port=9445',
      '--user-data-dir=<same dedicated profile directory>',
      '--no-first-run',
      '--no-default-browser-check',
      '--new-window'
      [, <original HTTPS URL, present only in tests B and C>]
    )
    

    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-Process triggered a repeatable denial under never. 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.2 source tag matching the observed local CLI version. Line numbers were checked against the complete repository files (including blank lines).

    Stage Function and exact source location Behavior relevant to the tests
    Detect URL-bearing process launches is_dangerous_powershell_words, lines 38–55 Computes has_url across the PowerShell words and checks for Start-Process/related launch tokens. When both are present, the command is classified as dangerous. This condition does not inspect the debugging-port flag.
    Recognize HTTP/HTTPS URLs args_have_url / looks_like_url, lines 305–333 Scans arguments for URL-looking content, parses the candidate URL, and accepts the HTTP/HTTPS schemes.
    Choose deny versus review render_decision_for_unmatched_command_for_platform, lines 793–807 For dangerous commands, Never produces Forbidden; OnRequest and Granular produce Prompt. This explains why Full Access does not by itself permit the URL-bearing command under never.
    Reject a disabled approval category prompt_is_rejected_by_policy, lines 216–238 A non-rule prompt is rejected when the granular policy disallows sandbox approvals. This matches the earlier explicit Granular.sandbox_approval is false error.
    Render the opaque error dangerous_command_rejection_reason, lines 1110–1119 The DangerousCommandMatch::Other case returns the generic blocked by policy text, without naming the URL-launch heuristic.

    The evidence-supported path is:

    Start-Process + HTTPS URL
    → Windows URL-launch heuristic classifies the command as dangerous
    → approval_policy=never maps it to Forbidden
    → generic "blocked by policy" rejection
    

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions