Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / Invalid prompt: flagged usage policy
Fix · Codex CLI · Codex desktop

Codex: Invalid prompt: your prompt was flagged as potentially violating our usage policy

What to do: if a harmless prompt like hello gets this, your wording isn't the problem. Codex doesn't retry it, so start a new chat, and if that fails too, send /feedback from the affected chat and give OpenAI support the session ID. Users report GPT-5.6 still worked when every GPT-6 model failed, but OpenAI removed GPT-5.6 Sol and Terra from the picker on 2 Dec 2026.

At a glance
ErrorInvalid 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 sourceServer code invalid_prompt, mapped to InvalidPrompt and never retried
Pattern 1One account: every GPT-6 model rejects harmless prompts, GPT-5.6 works (#64245, #65222)
Pattern 2One long-running chat: automatic continuations fail, a manual message works (#65534, #64470)
FixNew chat; /feedback with the session ID; OpenAI support for account-wide blocks
Reports4 issues, 5 people, 27 Nov to 3 Dec 2026, on Windows, macOS, the CLI and ChatGPT Work. No OpenAI reply on these issues
Checked5 Dec 2026, against the sources listed below

Which pattern is yours?

What you seeReported inWhat 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 #64245Nothing 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

  1. Test in a new chat. Send hello with 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.
  2. If even hello fails, 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.
  3. 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.
  4. Don't keep retrying the same prompt. Codex's source lists InvalidPrompt among 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 risk is 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

Sources

Read 5 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools