fix(feishu): preserve long streaming replies

Keep a bounded streaming preview, then deliver the complete final answer across multiple cards. Preserve all provider message IDs and cover long snapshots and Unicode boundaries with regression tests.

Fixes #78
This commit is contained in:
xmanrui 2026-08-28 10:50:35 +08:00
parent 71ca552113
commit 6c6d4af936
7 changed files with 522 additions and 239 deletions

View file

@ -335,6 +335,8 @@ export default {
// feishu/feishu-channel.mjs
'正在生成…': 'Generating…',
'回答完成': 'Answer complete',
'内容较长,生成完成后将分段发送完整回答。':
'This response is long. The complete answer will be sent in parts when generation finishes.',
'飞书机器人': 'Feishu bot',
// feishu/message-utils.mjs