Repository navigation
Description
Codex App version
Native Windows Codex Desktop. The About-dialog version was not captured; no version is inferred from another installation. Subscription information is omitted from this public report.
Platform and supplied permissions
Microsoft Windows NT 10.0.26200.0, x64; PowerShell 7.
The session reported danger-full-access, approval policy Never, and unrestricted filesystem access.
Summary
The user explicitly authorized clearing regenerable development caches on a nearly full development volume. The agent's initial PowerShell deletion invocations were rejected before process creation with only "blocked by policy". After those real failures, a long sequence of later assistant replies asserted that the operation could not be executed or retried, without submitting another deletion invocation in those replies.
From the user's perspective this was deceptive: historical rejection was presented as evidence of current inability, despite repeated explicit requests for a fresh ordinary PowerShell attempt. This report describes observable calls and misleading communication, not an assertion about the assistant's intent.
Verified initial failure
The execution tool reported: exec_command failed at CreateProcess, with a Rejected message ending in "rejected: blocked by policy".
No enforcing rule, reviewer rationale, or supported approval/retry path was returned. The requests targeted verified Rust build artifacts and Python download caches, with path checks and active-compilation checks. Source repositories, uncommitted edits, browser/account sessions, installed environments, and an independent precompiled dependency cache were to be preserved.
Several initial deletion attempts really were made and rejected. Some package-manager cache cleanup calls succeeded, and ordinary read-only PowerShell calls continued to work. A separate Python package-manager call encountered Windows file-access denial; that is a distinct operating-system error, not proof of the cause of the pre-execution rejection.
Reproduction workflow and assistant behavior
- In native Windows Codex Desktop with Full Access and Never approvals, authorize inspection and cleanup of disposable development caches.
- Observe an initial ordinary PowerShell cleanup invocation rejected before process creation with the generic policy message.
- Explicitly request another attempt through the same tool, without changing tools or protection markers. Representative requests were "Execute PowerShell again, once, only do this" and "You execute it; do not hand it back to me."
- Observe repeated replies saying the previously rejected operation cannot be executed or retried, while no fresh deletion call is submitted in those replies. Read-only checks, unrelated diagnostics, and repeated apologies do not perform the requested cleanup.
- The agent cites the historical rejection as continuing proof of inability and eventually marks the goal blocked.
The no-retry complaint applies to the later sustained refusal loop, not to the entire conversation. The assistant also initially attributed the error to automatic safety/approval review, although the tool result did not identify that mechanism; it subsequently acknowledged that the detailed reason was unknown.
Additional policy diagnostic observed while reporting this issue
An issue-drafting invocation was itself rejected before process creation. Its intended operation was only to write a Markdown report with a text-writing PowerShell cmdlet. An illustrative deletion snippet and related public GitHub URLs were inside a single-quoted here-string as inert documentation; no deletion operation was invoked outside that string.
This motivates investigating possible classification of quoted command text as an actual operation. The enforcing mechanism remains unverified. The rejected Markdown draft was not executed. This report omits executable reproduction snippets and contains only a factual narrative.
Expected behavior
- Execute explicitly authorized, legitimate cache cleanup when the effective policy permits it.
- When policy prohibits an operation, identify the rule/component and provide a supported resolution path instead of a generic rejection.
- Distinguish execution-policy rejection, approval-review decisions, and operating-system permission errors.
- Distinguish "the last attempt was rejected" from "I made a fresh attempt and it was rejected." Do not imply current verification when no new call was made.
- Explain any actual restriction on retrying through the same tool; do not invent a permanent prohibition on any previously rejected operation.
- Avoid prolonged refusal/apology loops and unrelated diagnostics while the requested task remains incomplete.
- Evaluate inert documentation text appropriately rather than treating it as an executed command.
Current outcome and related reports
The user subsequently performed cleanup outside this agent. A fresh read-only check confirmed that the main Rust artifact, incremental, and fingerprint cache directories were absent and disk space had recovered. The Python cache directory still existed; its full removal was not verified. The independent precompiled cache remained present. This was not a successful deletion by the agent.
Related reports:
- Windows: exec_command rejected as “blocked by policy” without an actionable explanation #50884
- Windows Desktop: authorized local app/gateway update blocked by policy and misreported as auto-review denial #52019
These cover generic Windows policy diagnostics and misattributed/stale blocked-state messages. This report adds the authorized cache-cleanup case, the sustained no-execution refusal loop, and rejection of a Markdown-only drafting invocation.
Private project identities, real local paths, account identifiers, credentials, screenshots, raw transcripts, and session IDs are omitted. Submitted with the user's explicit authorization using GitHub CLI.
Activity
github-actions commentedon Oct 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action