openclaw - 💡(How to fix) Fix [Bug]: Telegram /new can trigger empty Codex Responses request and expose provider error [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#73450Fetched 2026-04-29 06:19:46
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
1
Author
Timeline (top)
closed ×1commented ×1cross-referenced ×1

On OpenClaw 2026.4.26, sending /new in a Telegram direct chat can reset/create the session but then trigger an empty Codex Responses API request. The raw provider error is delivered back to Telegram:

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

This looks like the /new slash command path starts a fresh session, then accidentally starts an assistant run without any user input or previous response/conversation id. The provider error is not wrapped before being sent to the chat.

Error Message

stopReason: error input: 0 error: One of "input" or "previous_response_id" or "prompt" or "conversation_id" must be provided.

Root Cause

On OpenClaw 2026.4.26, sending /new in a Telegram direct chat can reset/create the session but then trigger an empty Codex Responses API request. The raw provider error is delivered back to Telegram:

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

This looks like the /new slash command path starts a fresh session, then accidentally starts an assistant run without any user input or previous response/conversation id. The provider error is not wrapped before being sent to the chat.

Code Example

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

---

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

---

stopReason: error
input: 0
error: One of "input" or "previous_response_id" or "prompt" or "conversation_id" must be provided.

---

OpenClaw 2026.4.26 (be8c246)

---

agents.defaults.model.primary = openai-codex/gpt-5.5
agents.defaults.model.fallbacks = [deepseek/deepseek-v4-pro]

---

authProfileOverride = openai-codex:<profile>

---

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "openai-codex/gpt-5.5",
        "fallbacks": ["deepseek/deepseek-v4-pro"]
      },
      "models": {
        "openai-codex/gpt-5.5": {
          "params": {
            "fastMode": true
          }
        }
      }
    }
  }
}

---

One of "input" or "previous_response_id" or "prompt" or "conversation_id" must be provided.
RAW_BUFFERClick to expand / collapse

Bug type

Regression / channel runtime error

Summary

On OpenClaw 2026.4.26, sending /new in a Telegram direct chat can reset/create the session but then trigger an empty Codex Responses API request. The raw provider error is delivered back to Telegram:

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

This looks like the /new slash command path starts a fresh session, then accidentally starts an assistant run without any user input or previous response/conversation id. The provider error is not wrapped before being sent to the chat.

Steps to reproduce

  1. Run OpenClaw gateway with Telegram enabled.
  2. Configure the default model to Codex OAuth, e.g. openai-codex/gpt-5.5.
  3. In a Telegram direct chat, send /new as a standalone message.
  4. Observe the bot reply with the raw OpenAI/Codex Responses API validation error.

Expected behavior

/new should only create/switch to a fresh session, or at most send a local acknowledgement.

It should not call the model with an empty request. If a model call would have no input, previous_response_id, prompt, or conversation_id, OpenClaw should stop locally and return a user-readable reset acknowledgement or internal error.

Actual behavior

The session appears to be reset/created, but an assistant turn fails before producing content. The raw provider error is sent to Telegram:

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

Local observation from the affected run:

stopReason: error
input: 0
error: 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 on Apple Silicon / Mac mini

Install method

npm global package, gateway running as LaunchAgent

Model

Default config:

agents.defaults.model.primary = openai-codex/gpt-5.5
agents.defaults.model.fallbacks = [deepseek/deepseek-v4-pro]

The Telegram session had an OpenAI Codex auth profile override:

authProfileOverride = openai-codex:<profile>

Provider / routing chain

Telegram direct chat -> main agent -> OpenAI Codex OAuth / Responses API

Config file / key location

~/.openclaw/openclaw.json

Relevant model config shape:

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "openai-codex/gpt-5.5",
        "fallbacks": ["deepseek/deepseek-v4-pro"]
      },
      "models": {
        "openai-codex/gpt-5.5": {
          "params": {
            "fastMode": true
          }
        }
      }
    }
  }
}

Logs, screenshots, and evidence

The error text was delivered directly as the Telegram bot reply:

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

The affected Telegram direct session did get a fresh session id after /new, so the reset path partially worked. The failure appears to be the follow-up assistant run request assembly.

Impact and severity

Medium/high for Telegram users using Codex OAuth models:

  • /new is documented as the recovery path for polluted/stale sessions.
  • Instead, the recovery path can surface a provider validation error to the end user.
  • The message looks like a user mistake even though it is a runtime request assembly problem.

Possible fix direction

  • Ensure /new / /reset slash handlers do not start a model run unless there is real user input.
  • Add a guard before Codex Responses calls: if no input, previous_response_id, prompt, or conversation_id would be sent, do not call the provider.
  • Wrap provider validation errors before delivering to chat channels.

Related issues

Possibly related but not the same failure mode:

  • #49517
  • #69599
  • #47504

extent analysis

TL;DR

The issue can be fixed by modifying the /new slash command handler to prevent it from starting a model run without user input, and adding a guard before Codex Responses calls to check for required parameters.

Guidance

  • Modify the /new slash command handler to only reset the session and not start a model run unless there is real user input.
  • Add a guard before Codex Responses calls to check if input, previous_response_id, prompt, or conversation_id is provided, and prevent the call if none are present.
  • Wrap provider validation errors before delivering them to chat channels to improve user experience.
  • Review the code for any similar issues where model runs are started without required parameters.

Example

// Example of modified model config with input validation
{
  "agents": {
    "defaults": {
      "model": {
        "primary": "openai-codex/gpt-5.5",
        "fallbacks": ["deepseek/deepseek-v4-pro"]
      },
      "models": {
        "openai-codex/gpt-5.5": {
          "params": {
            "fastMode": true,
            "validateInput": true // Add input validation
          }
        }
      }
    }
  }
}

Notes

The fix direction is to modify the /new slash command handler and add input validation for Codex Responses calls. This should prevent the provider validation error from being sent to the user and improve the overall user experience.

Recommendation

Apply the workaround by modifying the /new slash command handler and adding input validation for Codex Responses calls. This will prevent the provider validation error from being sent to the user and improve the overall user experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

/new should only create/switch to a fresh session, or at most send a local acknowledgement.

It should not call the model with an empty request. If a model call would have no input, previous_response_id, prompt, or conversation_id, OpenClaw should stop locally and return a user-readable reset acknowledgement or internal error.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Telegram /new can trigger empty Codex Responses request and expose provider error [1 comments, 2 participants]