Skip to content

Codex App (Windows): command denied "blocked by policy" with no reason, and /approve isn't available to review the denial #58169

Open

Description

@Solve4x-ai

What version of the Codex App are you using (From "About Codex" dialog)?

26.1023.6621.0 (OpenAI.Codex package; runtime OpenAI.CodexPrimaryRuntime 26.1020.978.0)

What subscription do you have?

ChatGPT Business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

In the Codex desktop app on Windows, the execution tool rejected a combined setup command with only "blocked by policy." No reason was given, and it didn't say which rule or which part of the command triggered the denial.

The command combined a Connect setup step (-create-device-key and -setup-launch) with an unrelated file-restoration step. The task can't move on to installed testing until the denial is resolved.

What steps can reproduce the bug?

  1. In the Codex desktop app (Windows), run a task where the agent proposes a single combined shell command that includes a device-key/launch setup step plus a file-restoration step.
  2. The execution tool denies it with "blocked by policy" and no further detail.
  3. Following the sandboxing denial guidance, type /approve in the Codex message box.
  4. /approve is sent as an ordinary chat message. No denied-actions picker opens and no approval override is applied.

OpenAI Support chat confirmed that /approve is documented only for the Codex CLI, not the desktop app.

What is the expected behavior?

  • The desktop app should offer a supported way to review and approve (or reject) a denied action, matching what /approve does in the CLI.
  • The denial should say which rule or which part of the command triggered it.
  • For a bundled command, it should be possible to approve only the needed part (here, the setup step) without the unrelated file-restoration step.

Additional information

No GPU driver, Windows security or TPM changes were made or appear to be involved. Session transcript can be provided if needed.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 29, 2026
  2. jjones447 commented on Oct 30, 2026

    @jjones447

    Additional Windows desktop occurrence of the unexplained pre-process command refusal. This involved local Docker service recovery rather than the setup operation in the original report; a common underlying cause is not established.

    The execution tool returned exec_command failed: CreateProcess / Rejected / blocked by policy before starting a process. It exposed no matched rule or reason, nested execution/decision identifier, enforcing component, approval request or review/disposition endpoint.

    Correlation metadata for the product team:

    • OUTER orchestration call: call_c6bb0c0081d145259252d3e6531ce470
    • Submitted: 2026-10-30T16:52:10.716Z
    • Rejection returned: 2026-10-30T16:52:10.808Z
    • Elapsed:92ms

    The outer call ID is not claimed to be a nested policy-decision ID. The user authorized restoring their service. No explanation or supported action-specific review route is available in the tool response. We have not tried another executor, rewritten the blocked operation or changed security/approval settings to evade it.

    What supported private channel can correlate this outer call/time to the nested decision, matched rule/reason and responsible disposition handler? This report requests diagnosis and a supported resolution path, not a bypass.

    No command payload, private filesystem/network details, game data, credentials, raw logs or session transcript are attached. No current app-version number is asserted without verification.

    [pc2-codex-15] [LUNA]

  3. maanel1999 commented on Oct 31, 2026

    @maanel1999

    Additional Windows occurrence: a verification command was rejected before execution; possible prose-token false positive.

    The execution tool returned CreateProcess Rejected with only blocked by policy for an authorized verification command. The attempted command read and hashed local evidence, used pure validators, read a loopback endpoint and would create one local verification receipt. It did not dispatch a native model task. The command did not execute and the receipt was not created.

    Correlation:

    • Outer orchestration call: call_68f614ac60f84a7780001004a9ee18c3
    • Submitted: 2026-10-31T00:00:20.123Z
    • Returned: 2026-10-31T00:00:20.494Z

    This is an outer tool-call ID, not a policy decision ID.

    Current tool runtime after an owner app restart: codex-cli 0.166.0-alpha.5.1. The running app's configured updater reports up_to_date, version 26.1027.30824 / build 22943 / prod. The exact runtime binary at the earlier rejection has not been established.

    Relevant current configuration: approval_policy=never, approvals_reviewer=user, sandbox_mode=danger-full-access. No setting was changed for this investigation. The rejection supplied no matched rule, reviewer rationale or supported disposition handle.

    The official source for the current runtime tag retains the Windows opaque-script classifier that can combine a pipe, URL and standalone prose token start into a dangerous-command match. Those features occur in the rejected command. This is a suspected false positive; exact runtime tokenization and branch attribution are unknown.

    Please correlate the call/time with the actual enforcing rule and provide a supported action-specific resolution or corrected release. No private project text, command payload, raw session, credentials or local personal paths are included.

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