openclaw - 💡(How to fix) Fix [Bug]: Discord /reset sends empty prompt on 2026.4.26 [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#73745Fetched 2026-04-29 06:15:41
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
closed ×1commented ×1cross-referenced ×1

Error Message

Repro: run 2026.4.26, use Discord native /reset in an agent channel, observe the error.

RAW_BUFFERClick to expand / collapse

Discord native /reset appears to send an empty model prompt on OpenClaw 2026.4.26 (be8c246), causing OpenAI Responses API to reject the request with: One of input or previous_response_id or prompt or conversation_id must be provided. Sometimes Discord also shows The application did not respond.

Repro: run 2026.4.26, use Discord native /reset in an agent channel, observe the error.

Expected: reset clears the session and acknowledges or starts with a non-empty reset/startup prompt.

Suspected regression: between v2026.4.25 and v2026.4.26 in src/auto-reply/reply/get-reply-run.ts. In v2026.4.26 bare reset sets transcript body to softResetTail at https://github.com/openclaw/openclaw/blob/v2026.4.26/src/auto-reply/reply/get-reply-run.ts#L502-L505. For plain /reset, softResetTail is empty, so downstream execution can become a blank prompt/model call. In v2026.4.25 the reset/startup prompt was preserved: https://github.com/openclaw/openclaw/blob/v2026.4.25/src/auto-reply/reply/get-reply-run.ts#L501-L505.

Possible fix: for bare session reset, fall back to generated reset/startup prompt when softResetTail is empty, e.g. softResetTail || baseBodyFinal, or handle Discord native /reset as pure control action that does not invoke a model turn.

extent analysis

TL;DR

The issue can be fixed by modifying the get-reply-run.ts file to use a fallback prompt when softResetTail is empty during a bare session reset.

Guidance

  • Review the changes made between v2026.4.25 and v2026.4.26 in get-reply-run.ts to understand the regression.
  • Consider adding a conditional statement to check if softResetTail is empty and use a fallback prompt, such as baseBodyFinal, if it is.
  • Test the fix by running 2026.4.26 and using Discord native /reset in an agent channel to verify that the error is resolved.
  • Investigate handling Discord native /reset as a pure control action that does not invoke a model turn as an alternative solution.

Example

// Example of using a fallback prompt when softResetTail is empty
const transcriptBody = softResetTail || baseBodyFinal;

Notes

The fix assumes that the issue is caused by the changes made in v2026.4.26 and that using a fallback prompt will resolve the error. Further testing and verification are necessary to ensure that the fix works as expected.

Recommendation

Apply workaround: use a fallback prompt when softResetTail is empty, as this is a targeted fix that addresses the specific issue without introducing new changes.

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 [Bug]: Discord /reset sends empty prompt on 2026.4.26 [1 comments, 2 participants]