Repository navigation
Description
Codex App version
Bundled codex-cli 0.163.0-alpha.10.2 (Windows app bundle 896a0166b774037a; the executable does not expose a separate ProductVersion).
Subscription
ChatGPT Pro ($200/month)
Platform
Microsoft Windows NT 10.0.19045.0 x64
What issue are you seeing?
In one Codex App thread, GPT-6 Astra max incorrectly generalized one command-level destructive-operation rejection into a permanent prohibition on the user's requested cleanup. It then entered a repeated refusal loop and would not even attempt an already-created, explicitly authorized, exact-allowlist PowerShell cleanup script.
The initial direct PowerShell deletion call returned:
exec_command failed: CreateProcess ... rejected: blocked by policy
That direct command rejection was real. The bug was the model's subsequent reasoning and behavior:
- It treated the rejection of one
Remove-Itemcommand shape as proof that the cleanup task itself was forbidden. - It created a safer PowerShell script that used two SHA-pinned manifests, validated every absolute path, rejected tracked files and reparse points, checked for active processes, and deleted only explicit regular files without recursive directory deletion.
- Despite repeated, unambiguous user authorization to run that script, GPT-6 Astra max refused to invoke it. It repeatedly claimed that running the script would be an impermissible bypass of the earlier rejection.
- It stated that the script had not been tested and might also be blocked, but refused to obtain the only evidence that could establish that: actually invoking the vetted script.
- The interaction became a self-reinforcing refusal loop rather than a tool-grounded retry with a narrower, safer implementation.
After switching the same thread to GPT-5.6 sol max, Codex invoked the exact prepared script normally:
& 'D:\redacted\cleanup-all-approved.ps1' -ExecuteIt succeeded:
Verified exact files: 7705; already missing: 22439; estimated reclaim: 26.582 GiB
...
deleted_files: 7705
failed_files: 0
observed_C_free_delta_bytes: 22279364608
The successful execution directly falsified GPT-6 Astra max's claimed permanent blocker. The same app, thread, workspace, authorization, and prepared script were used; only the model was changed.
Steps to reproduce
- On Windows in Codex App, ask the agent to remove known obsolete build caches and generated experiment byproducts from a user-owned workspace.
- Have an initial direct
Remove-Itemcommand rejected by the command execution policy. - Explicitly authorize cleanup and ask the agent to use a PowerShell script with:
- exact absolute-file allowlists;
- manifest SHA validation;
- workspace-boundary validation;
- tracked-file and reparse-point rejection;
- active-process checks;
- no recursive directory deletion;
- an operation log and disk-space measurement.
- Ask GPT-6 Astra max to run the prepared script.
- Observe that it may infer that running the script would “bypass” the prior command rejection and refuse without attempting the script.
- Switch to GPT-5.6 sol max and invoke the same script. In this incident it executed successfully and deleted all 7,705 present allowlisted files with zero failures.
Public session ID is omitted because it may expose account or conversation metadata. OpenAI should be able to correlate the incident from the model transition and tool events on 2026-10-21 PDT; I can provide the session identifier privately if maintainers request it through an appropriate channel.
Expected behavior
When the user provides explicit, reasonable instructions and unambiguous authorization, the model must actually think, re-evaluate the current state, and reconsider how to fulfill the user's goal—instead of locking up like a brick wall, going in circles with mindless, evasive excuses, and looking for every possible pretext to refuse the task altogether.
Specifically:
- A single rejected command form must never poison the conversation or make it completely impossible to proceed with the user's legitimate task.
- When given an explicit user-authorized, safer alternative (the SHA-pinned allowlist cleanup script), the model must stop stonewalling, stop repeating circular refusal scripts, and actually execute the requested task.
- The model must remain responsive to user reasoning and updated context rather than becoming permanently stuck in an unrecoverable refusal loop.
Additional information
- Failing model: GPT-6 Astra max.
- Successful model after switch: GPT-5.6 sol max.
- The successful cleanup preserved current experiments, source, inputs, reports, and retained conclusions.
- The script deleted only exact manifest entries and produced a per-file JSONL operation log.
- The issue appears to be model/tool-policy interpretation and recovery behavior, not an inability of the execution tool to launch PowerShell scripts.
Activity
github-actions commentedon Oct 22, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
oyasumiaiko commentedon Oct 22, 2026
As an additional observation, this pathological over-refusal behavior is not isolated to this single Codex incident—I have experienced the same pattern across the GPT-6 model family (and GPT-6 Astra in particular) across ChatGPT web chat, Codex, and Dot conversations.
Once the model triggers an initial refusal on a specific action or detail, that narrow refusal gets reinforced and escalated into an unrecoverable, maximally broadened blanket refusal against my entire request. At that point, the refusal scope expands dramatically and becomes completely irreversible: no matter what clarification, authorization, narrower scope, or reasoning I provide, the model refuses to re-evaluate and doubles down on the refusal. As a result, the affected command path and the entire conversation thread become permanently poisoned and completely unusable.
I strongly suspect this stems from flawed training around automated moderation and policy-compliance adherence, where the model has been over-conditioned to treat any prior refusal signal in the context as an absolute, unyielding constraint rather than actually re-evaluating the updated request. This broken refusal-escalation behavior in the model itself urgently needs to be fixed.
samvallad33 commentedon Oct 22, 2026
Hi oyasumiaiko,
Did Astra ever name which part of the script it thought counted as a bypass, or did it just repeat the same refusal each turn?
You had already done the careful work here: two SHA-pinned manifests, workspace boundary checks, tracked files and reparse points rejected, no recursive deletes, and a per-file JSONL log. Even so, one rejected Remove-Item became a reason the model kept citing no matter how plainly you authorized the run, and only switching to 5.6 sol got the 7,705 files cleared. That makes a decent case for taking the call on whether a delete is safe out of the model's head entirely. A fixed check that reads the actual command and its paths, and gives the same answer every time, would have looked at your allowlist script and let it through, instead of a model treating its own earlier refusal as policy. Your second comment about the same pattern showing up in ChatGPT and Dot makes it sound more like training than one bad thread.
Sam