Skip to content

400 'Instructions are not valid #3202

Closed

Description

@mattsu2020

What version of Codex is running?

3f40fbc

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

When I enter “hello,” the following error appears.
400 'Instructions are not valid'

What is the expected behavior?

Hello, and a response comes from ChatGPT.

What do you see instead?

ChatGPT exhibits behavior where it only accepts “authorized system prompts (instructions)”, and was being blocked by one of the following:
It was sending “instructions differing from the default” via config overrides (experimental_instructions_file/base_instructions).
During retries, even if the authentication mode changed, it did not regenerate the instructions and instead resubmitted “the previous ones (content flagged as invalid)”.

Additional information

This occurs when using ChatGPT without an API key.

Activity

  1. added
    bug
    on Sep 5, 2025
  2. mattsu2020 commented on Sep 5, 2025

    @mattsu2020
    ContributorAuthor

    @mattsu2020 You must use this prompt only in the prompt.md so it will not return error

    fdda6a4

    The same error occurs. It appears when authenticating with ChatGPT.

  3. pakrym-oai commented on Sep 5, 2025

    @pakrym-oai
    Contributor

    Sign In With ChaGPT doesn't support custom instructions. You can use custom instruction when authenticating with an API key.

  4. 3rd commented on Sep 5, 2025

    @3rd

    This happens for users who did not change the instructions. Nuking ~/.codex and launching codex built on master still hits this issue.
    Please re-open @pakrym-oai

    Edit: 6b83c1c working commit

  5. mattsu2020 commented on Sep 5, 2025

    @mattsu2020
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions