Skip to content

Conversation

@fouad-openai
Copy link
Collaborator

@fouad-openai fouad-openai commented Jan 16, 2026

Goal: Prevent response.failed events with invalid_prompt from being treated as retryable errors so the UI shows the actual error message instead of continually retrying.

Before: Codex would continue to retry despite the prompt being marked as disallowed
After: Codex will stop retrying once prompt is marked disallowed

@fouad-openai fouad-openai changed the title Treat invalid_prompt as non-retryable InvalidRequest and surface message fix(codex-api): treat invalid_prompt as non-retryable and show error message Jan 17, 2026
@fouad-openai fouad-openai changed the title fix(codex-api): treat invalid_prompt as non-retryable and show error message fix(codex-api): treat invalid_prompt as non-retryable, show error message Jan 17, 2026
@fouad-openai fouad-openai changed the title fix(codex-api): treat invalid_prompt as non-retryable, show error message fix(codex-api): treat invalid_prompt as non-retryable Jan 17, 2026
@joshka-oai joshka-oai merged commit 93a5e0f into main Jan 17, 2026
36 of 38 checks passed
@joshka-oai joshka-oai deleted the dev/fouad/codex/fix-invalid_prompt-non-retryable-error branch January 17, 2026 06:22
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants