Invalid prompt: your prompt was flagged as potentially violating our usage policy.
What version of Codex is running?
v0.63.0
What subscription do you have?
■ Error running remote compact task: unexpected status 400 Bad Request: { "error": { "message": "Invalid prompt: your prompt was flagged as potentially violating our usage policy. Please try again with a different prompt: https://platform.openai.com/docs/guides/reasoning#advice-on-prompting", "type": "invalid_request_error", "param": null, "code": "invalid_prompt" } }
Which model were you using?
gpt-5.1-codex-max
What platform is your computer?
WSL2
What issue are you seeing?
Got
"■ Error running remote compact task: unexpected status 400 Bad Request: {
"error": {
"message": "Invalid prompt: your prompt was flagged as potentially violating our usage policy. Please try again with a different
prompt: https://platform.openai.com/docs/guides/reasoning#advice-on-prompting",
"type": "invalid_request_error",
"param": null,
"code": "invalid_prompt"
}
}"
btw my prompt:
"Let's fix the bugs now, then we'll run the test. See how they work."
:/
What steps can reproduce the bug?
Uploaded thread: 019ab510-eee9-7f13-b25d-d88b3b162344
What is the expected behavior?
_No response_
Additional information
_No response_
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Got the same error.
Prompt:
`CLAUDE.md
PLAN.md
continue with the phase 3, encoder implementation, focusing on correctness and any obvious performance bottlenecks. but mostly just getting it working properly`
same, it seems to happen only in extremely long thinking threads.
When asking codex for a review, a fresh subagent thread with only the following message:
Was flagged as "potentially violating usage policy". Thread ID was
019c4f21-6f56-71e0-8d6a-1ca2a8c6441a.To the best of my understanding nothing in the project it is working on related to cyber security in any way.
The prompt was also written not by me but by codex itself, for a subagent.
"Your honor, you see, it wasn't me... it was my sub-agent.."
I'm seeing this error randomly in the middle of Codex working on its own, with no human input.
This basically trashes the entire turn, and moreover there is no way to report the mistaken flag.
Snippet:
I'm also seeing this error in the middle of Codex working independently against a goal. It's not doing anything marginal or interesting, just completing some basic coding and testing stories against my own codebase (which is has mainly created). I've now had this error 4 times out of nowhere.
This is in the Windows App version 26.715.52143
Each time I type "resume" and it restarts.
Edit: Make that 5 times
Edit: Make that 6 times...
Edit: 7... 8... this is getting ridiculous. It's trying to run some tests and just keeps tripping itself up.
This latest version of the app 20/07/26 seems unstable - or maybe it's server-side. I'm not sure.