codex icon indicating copy to clipboard operation
codex copied to clipboard

error 400 'Instructions are not valid' after prompt.md change #3121

Open salah9003 opened this issue 1 year ago • 6 comments

What version of Codex is running?

Building from main branch (commit 234c0a04)

Which model were you using?

gpt-5

What platform is your computer?

Windows x64

What steps can reproduce the bug?

  1. Build Codex from main branch source
  2. Run codex TUI
  3. Send any message

What is the expected behavior?

Message should be processed normally

What do you see instead?

⚠️ stream error: unexpected status 400 Bad Request: {"detail":"Instructions are not valid"};

Additional information

Root cause: PR #3121 ("remove bold the keyword from prompt") removed line "- Bold the keyword, then colon + concise description." from codex-rs/core/prompt.md

salah9003 avatar Sep 04 '25 07:09 salah9003

This is intentional.

gpeal avatar Sep 04 '25 15:09 gpeal

@gpeal this is still broken though.

ishanray avatar Sep 05 '25 00:09 ishanray

@gpeal this is still broken though.

its not a bug, its a fea...

salah9003 avatar Sep 05 '25 00:09 salah9003

0.29.0 runs fine, but the latest release 0.29.1-alpha.7 has errors.

Loongphy avatar Sep 05 '25 02:09 Loongphy

working commit: https://github.com/openai/codex/commit/6b83c1c3f3dacf6da342706098f1cb04335e8217 https://github.com/openai/codex/issues/3202#issuecomment-3259520225

3rd avatar Sep 05 '25 19:09 3rd

This is intentional.

@gpeal Is there any chance that the infra could be adjusted to simply... use the prompt that's on master, rather than only release prompts? That way those in the community looking to help out don't have to search for a prompt that's been registered as approved, or constantly switch to API auth?

tekacs avatar Sep 05 '25 20:09 tekacs