You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex CLI: invalid_prompt "flagged as potentially violating our usage policy" mid-turn on routine coding work (effort low) #48929
Both turns were ordinary software-development work in a private Python repository (working through failing unit tests / running a test-suite plan). Neither flag came on a new user message: Codex had started the turn itself to continue the thread's active goal, and the flag came mid-turn after 70 and 260 ordinary tool calls respectively. The last tool call before each flag was a read-only sed -n of a Python source file. So the flagged "prompt" appears to be the accumulated conversation context.
The same goal later continued without flags (once on low, and on medium after I switched), so I can't say low is proven to be the cause, but both flags happened on low. It's costly: to avoid losing long turns I've moved to medium.
Long autonomous goal-continuation turns on low in the same thread. Not deterministically reproducible.
What is the expected behavior?
Routine coding/test work isn't flagged as a usage-policy violation, or at least the flag is attributable (request ID shown) and appealable from the CLI.
Additional information
A local rollout doesn't record the request ID of the flagged request, which makes reporting harder. Also reported via OpenAI Help Center chat.
Possibly related: #48817 (same CLI 0.157.1 and gpt-6-luna, same error, opened about an hour after my first block), #48865, #47721, #48713. One difference: in those reports every prompt is blocked, while here two turns were blocked mid-goal and the same goal later ran fine on the same model and effort. That may help narrow it down.
Activity
github-actions commentedon Sep 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
jensabrahamsson commentedon Oct 1, 2026
Possibly related: #48817 (same CLI 0.157.1 and gpt-6-luna, same error, opened about an hour after my first block), #48865, #47721, #48713. One difference: in those reports every prompt is blocked, while here two turns were blocked mid-goal and the same goal later ran fine on the same model and effort. That may help narrow it down.