feat(feishu): skip reply-to in DM conversations (#13211)

In DM (p2p) chats, use message.create instead of message.reply
so that bot responses don't show a 'Reply to' quote. Group chats
retain the reply-to behavior for context clarity.

The typing indicator (emoji reaction on the user's message) is
preserved in DMs — only the reply reference in sent messages is
removed.

Changes:
- Add skipReplyToInMessages param to createFeishuReplyDispatcher
- In bot.ts, set skipReplyToInMessages: !isGroup for both dispatch sites
- In reply-dispatcher.ts, use sendReplyToMessageId (undefined for DMs)
  for message sending while keeping replyToMessageId for typing indicator
This commit is contained in:
Yihao
2026-02-28 12:24:42 +08:00
committed by GitHub
parent 6a8d83b6dd
commit d9230b13a4
2 changed files with 9 additions and 4 deletions

View File

@@ -1160,6 +1160,7 @@ export async function handleFeishuMessage(params: {
runtime: runtime as RuntimeEnv,
chatId: ctx.chatId,
replyToMessageId: ctx.messageId,
skipReplyToInMessages: !isGroup,
replyInThread,
rootId: ctx.rootId,
mentionTargets: ctx.mentionTargets,