openclaw - 💡(How to fix) Fix Regression in 2026.4.26: /new command fails with 'messages: at least one message is required' [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#73314Fetched 2026-04-29 06:21:06
View on GitHub
Comments
2
Participants
3
Timeline
4
Reactions
0
Timeline (top)
commented ×2closed ×1subscribed ×1

After updating to 2026.4.26, using the bare /new command (with no text) consistently fails. This was not an issue in 2026.4.25.

Error Message

From gateway logs (/tmp/openclaw/openclaw-2026-04-28.log):

Embedded agent failed before reply: All models failed (2): 
anthropic/claude-sonnet-4-6: No available auth profile for anthropic (all in cooldown or unavailable). (format) | 
anthropic/claude-haiku-4-5: Provider anthropic is in cooldown (all profiles unavailable) (format) | 
No available auth profile for anthropic (all in cooldown or unavailable).

Root cause visible in logs:

LLM request rejected: messages: at least one message is required

Root Cause

Root cause visible in logs:

LLM request rejected: messages: at least one message is required

Fix Action

Workaround

Typing /new [any word] (e.g., /new ok) provides enough content for the slug generator to succeed.

Code Example

Embedded agent failed before reply: All models failed (2): 
anthropic/claude-sonnet-4-6: No available auth profile for anthropic (all in cooldown or unavailable). (format) | 
anthropic/claude-haiku-4-5: Provider anthropic is in cooldown (all profiles unavailable) (format) | 
No available auth profile for anthropic (all in cooldown or unavailable).

---

LLM request rejected: messages: at least one message is required
RAW_BUFFERClick to expand / collapse

Bug Report

Version: 2026.4.26 (be8c246) Previous working version: 2026.4.25 Platform: macOS arm64 (Mac mini M4 Pro) Channel: Telegram (direct chat)

Summary

After updating to 2026.4.26, using the bare /new command (with no text) consistently fails. This was not an issue in 2026.4.25.

Steps to Reproduce

  1. Open a session via Telegram
  2. Type /new (bare, no text after it)
  3. Observe failure

Error

From gateway logs (/tmp/openclaw/openclaw-2026-04-28.log):

Embedded agent failed before reply: All models failed (2): 
anthropic/claude-sonnet-4-6: No available auth profile for anthropic (all in cooldown or unavailable). (format) | 
anthropic/claude-haiku-4-5: Provider anthropic is in cooldown (all profiles unavailable) (format) | 
No available auth profile for anthropic (all in cooldown or unavailable).

Root cause visible in logs:

LLM request rejected: messages: at least one message is required

Root Cause (Identified)

The temp:slug-generator session fires during /new to generate a human-readable filename slug. When /new is called bare (no preceding conversation content, or very short session), params.sessionContent is empty. The slug generator still calls runEmbeddedPiAgent but the resulting Anthropic API request ends up with an empty messages array, which Anthropic rejects.

The error then triggers a provider cooldown, which blocks the 1-2 subsequent retry attempts as well — compounding the failure.

Relevant file: dist/llm-slug-generator-B0NB_imC.js

Expected Behavior

/new should work reliably regardless of whether the previous session had content. If sessionContent is empty or too short to generate a meaningful slug, the generator should fall back to a timestamp-based name (or similar) instead of making an API call that will fail.

Workaround

Typing /new [any word] (e.g., /new ok) provides enough content for the slug generator to succeed.

Impact

Every bare /new command fails, requiring the workaround. This is a regression — it worked correctly in 2026.4.25.

extent analysis

TL;DR

Modify the temp:slug-generator session to handle empty sessionContent by falling back to a timestamp-based name instead of making an API call that will fail.

Guidance

  • Review the dist/llm-slug-generator-B0NB_imC.js file to understand how the slug generator handles empty sessionContent.
  • Consider adding a check for empty sessionContent before calling runEmbeddedPiAgent to prevent the Anthropic API request from being made with an empty messages array.
  • Implement a fallback mechanism, such as using a timestamp-based name, when sessionContent is empty or too short to generate a meaningful slug.
  • Verify that the fallback mechanism works correctly by testing the /new command with and without preceding conversation content.

Example

if (params.sessionContent.length === 0) {
  // Fallback to timestamp-based name
  const timestamp = new Date().toISOString();
  const slug = `new-${timestamp}`;
  // Use the generated slug instead of making an API call
} else {
  // Existing code to generate slug using Anthropic API
}

Notes

The provided workaround of typing /new [any word] suggests that the issue is related to the slug generator's handling of empty sessionContent. The example code snippet is a minimal illustration of how the fallback mechanism could be implemented.

Recommendation

Apply a workaround by modifying the temp:slug-generator session to handle empty sessionContent as described above, as this will allow the /new command to work reliably regardless of whether the previous session had content.

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