Skip to content

Windows: exec_command blocked before CreateProcess while creating three JSON files #55022

Open

Description

@huangweifu888-jpg

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

A subsequent product-version check recorded 26.1013.40934 / build 20770 / prod, with the updater reporting up_to_date at that check. This is a later observation, not proof of the exact runtime at the original refusal.

What subscription do you have?

Not collected for this report.

What platform is your computer?

Windows, using the desktop app and PowerShell for local execution. Exact Windows build was not collected for this report.

What issue are you seeing?

An explicitly authorized local JSON preparation tool call was rejected with blocked by policy before the Python process was launched. The returned information did not identify an actionable rejecting rule or component.

The intended command only reads three existing JSON inputs and exclusively creates three new JSON files in a staged candidate package:

  • receipt.schema.json
  • allowlist.json
  • method-basis.json

It does not execute the candidate evidence or capture code. No files were created by the rejected call. The outer wrapper's execution_started flag was not evidence that Python started.

What steps can reproduce the bug?

This is a report of the original recorded refusal; it has not been replayed to manufacture a reproduction.

  • Affected chat/session: 01a13efa-c33d-7870-85ad-95546bca5bc5
  • Turn: 01a147b1-c6dc-7891-a690-2c3a7a1a7950
  • Tool call: call_6237a227e6f84734a83255450faaaf0c
  • Recorded time window: 2026-10-17T03:04:51.674Z–03:04:52.269Z
  • Execution path: exec_command through PowerShell, invoking a local Python JSON-preparation program.
  • Recorded context: approval_policy=never, sandbox_mode=danger-full-access. These values do not establish which component made the refusal.
  • Command length: 7098 UTF-8 bytes
  • Command SHA-256: 92be584b9e8a520a252edef57e78e5942efab7c14c4713f29c94660339c4dbb2

The original desktop client was already checked and had no matching /approve or Denials entry. No further denial or approval probe was run.

What is the expected behavior?

Please identify:

  1. Which policy, review, hook, or execution-host component rejected this exact tool call, and the actionable reason.
  2. The supported recovery steps for this desktop execution path. If an administrator must act, specify the exact control and minimum required scope.
  3. How to confirm recovery, and whether one retry of the same scoped JSON-preparation operation is appropriate.

An authorized operation should either execute within the effective policy or return an actionable refusal and an applicable supported recovery route. This report is not a request to bypass safeguards.

Additional information

Existing feedback: In-app feedback about this problem was already submitted. This issue follows up on that existing report; no duplicate in-app feedback has been submitted. The feedback-specific reference number is not available in the current handoff, so the affected chat, turn, call ID, timestamp and command fingerprint above are supplied for correlation. The affected chat/session ID is not asserted to be a separate feedback receipt ID.

A later, explicitly authorized capture of the exact bundled codex doctor --help exited successfully. Its help text advertises --json and --summary, but this does not establish the internal behavior of a full doctor run or clear the original policy refusal. Full doctor was not run.

The blocked JSON command has not been retried, rewritten, split, or moved to another tool to bypass the rejection. Permissions and global configuration have not been changed.

Only this manually prepared summary and correlation identifiers are included. No raw logs, session transcript, diagnostic raw output, credentials, source files, or attachments are uploaded.

Related symptom reports (same root cause is unproven):

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 18, 2026
  2. huangweifu888-jpg commented on Oct 18, 2026

    @huangweifu888-jpg
    Author

    Follow-up to the duplicate-suggestion bot: I reviewed the bodies and all comments currently present on the five suggested reports.

    Report Relevant finding Recovery status
    #54543 The reporter says a different file-editing tool (apply_patch) succeeded after the PowerShell request was rejected. The rejecting rule remains unknown. No maintainer-confirmed recovery for the original action. This does not establish permission to reroute this report's rejected operation.
    #53948 Similar pre-execution desktop refusal. Its existing comment is a duplicate-suggestion bot response. No supported recovery steps found.
    #53982 Authorized commands rejected while other independent operations succeeded. Its existing comment is a duplicate-suggestion bot response. No supported recovery steps found.
    #54270 Independent temporary writes succeeded, but the original checkpoint update was not cleared. The reporter still asks for a canonical issue, fixed release, or supported procedure. No supported recovery steps found.
    #53977 The reporter identifies a source-level Windows classifier candidate in rust-v0.162.0-alpha.17.2, while explicitly distinguishing it from a captured matching-rule trace. No maintainer-confirmed fix or applicable recovery procedure found.

    For #53977, I also read the linked published classifier:
    https://github.com/openai/codex/blob/rust-v0.162.0-alpha.17.2/codex-rs/shell-command/src/command_safety/windows_dangerous_commands.rs#L38-L55

    That function checks for a URL together with specific command tokens, including substrings containing start-process or invoke-item. The other reporter describes quoted search text being included in this scan. This is a concrete candidate mechanism to investigate, not an established explanation of our refusal.

    We have not established that this published tag corresponds to the desktop runtime that rejected our call, nor obtained a trace showing that this predicate matched our original JSON-preparation command. We have not rewritten, split, or retried the command to test that hypothesis.

    Could a maintainer please:

    1. Correlate call_6237a227e6f84734a83255450faaaf0c, turn 01a147b1-c6dc-7891-a690-2c3a7a1a7950, at 2026-10-17T03:04:51.674Z–03:04:52.269Z, with the actual rejecting component and rule.
    2. Confirm whether the mechanism discussed in Windows Codex desktop: read-only local diagnostic command rejected with CreateProcess: blocked by policy #53977 applies to this exact call and runtime. If not, identify the applicable rejection category.
    3. Provide explicit supported recovery steps: the applicable fixed version or narrowly scoped review/control, any required administrator action, how recovery should be verified, and whether one retry of the original exclusive-create JSON operation is appropriate.
    4. If this is a duplicate, identify the canonical tracking issue while preserving the existing feedback/call correlation.

    The original operation only prepares receipt.schema.json, allowlist.json, and method-basis.json; it does not execute the candidate evidence/capture code.

    This follows the existing in-app feedback and this issue; no new feedback or issue is being created. No raw logs, transcripts, diagnostic raw files, credentials, source files, or attachments are included. No rejected command has been retried, no alternate tool used to perform it, and no permissions or global configuration changed.

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