invalid_request_error: reasoning item provided without required following item (Codex CLI 0.92)

Resolved 💬 5 comments Opened Jan 29, 2026 by ibabencu Closed Mar 5, 2026

Summary

When using Codex CLI (v0.92) with GPT-5 Codex high reasoning, the API returns an invalid_request_error indicating a reasoning item was provided without a required following item.

Error

{
  "error": {
    "message": "Item 'rs_02df0e1c14fc6c3000697b676491008195a9819c02bdf5feab' of type 'reasoning' was provided without its required following item.",
    "type": "invalid_request_error",
    "param": "input",
    "code": null
  }
}

Environment

  • Codex CLI: 0.92
  • Model: GPT-5 Codex (high reasoning)
  • OS: Windows
  • Date/Time: 2026-01-29 (time + timezone not captured)
  • Request ID: N/A

Steps to Reproduce

  1. Run Codex CLI with GPT-5 Codex high reasoning.
  2. Submit a prompt that triggers reasoning items in the request.
  3. API fails with the error above.

Expected

Request succeeds or error message explains the required following item format.

Actual

Request fails with invalid_request_error.

Additional Context

If you need the raw request payload, let me know what to capture from Codex CLI logs and I can provide it.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗