openclaw - 💡(How to fix) Fix Bug Report: replyInThread config 'disabled' not working [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#73951Fetched 2026-04-29 06:13:05
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Author
Timeline (top)
commented ×1

Root Cause

Root Cause

Code Example

// Line ~790
...params.replyInThread ? { reply_in_thread: true } : {}

---

...params.replyInThread === "enabled" ? { reply_in_thread: true } : {}

---

...params.replyInThread ? { reply_in_thread: true } : {}

---

...params.replyInThread === "enabled" ? { reply_in_thread: true } : {}
RAW_BUFFERClick to expand / collapse

Bug Report: replyInThread config 'disabled' not working

Repo: openclaw/openclaw Title: replyInThread config 'disabled' not working - thread replies still sent


Description

When setting replyInThread: "disabled" in the Feishu channel account config, thread replies are still being sent. This causes @mention tags to be lost when bots reply with quote/reply format.

Environment

  • OpenClaw version: 2026.4.26
  • Channel: feishu
  • Config: channels.feishu.accounts.<account>.replyInThread = "disabled"

Root Cause

In the Feishu send module (extensions/feishu/send-BjhQwBW9.js), the replyInThread parameter is checked with truthiness instead of explicit string comparison:

// Line ~790
...params.replyInThread ? { reply_in_thread: true } : {}

When replyInThread = "disabled", JavaScript treats the non-empty string as truthy, so reply_in_thread: true is still sent to the Feishu API. The correct check should be:

...params.replyInThread === "enabled" ? { reply_in_thread: true } : {}

Impact

  • Bots cannot @ mention each other reliably in group chat when using quote/reply format
  • The replyInThread: "disabled" config has no effect
  • Only messages sent without replyToMessageId work correctly for @ mention forwarding

Expected Behavior

When replyInThread: "disabled" is set, the Feishu API should NOT receive reply_in_thread: true parameter.

Files Affected

  • extensions/feishu/send-BjhQwBW9.jssendReplyOrFallbackDirect function (line ~780-805)
  • extensions/feishu/send-BjhQwBW9.js — image, file, media send functions (lines ~244-295, ~434-498)
  • Any other location where replyInThread is used as a boolean flag

Suggested Fix

Replace all occurrences of:

...params.replyInThread ? { reply_in_thread: true } : {}

With:

...params.replyInThread === "enabled" ? { reply_in_thread: true } : {}

extent analysis

TL;DR

Update the replyInThread check in the Feishu send module to use explicit string comparison to fix the issue.

Guidance

  • Verify the replyInThread config is set to "disabled" in the Feishu channel account config.
  • Check the Feishu API documentation to ensure the reply_in_thread parameter is correctly formatted.
  • Update the sendReplyOrFallbackDirect function and other affected locations in extensions/feishu/send-BjhQwBW9.js to use the suggested fix.
  • Test the updated code to ensure @mention tags are preserved when bots reply with quote/reply format.

Example

// Corrected code
...params.replyInThread === "enabled" ? { reply_in_thread: true } : {}

Notes

This fix assumes that the replyInThread config is only set to either "enabled" or "disabled". If other values are possible, additional error handling may be necessary.

Recommendation

Apply the suggested fix to update the replyInThread check, as it directly addresses the root cause of the issue.

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 Report: replyInThread config 'disabled' not working [1 comments, 2 participants]