Skip to content

Windows PowerShell source-writing command rejected as “blocked by policy” #55165

Open

Description

@everett-ux

What version of the IDE extension are you using?

26.1007.21434

What subscription do you have?

Plus

Which IDE are you using?

Visual Studio Code

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 — x64

What issue are you seeing?

A development-only PowerShell command was rejected before execution with:

exec_command failed: CreateProcess
Rejected: blocked by policy

The command would create a local Administrator Google OAuth consent module and isolated tests, then run Node tests. No live account grants, email sends or production changes were attempted.

Environment:

  • VS Code extension: 26.1007.21434
  • Bundled Codex CLI: 0.162.0-alpha.17.2
  • Windows x64
  • Recorded approval_policy: never
  • Recorded sandbox_policy: danger-full-access

The command embedded approximately 7,600 characters of source/test code, including HTTPS URLs and the word “start”. The matching upstream Windows classifier appears relevant, but the actual cause has not been confirmed.

Timestamp: 2026-10-18T23:14:15.219Z
Tool call ID: call_a714dffda29e40948c636206cb98f51a

Built-in feedback also fails with:
“Couldn't verify feedback permissions.”

Please clarify which restriction caused the rejection and the supported correction. The rejected action has not been retried, and security settings have not been weakened.

CODEX_ORIGINAL_REJECTION_DIAGNOSTIC_20261018.md

What steps can reproduce the bug?

Original observed sequence—not a verified minimal reproduction:

  1. Use Codex in VS Code on Windows with approval_policy=never and sandbox_policy=danger-full-access.
  2. Ask Codex to implement a local Administrator Google OAuth consent module with isolated tests.
  3. Codex submits a composite PowerShell command that writes the module and tests through here-strings, then runs Node tests.
  4. The embedded source contains HTTPS URLs and the word “start”.
  5. The command is rejected before PowerShell launches:
    CreateProcess / Rejected / “blocked by policy”.

The action has not been retried. The rejection response truncated the command text, so no independently verified minimal reproducer is provided.

Separately, invoking /feedback produces:
“Couldn't verify feedback permissions.”

What is the expected behavior?

Evaluate the actual shell operations without treating words inside source-file contents as executed commands.

If the action is prohibited, provide an actionable explanation identifying the applicable restriction and supported resolution.

Feedback should either submit successfully or explain why permission verification failed.

Additional information

Extension: 26.1007.21434
Bundled Codex CLI: 0.162.0-alpha.17.2
Platform: Microsoft Windows NT 10.0.26200.0, x64
Timestamp: 2026-10-18T23:14:15.219Z
Tool call: call_a714dffda29e40948c636206cb98f51a

The matching upstream Windows command classifier appears relevant because it examines flattened PowerShell tokens for URLs and launch-related words. This is a hypothesis, not a confirmed cause.

Other local commands work normally. No security settings were changed, and no live OAuth grants, emails or production changes were attempted.

Sanitized diagnostic attached.

Activity

  1. added
    extension
    on Oct 19, 2026
  2. added
    bug
    windows-os
    sandbox
    tool-calls
    on Oct 19, 2026
  3. everett-ux commented on Oct 19, 2026

    @everett-ux
    Author
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

    bugextensionsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions