openclaw - 💡(How to fix) Fix QQBot: /new command fails with 'messages must not be empty' 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#74108Fetched 2026-04-30 06:28:26
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
closed ×1commented ×1cross-referenced ×1

Error Message

LLM request rejected: invalid params, messages must not be empty (2013) FailoverError: LLM request rejected: invalid params, messages must not be empty (2013)

Code Example

⚠️ Something went wrong while processing your request. Please try again, or use /new to start a fresh session.

---

invalid params, messages must not be empty (2013)

---

LLM request rejected: invalid params, messages must not be empty (2013)
FailoverError: LLM request rejected: invalid params, messages must not be empty (2013)
RAW_BUFFERClick to expand / collapse

Bug Description

When sending /new command in QQBot private chat, the bot returns:

⚠️ Something went wrong while processing your request. Please try again, or use /new to start a fresh session.

Steps to Reproduce

  1. Open QQBot private chat
  2. Send any message (e.g., "1") - bot responds normally
  3. Send /new command - bug is triggered

Expected Behavior

/new should start a fresh session without error.

Actual Behavior

LLM call fails with:

invalid params, messages must not be empty (2013)

Error log:

LLM request rejected: invalid params, messages must not be empty (2013)
FailoverError: LLM request rejected: invalid params, messages must not be empty (2013)

Environment

  • OpenClaw: 2026.4.26 (be8c246)
  • QQBot plugin: 2026.4.26
  • Channel: QQ private chat (c2c)
  • Model: MiniMax-M2.7

Additional Context

  • The issue occurs even after sending a normal message first
  • The /new command triggers session creation in qqbot:direct:<senderId> lane
  • The LLM is called with an empty messages array during session initialization

extent analysis

TL;DR

The issue can be fixed by ensuring that the LLM request includes a non-empty messages array during session initialization.

Guidance

  • Verify that the /new command is correctly handled in the qqbot:direct:<senderId> lane and that it properly initializes the session with a valid messages array.
  • Check the LLM request payload to confirm that the messages array is indeed empty when the error occurs.
  • Consider adding a default or placeholder message to the messages array during session initialization to prevent the LLM request from failing.
  • Review the OpenClaw and QQBot plugin versions to ensure that they are compatible and that there are no known issues related to LLM requests.

Example

# Example of initializing the session with a default message
messages = ["Welcome to the new session!"]  # Add a default message to the array
llm_request = {"messages": messages}  # Create the LLM request payload

Notes

The issue seems to be related to the LLM request payload, but without more information about the OpenClaw and QQBot plugin implementations, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by adding a default or placeholder message to the messages array during session initialization, as this will prevent the LLM request from failing due to an empty messages array.

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…

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 QQBot: /new command fails with 'messages must not be empty' error [1 comments, 2 participants]