From a7cbd47a2f29d64b77f138930ae61de5321a3566 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Tue, 5 May 2026 14:30:34 +0800 Subject: [PATCH] fix(feishu): default feishu_stream_reply to true --- channel/feishu/feishu_channel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channel/feishu/feishu_channel.py b/channel/feishu/feishu_channel.py index f3104044..d2d09641 100644 --- a/channel/feishu/feishu_channel.py +++ b/channel/feishu/feishu_channel.py @@ -392,7 +392,9 @@ class FeiShuChanel(ChatChannel): # 回调内部先发送一条占位消息获取 message_id,之后通过 PATCH 接口原地更新内容, # 实现打字机效果。回调结束时设置 context["feishu_streamed"]=True, # 让 send() 跳过重复发送,避免最终完整回复再被重复投递一次。 - if conf().get("feishu_stream_reply", False): + # 默认开启流式打字机回复。需机器人开通 cardkit:card:write 权限且飞书客户端 7.20+, + # 任意环节失败会自动降级为非流式文本回复。 + if conf().get("feishu_stream_reply", True): context["on_event"] = self._make_feishu_stream_callback(context, feishu_msg.access_token) self.produce(context) logger.debug(f"[FeiShu] query={feishu_msg.content}, type={feishu_msg.ctype}")