Repository navigation
Description
Environment
- Codex Windows desktop package: 26.930.3930.0 (Get-AppxPackage readback).
- Affected task context: approval_policy=never, sandbox_policy=danger-full-access.
- Incident date: 2026-10-04, Asia/Shanghai.
- No permission or policy changes; neither rejected request was retried through an alternative channel.
Observations
- A user-authorized recoverable directory move, hash verification and removal of the now-empty parent directory were submitted in one native PowerShell command. It was rejected by exec_command before process creation: CreateProcess ... rejected: blocked by policy. No cleanup occurred.
- The empty-directory removal did not use Force. A preceding directory enumeration in the same conditional expression did use Force to include hidden entries.
- A later read-only diagnostic request that would read public source and extract the previous command as text for character counts was also rejected before execution. It did not execute the cleanup command.
- The task record, focused runtime logs and four desktop log files did not expose the matched rule or a useful denial rationale.
Source-based hypothesis, not a confirmed internal trace
The public rust-v0.160.0 Windows dangerous-command scanner contains has_force_delete_cmdlet, which tests for a deletion command and a Force token within rough text segments. exec_policy.rs forbids a dangerous unmatched command when approvals are never. Complex PowerShell may fall back to the rough scanner. Please investigate whether unrelated enumeration parameters or quoted command names were misclassified. The inspected public source version is not asserted to identify every runtime component.
Requested resolution
Please identify the enforcing component and exact matched rule for these pre-launch denials, expose a useful explanation to the agent/user, and provide the supported review/recovery route for an already user-authorized recoverable cleanup. We are not requesting a global allow rule, disabling safeguards, or bypassing a denial.
References:
- https://github.com/openai/codex/blob/rust-v0.160.0/codex-rs/shell-command/src/command_safety/windows_dangerous_commands.rs#L223-L287
- https://github.com/openai/codex/blob/rust-v0.160.0/codex-rs/core/src/exec_policy.rs#L775-L806
Personal paths, business documents, credentials and raw transcripts are omitted.
Correlation identifiers
- Original cleanup tool call: call_WKZS6dy1owgj3joBrnVg7p7x (2026-10-04T14:30:42.307Z).
- Read-only diagnostic rejection: call_bwnSb4gUxeyIDP9UXpI7moKT (2026-10-04T15:33:05.971Z).
Activity
github-actions commentedon Oct 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action