


























@@ -14,8 +14,6 @@ import { stripReasoningTagsFromText } from "openclaw/plugin-sdk/text-runtime";
1414import { resolveFeishuRuntimeAccount } from "./accounts.js";
1515import { createFeishuClient } from "./client.js";
1616import { sendMediaFeishu, shouldSuppressFeishuTextForVoiceMedia } from "./media.js";
17-import type { MentionTarget } from "./mention-target.types.js";
18-import { buildMentionedCardContent } from "./mention.js";
1917import {
2018createReplyPrefixContext,
2119type ClawdbotConfig,
@@ -125,7 +123,6 @@ type CreateFeishuReplyDispatcherParams = {
125123/** True when inbound message is already inside a thread/topic context */
126124threadReply?: boolean;
127125rootId?: string;
128-mentionTargets?: MentionTarget[];
129126accountId?: string;
130127identity?: OutboundIdentity;
131128/** Epoch ms when the inbound message was created. Used to suppress typing
@@ -144,7 +141,6 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
144141 replyInThread,
145142 threadReply,
146143 rootId,
147- mentionTargets,
148144 accountId,
149145 identity,
150146} = params;
@@ -381,10 +377,7 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
381377await partialUpdateQueue;
382378if (streaming?.isActive()) {
383379statusLine = "";
384-let text = buildCombinedStreamText(reasoningText, streamText);
385-if (mentionTargets?.length) {
386-text = buildMentionedCardContent(mentionTargets, text);
387-}
380+const text = buildCombinedStreamText(reasoningText, streamText);
388381const finalNote = resolveCardNote(agentId, identity, prefixContext.prefixContext);
389382await streaming.close(text, { note: finalNote });
390383// Track the raw streamed text so the duplicate-final check in deliver()
@@ -465,14 +458,13 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
465458text: options.fallbackText,
466459useCard: false,
467460infoKind: "final",
468-sendChunk: async ({ chunk, isFirst }) => {
461+sendChunk: async ({ chunk }) => {
469462await sendMessageFeishu({
470463 cfg,
471464to: chatId,
472465text: chunk,
473466replyToMessageId: sendReplyToMessageId,
474467replyInThread: effectiveReplyInThread,
475-mentions: isFirst ? mentionTargets : undefined,
476468 accountId,
477469});
478470},
@@ -492,14 +484,13 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
492484text: fallbackText,
493485useCard: false,
494486infoKind: "final",
495-sendChunk: async ({ chunk, isFirst }) => {
487+sendChunk: async ({ chunk }) => {
496488await sendMessageFeishu({
497489 cfg,
498490to: chatId,
499491text: chunk,
500492replyToMessageId: sendReplyToMessageId,
501493replyInThread: effectiveReplyInThread,
502-mentions: isFirst ? mentionTargets : undefined,
503494 accountId,
504495});
505496},
@@ -607,14 +598,13 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
607598 text,
608599useCard: true,
609600infoKind: info?.kind,
610-sendChunk: async ({ chunk, isFirst }) => {
601+sendChunk: async ({ chunk }) => {
611602await sendStructuredCardFeishu({
612603 cfg,
613604to: chatId,
614605text: chunk,
615606replyToMessageId: sendReplyToMessageId,
616607replyInThread: effectiveReplyInThread,
617-mentions: isFirst ? mentionTargets : undefined,
618608 accountId,
619609header: cardHeader,
620610note: cardNote,
@@ -626,14 +616,13 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
626616 text,
627617useCard: false,
628618infoKind: info?.kind,
629-sendChunk: async ({ chunk, isFirst }) => {
619+sendChunk: async ({ chunk }) => {
630620await sendMessageFeishu({
631621 cfg,
632622to: chatId,
633623text: chunk,
634624replyToMessageId: sendReplyToMessageId,
635625replyInThread: effectiveReplyInThread,
636-mentions: isFirst ? mentionTargets : undefined,
637626 accountId,
638627});
639628},
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。