diff --git a/tests/integration/codex-chat-reasoning-http-e2e.test.ts b/tests/integration/codex-chat-reasoning-http-e2e.test.ts index b7172b2bb1..44363fd8fc 100644 --- a/tests/integration/codex-chat-reasoning-http-e2e.test.ts +++ b/tests/integration/codex-chat-reasoning-http-e2e.test.ts @@ -271,11 +271,14 @@ test("chat completions streams Codex Responses reasoning through real route HTTP assert.equal(recorded[0].url, CODEX_RESPONSES_URL); assert.equal(recorded[0].method, "POST"); assert.deepEqual(recorded[0].body.reasoning, { effort: "high", summary: "auto" }); + // `status: "completed"` on input items is required by strict upstream Responses + // validators — added deliberately by #8507 (#8083); it is part of the contract now. assert.deepEqual(recorded[0].body.input, [ { type: "message", role: "user", content: [{ type: "input_text", text: "What is the answer?" }], + status: "completed", }, ]);