| Error | 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 |
|---|---|
| In Codex's source | Server code invalid_prompt, mapped to InvalidPrompt and never retried |
| Pattern 1 | One account: every GPT-6 model rejects harmless prompts, GPT-5.6 works (#64245, #65222) |
| Pattern 2 | One long-running chat: automatic continuations fail, a manual message works (#65534, #64470) |
| Fix | New chat; /feedback with the session ID; OpenAI support for account-wide blocks |
| Reports | 4 issues, 5 people, 27 Nov to 3 Dec 2026, on Windows, macOS, the CLI and ChatGPT Work. No OpenAI reply on these issues |
| Checked | 5 Dec 2026, against the sources listed below |
Which pattern is yours?
| What you see | Reported in | What helped |
|---|---|---|
A brand-new chat with hello fails on every GPT-6 model (6.2 Sol, 6.1 Sol Ultra, 6 Luna), while GPT-5.6 Sol answers the same prompt | #64245 (Windows desktop), #65222 (CLI 0.173.0, Windows, ChatGPT Work), plus a second user in #64245 | Nothing on the user side. Reporters asked OpenAI to check their account's model access and safety classification |
| A long-running chat or goal stops with this error after many tool calls, with no new message from you | #65534 (macOS desktop, goal auto-continuation, 3 times), #64470 (after a tool returned an image) | In #65534, a manual read-only check in the same chat worked, and a separate chat could read the same files |
Fix it
- Test in a new chat. Send
hellowith your usual model. If it works, the block is tied to the old conversation's content: carry on in the new chat. OpenAI's troubleshooting page also suggests a new chat with a smaller, more focused prompt for stuck chats. - If even
hellofails, send feedback. OpenAI's docs: "Type / into the message composer to provide feedback for the team", and you'll get a session ID to share. Then contact OpenAI support with the session ID, the model and the time, and ask them to check your account's access. That is what the reporters did; none has posted a resolution yet. - Don't count on GPT-5.6 as a workaround. OpenAI's models page: on 2 Dec 2026 Codex removed GPT-5.6 Sol and Terra from the model picker for most users, and from 23 Dec it switches affected threads to GPT-6.2 Sol and GPT-6.1 Terra the next time you send a message.
- Don't keep retrying the same prompt. Codex's source lists
InvalidPromptamong errors that are never retried, and rewording a harmless prompt didn't change the result for these reporters.
How it differs from other Codex safety messages
This content was flagged for possible cybersecurity riskis a separate, cybersecurity-specific check: see Codex flagged for possible cybersecurity risk.Invalid prompt: we've limited access to this content for safety reasons.is an older safety-access message; Codex's source labels it a legacy prefix (tui/src/chatwidget/turn_runtime.rs).
Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review
FAQ
Why does Codex flag 'hello' as violating the usage policy?
Users report it as an account-level problem: every GPT-6 model rejected harmless prompts on their account while GPT-5.6 worked. OpenAI hasn't explained it on GitHub. Send /feedback and contact support with the session ID.
Does rewording the prompt help?
Not when the prompt is harmless: reporters got the same error for 'hello'. For a long chat, a new chat or a manual message worked in one report.
Will Codex retry automatically?
No. Codex's source puts InvalidPrompt in the never-retry list.
Can I switch to GPT-5.6?
Some users did, but OpenAI removed GPT-5.6 Sol and Terra from the picker on 2 Dec 2026 and moves those threads to GPT-6.2 Sol and GPT-6.1 Terra from 23 Dec.
Related errors
- Codex: flagged for possible cybersecurity risk
- Codex: model is not supported when using Codex with a ChatGPT account
- Codex: You've hit your usage limit
Sources
Read 5 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.
- Codex source: invalid_prompt mapped to InvalidPrompt (codex-api/src/error.rs L110-L116): github.com/openai/codex/blob/3ce8141ab3590a1afb0e5845e2e1e90647f36910/codex-rs/codex-api/src/error.rs#L110-L116
- Codex source: InvalidPrompt never retried (protocol/src/error.rs L539): github.com/openai/codex/blob/3ce8141ab3590a1afb0e5845e2e1e90647f36910/codex-rs/protocol/src/error.rs#L539
- Codex source: legacy safety-access message (tui/src/chatwidget/turn_runtime.rs L9-L10): github.com/openai/codex/blob/3ce8141ab3590a1afb0e5845e2e1e90647f36910/codex-rs/tui/src/chatwidget/turn_runtime.rs#L9-L10
- OpenAI docs: Codex models (GPT-5.6 Sol and Terra retirement): developers.openai.com/codex/models
- OpenAI docs: Codex troubleshooting (new chat, feedback and session ID): learn.chatgpt.com/docs/reference/troubleshooting
- openai/codex #64245 (all GPT-6 models flag a harmless prompt; GPT-5.6 works): github.com/openai/codex/issues/64245
- openai/codex #65222 (CLI 0.173.0: 'hello' blocked on GPT-6 models): github.com/openai/codex/issues/65222
- openai/codex #65534 (goal auto-continuation ends with invalid_prompt): github.com/openai/codex/issues/65534
- openai/codex #64470 (after a tool returned an image): github.com/openai/codex/issues/64470
- reviewready CLI: one command that checks an AI app repo before it ships
- Exposed API key checker: find API keys committed to a repo or shipped to the browser
- MCP config checker: scan your mcp.json for hard-coded tokens, unpinned servers and risky access