fix(feishu): 修复群聊@回复发私聊及无目标通知报错 (#6262)

- 回复类消息携带 original_chat_id 时优先发回原会话,避免群聊@机器人的回复错误发送到私聊窗口
- update_or_post_message 编辑失败回退发新消息时保留原消息/会话上下文
- 无显式目标且未配置默认目标时,回退向最近互动过的会话广播发送(与企业微信策略一致)
- 仍无可用目标时报出含配置指引的明确错误(FEISHU_OPEN_ID/FEISHU_CHAT_ID)

Closes #6262
This commit is contained in:
jxxghp
2026-08-10 18:18:48 +08:00
parent 16840c6767
commit 85a7f98a94
5 changed files with 202 additions and 54 deletions
+4
View File
@@ -222,6 +222,10 @@ def update_or_post_message(
title=title,
text=text,
buttons=buttons,
# 编辑失败回退发新消息时保留原消息上下文,
# 保证飞书等渠道能回复到原会话(如群聊),而不是发给私聊。
original_message_id=original_message_id,
original_chat_id=original_chat_id,
save_history=False,
)
)