Skip to content

Windows exec_command: generic "blocked by policy" before launch in Full Access, without actionable reason #56227

Open

Description

@optik8

What version of the Codex App are you using?

Windows package OpenAI.Codex 26.1016.8120.0 (x64), read from the installed package rather than the About dialog.
Bundled executable: codex-cli 0.163.0-alpha.11.1.
The affected saved session records CLI version 0.163.0-alpha.11.

What subscription do you have?

Not recorded for this report.

What platform is your computer?

Native Windows x64, OS version 10.0.26100. Non-administrator process.

What issue are you seeing?

Two agent exec_command calls were rejected before PowerShell launched with only a generic policy message. The task was already using Full Access; this report asks for an actionable denial reason and a supported diagnostic/recovery path, not for safeguards to be disabled.

Redacted return excerpt (command text omitted):

exec_command failed: CreateProcess
Rejected(... rejected: blocked by policy)

Observed on 22 October 2026:

  1. 15:11:22.695 UTC: starting a user-requested local application interface on loopback with its general collection engine explicitly disabled.
  2. 16:03:18.168 UTC: stopping an isolated test HTTP server and removing two test export directories. That script checked the unique listening PID and command identity, resolved target containment within the test workspace, and checked the expected test identifiers and file names before removal.

The refusal covered the entire second command, so the returned error does not identify whether process termination, directory cleanup, another operation, or some other rule caused the decision. It is not established that either denial was erroneous.

What steps can reproduce the bug?

These are two observed incidents, not a deterministic minimal reproduction. The affected actions have not been retried to probe or bypass the refusal.

The saved turn contexts at the time of the incidents record:

approval_policy = "never"
sandbox_mode = "danger-full-access"

Read-only checks also found:

  • The local project is trusted.
  • No project-level override of the approval or sandbox settings.
  • Eleven local command rules, all allow; no local forbidden or prompt rule.
  • No local auto_review configuration.
  • No requirements, managed-config, or hook file in the specific user/ProgramData locations inspected. This does not establish the absence of remotely managed policy.
  • No more detailed execution-policy decision found in the inspected Desktop logs.
  • Other ordinary read, edit, and test commands completed successfully.

The official Auto-review documentation describes interactive boundary-crossing approvals and says that never does not create those requests. This is why the generic message alone is insufficient to identify the component responsible here.

What is the expected behavior?

If an action must be denied, preserve that decision but return enough information to understand and address it:

  • Identify the rejecting policy/enforcement layer.
  • Provide a specific rationale or stable diagnostic code.
  • Identify the operation responsible when a compound command is rejected.
  • Explain the supported user approval or recovery route, when one is available.

Please clarify whether this message can originate outside normal sandbox Auto-review in Full Access, and how to retrieve the decision details without changing permissions or retrying the denied action.

Additional information

A local diagnostic was prepared from the two incidents. This public report includes its technical findings but intentionally omits raw session transcripts, session identifiers, host/user names, project names, private paths, credentials, and unrelated logs.

No security settings were changed and no denied action was retried during this investigation.

Related: #56169 mentions the same generic rejection while primarily reporting a shell-selection mismatch. No shared cause has been established.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 22, 2026
  2. smog1998-stack commented on Oct 27, 2026

    @smog1998-stack

    Additional independent incident — Windows, 2026-10-27

    Codex rejected an owner-authorized edit of one task-local file, .github/scripts/ren124-release-evidence.mjs. Tool chain: functions.exec → tools.exec_command. The intended PowerShell command would use SSH to our own NixOS development laptop.

    Observed error: exec_command failed: CreateProcess … rejected: blocked by policy.

    According to the retained receipts, the rejection occurred before the intended process chain or edit started. We have not reproduced the refusal or changed security settings.

    The available records place the incident after a checkpoint at 15:31:22 UTC and before a reporting message at 15:37:50.263 UTC. The exact denial timestamp and tool-call ID are unknown. The raw display contains …14621 chars truncated…; the full payload was not retained or reconstructed.

    The rejecting policy, detailed reason, effective per-call permissions and app version remain unknown. A later local configuration-file observation is not proof of the denied subagent's effective permissions. No separate Auto-review denial has been confirmed.

    Existing feedback/session reference: 01a12785-1341-76d0-8913-a96376c26749 (parent chat). Inclusion of child logs and any resolution are unconfirmed. The similar symptom reported here does not establish a shared cause.

    Please identify the rejecting mechanism and provide a supported resolution or narrowly scoped diagnostic procedure. This report does not request disabling safeguards.

    Reviewed raw display: 942 bytes, SHA-256 0c89c259bc92df77c0cf6f5dcf596ad06e5f9e96da981f5cb4351b88139ec886. Raw transcripts, private paths, credentials and settings files are not 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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions