openclaw - ✅(Solved) Fix [Bug]: Update4.20->4.26,/new session 错误 [1 pull requests, 2 comments, 3 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#73192Fetched 2026-04-29 06:22:18
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2closed ×1cross-referenced ×1

创建新会话后,报错如下,多个Agent测试均存在。回退4.20并无该问题

Error Message

Agent failed before reply: All models failed (4): minimax/MiniMax-M2.7: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f2b471bd96ceddb04aa623003d2"} (format) | minimax-portal/MiniMax-M2.5: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f30265b74cad0e0fd73f091ab9e"} (format) | minimax-portal/MiniMax-M2.5-highspeed: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f35c0199298a2a5b7db7b755ece"} (format) | minimax-portal/MiniMax-M2.5-Lightning: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f3a41fde9a8a12d4279d76b538e"} (format) | LLM request rej…. Please try again, or use /new to start a fresh session.

Root Cause

创建新会话后,报错如下,多个Agent测试均存在。回退4.20并无该问题

Fix Action

Fixed

PR fix notes

PR #73245: test(reset): cover bare reset startup prompts

Description (problem / solution / changelog)

Problem

Bare /new already had coverage for the intentional reset-then-startup-prompt behavior, but bare /reset did not. That gap made it easy to add provider-boundary fallbacks instead of verifying the reset ingress paths.

Changes

  • Add gateway RPC coverage for bare /reset resetting the same session and sending the reset/startup prompt.
  • Add chat auto-reply coverage that bare /reset uses a non-empty transcript marker ([OpenClaw session reset]) while keeping startup instructions out of the visible transcript prompt.

Validation

  • pnpm test src/gateway/server-methods/agent.test.ts src/auto-reply/reply/get-reply-run.media-only.test.ts
  • pnpm exec oxfmt --check --threads=1 src/gateway/server-methods/agent.test.ts src/auto-reply/reply/get-reply-run.media-only.test.ts && git diff --check
  • pnpm test:changed

Changed files

  • src/auto-reply/reply/get-reply-run.media-only.test.ts (modified, +39/-0)
  • src/gateway/server-methods/agent.test.ts (modified, +28/-0)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

创建新会话后,报错如下,多个Agent测试均存在。回退4.20并无该问题

Steps to reproduce

  1. 更新到2026.4.26
  2. 直接/new
  3. 就会报错

Expected behavior

NOT_ENOUGH_INFO

Actual behavior

Agent failed before reply: All models failed (4): minimax/MiniMax-M2.7: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f2b471bd96ceddb04aa623003d2"} (format) | minimax-portal/MiniMax-M2.5: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f30265b74cad0e0fd73f091ab9e"} (format) | minimax-portal/MiniMax-M2.5-highspeed: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f35c0199298a2a5b7db7b755ece"} (format) | minimax-portal/MiniMax-M2.5-Lightning: 400 {"type":"error","error":{"type":"invalid_request_error","message":"invalid params, messages must not be empty (2013)"},"request_id":"063f4f3a41fde9a8a12d4279d76b538e"} (format) | LLM request rej…. Please try again, or use /new to start a fresh session.

OpenClaw version

2026.4.26

Operating system

macOS

Install method

npm

Model

minimax

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue can be resolved by checking and ensuring that the request parameters, specifically the messages, are not empty before sending the request to the MiniMax models.

Guidance

  • Verify that the input messages are being properly passed and not empty when creating a new session.
  • Check the request payload for any formatting issues or missing parameters that could be causing the "invalid params" error.
  • Review the OpenClaw version 2026.4.26 release notes to see if there were any changes related to request parameter validation or handling.
  • Test the request with a known valid input message to isolate the issue.

Example

No code snippet can be provided without more context about the specific implementation.

Notes

The issue seems to be related to a regression introduced in version 2026.4.26, as rolling back to version 4.20 resolves the issue. However, without more information about the specific changes made in the update, it's difficult to provide a more targeted solution.

Recommendation

Apply workaround: Modify the code to ensure that the request parameters are valid and not empty before sending the request to the MiniMax models, as this seems to be the most likely cause of the error.

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

NOT_ENOUGH_INFO

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 - ✅(Solved) Fix [Bug]: Update4.20->4.26,/new session 错误 [1 pull requests, 2 comments, 3 participants]