Skip to content

[Bug]: /new on openai-codex/* (Responses API) returns "One of input/previous_response_id/prompt/conversation_id must be provided" — regression in 2026.4.26 #73344

@bruhsh

Description

@bruhsh

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Bug type

Regression (worked before, now fails)

Summary

After updating to OpenClaw 2026.4.26, /new on openai-codex/gpt-5.5
immediately fails with:

One of "input" or "previous_response_id" or 'prompt' or 'conversation_id' must be provided.

/reset is also affected.

Environment

  • OpenClaw: 2026.4.26 (be8c246)
  • OS: macOS (Mac mini)
  • Node: v25.8.1 (fnm)
  • Install method: npm global
  • Channel: Discord
  • Primary model: openai-codex/gpt-5.5
  • Auth: OpenAI Codex OAuth (ChatGPT Plus)

Steps to reproduce

  1. Configure main agent with openai-codex/gpt-5.5 as primary model
  2. Bind to Discord
  3. Send /new (or /reset) in Discord
  4. Bot replies with the "must be provided" error

Logs

Right after the error, gateway logs contain:

This indicates a blank user message was injected into the session and
reached the model adapter, but the repair only happens after the API
rejects the request — there's no pre-flight guard.

Suspected root cause

The 2026.4.25 changelog includes:

Sessions: keep embedded runtime context out of the visible user prompt
by sending it as a hidden next-turn custom message

On a fresh session created by /new, this hidden custom message
serializes to an empty input array on the OpenAI Responses API path,
and previous_response_id is null (new session), so the request fails
strict validation.

Anthropic and OpenAI Chat Completions accept this shape; OpenAI
Responses API does not.

Related issues (same family — Responses API edge cases not handled)

Suggested fix

Add a pre-flight guard in the openai-codex-responses adapter (or
in the /new handler): if input serializes to empty AND
previous_response_id is null, either skip the model call entirely
(the boot turn doesn't need to be sent) or inject a minimal
placeholder input.

Steps to reproduce

use /new or /reset in discord.

Expected behavior

agent message.

Actual behavior

replies: One of "input" or "previous_response_id"or 'prompt'or 'conversation_id' must be provided.

OpenClaw version

OpenClaw: 2026.4.26 (be8c246)

Operating system

macOS 26.4.1

Install method

No response

Model

openai codex chatgpt 5.5

Provider / routing chain

not sure

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions