Skip to content

VS Code on Windows: pre-execution blocked by policy with no matching execpolicy rule; feedback permission error #58601

Open

Description

@Pals-commits

Summary

On Windows with the VS Code Codex extension, a local-only PowerShell command was rejected before process creation with a generic blocked by policy message, despite Full access being selected. The original action was intended to read local metadata, calculate hashes and assemble a draft JSON request in memory, without cloud calls, credential access or writes. The policy layer and denial reason are not exposed. The built-in /feedback action separately fails with “Couldn't verify feedback permissions”.

Environment

  • Windows; VS Code extension openai.chatgpt 26.1021.22027
  • Extension-bundled CLI: codex-cli 0.164.0-alpha.11.1
  • Full access selected in IDE
  • PowerShell CurrentUser: RemoteSigned; MachinePolicy/UserPolicy: Undefined
  • Standalone codex app-server --print-startup-config: configRequirements.requirements: null
  • No applicable local feedback.enabled override found; this does not prove the IDE/service effective policy

Rejection evidence

  • Denied tool call: call_84967ff648f344ad8578090d758b3b7f
  • Approximate denial times: 2026-11-01 09:52:55 and 09:57:34 NZDT (UTC+13)
  • Sanitised error:
    CreateProcess { message: Rejected("[command omitted] rejected: blocked by policy") }
    
  • The command invoked a PowerShell here-string piped to Node; the original PowerShell argv had three arguments (executable, -Command, script string). Script length: 5,668 characters; SHA-256: c4768938c73a68c6690e7b1d3d429d590b301531f78a4f979b9a5a954595f329.
  • No PowerShell process started for the rejected action; no PSSecurityException or filesystem AccessDenied surfaced.

Diagnostics already completed

  1. codex execpolicy check --pretty using the original argv and discovered local .codex/rules/default.rules: exit 0, {"matchedRules":[]}; no decision or justification returned. This does not imply permission.
  2. codex sandbox -- <command> is supported by this build; codex sandbox windows --log-denials is not exposed. sandbox windows --help treated windows as an executable, ending in CreateProcessAsUserW failed: 2.
  3. Harmless PowerShell sandbox probe returned MethodInvocationNotSupportedInConstrainedLanguage, showing sandbox language restrictions but not explaining the pre-execution rejection.
  4. Standalone CLI reports no managed requirements; no local rules matched. The exact IDE/service reviewer remains unknown.
  5. IDE /approve isn't offered in the slash-command menu, and /feedback yields “Couldn't verify feedback permissions”.

Expected behaviour

For a local-only preparation command, either permit the eligible action or return an actionable denial identifying the enforcing policy, compatible diagnostic path and supported narrow approval procedure. Feedback should work or provide a supported alternative.

Request

Please correlate the denied call and timestamps against the IDE/service enforcement trace, identify the denying component and rule/reason, and provide a supported remediation for this exact extension/CLI version. Please also investigate the feedback permission failure. No policy disabling, blanket allow rule, or alternate execution pathway to evade the decision is requested.

Privacy: This issue intentionally excludes source code, repository identity, live connection details, keys, business records, raw session transcripts and logs. Sanitised diagnostics could be provided through an appropriate private channel if requested.

Activity

  1. added
    bug
    extension
    windows-os
    sandbox
    tool-calls
    on Oct 31, 2026
  2. justinwj commented on Nov 6, 2026

    @justinwj

    Additional Windows VS Code extension occurrence on November 6, 2026.

    A user-approved local diagnostic command was rejected before process creation at approximately 20:15:50 UTC:

    exec_command failed: CreateProcess ... rejected: blocked by policy
    

    The command would have launched Microsoft's WPAExporter to analyze a 60-second CPU trace retained on the same PC. It set a process-local symbol path to Microsoft's public symbol service and requested no upload of the trace. The command did not start; the local analysis output directory was not created. The trace and test evidence remain intact.

    At the time, the session reported Full Access (sandbox_mode=danger-full-access, approval_policy=never). A read-only codex execpolicy check against the exact rejected PowerShell argv matched zero entries in the local default.rules file (12 allow rules, no prompt or forbidden rules). No local/project managed requirements file or corresponding Windows AppLocker, Code Integrity, or Defender block event was found around the denial. These checks do not identify or exclude a higher-level IDE/service policy.

    The session transcript contains only the generic rejection, with no rule ID, reviewer rationale, or adjacent approval event. The built-in /feedback flow also fails with “Couldn't verify feedback permissions. Please try again.”

    Could maintainers identify the denying policy layer and rule, and provide a supported narrow review or diagnostic path for this pre-execution decision? Please also advise how to submit private session evidence when /feedback cannot verify permissions. No retry, policy disabling, or alternate execution route is requested.

    Privacy: this public comment omits the project name, repository, local paths, raw trace, session transcript, credentials, and business data.

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