openclaw - 💡(How to fix) Fix [Bug]: openclaw-weixin may lose the final reply after multi-tool agent turns [1 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#57384Fetched 2026-04-08 01:50:22
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

In openclaw-weixin, after an agent turn with many tool calls, the final assistant reply may not be delivered to the WeChat user, even though the run itself completes successfully.

This is not just a long-message issue. I reproduced it even when the final reply was short.

Root Cause

In openclaw-weixin, after an agent turn with many tool calls, the final assistant reply may not be delivered to the WeChat user, even though the run itself completes successfully.

This is not just a long-message issue. I reproduced it even when the final reply was short.

RAW_BUFFERClick to expand / collapse

Summary

In openclaw-weixin, after an agent turn with many tool calls, the final assistant reply may not be delivered to the WeChat user, even though the run itself completes successfully.

This is not just a long-message issue. I reproduced it even when the final reply was short.

Steps to reproduce

  1. Use openclaw-weixin in a direct WeChat chat
  2. Send a prompt that causes many tool calls in one turn
  3. Let the run complete
  4. Observe that the final conclusion message is sometimes missing in WeChat

Expected behavior

The final assistant reply should always be delivered.

Actual behavior

The run completes, but the WeChat user sometimes never receives the final reply.

Environment

  • OpenClaw: 2026.3.28
  • Plugin: @tencent-weixin/openclaw-weixin@latest (2.1.1)
  • Channel: openclaw-weixin
  • OS: macOS

Notes

What I have ruled out:

  • not only an old-version issue
  • not only a long-message issue
  • normal messages and some intermediate outputs still work

This seems related to the final reply delivery / completion boundary after tool-heavy runs.

Potentially related issues

  • #52343
  • #52375
  • #52391
  • #54303
  • #56478

extent analysis

Fix Plan

The fix involves modifying the openclaw-weixin plugin to ensure that the final assistant reply is delivered after a turn with many tool calls.

  • Update the @tencent-weixin/openclaw-weixin plugin to the latest version (if not already done) to incorporate any recent fixes.
  • Implement a retry mechanism for sending the final reply in case of failure.
  • Increase the timeout for sending the final reply to account for potential delays.

Example code snippet (in JavaScript) to implement the retry mechanism:

const maxRetries = 3;
const retryDelay = 500; // milliseconds

async function sendFinalReply(reply) {
  let retries = 0;
  while (retries < maxRetries) {
    try {
      // Send the final reply using the WeChat API
      await wechatApi.sendReply(reply);
      return;
    } catch (error) {
      retries++;
      await new Promise(resolve => setTimeout(resolve, retryDelay));
    }
  }
  // Log an error if all retries fail
  console.error('Failed to send final reply after retries');
}

Verification

To verify that the fix worked, repeat the steps to reproduce the issue and check if the final assistant reply is delivered successfully.

Extra Tips

  • Monitor the WeChat API logs to detect any errors or issues related to sending the final reply.
  • Consider increasing the logging level for the openclaw-weixin plugin to gather more information about the issue.
  • If the issue persists, try reducing the number of tool calls in a single turn to see if it affects the delivery of the final reply.

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

The final assistant reply should always be delivered.

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]: openclaw-weixin may lose the final reply after multi-tool agent turns [1 participants]