Skip to content

修复 Grok Bot 单聊与协作群聊的回复回传 - #89

Merged
qybaihe merged 2 commits into
qybaihe:mainfrom
rainhan99:fix/grok-reply-delivery
Nov 30, 2026
Merged

qybaihe merged 2 commits into
qybaihe:mainfrom
rainhan99:fix/grok-reply-delivery

Conversation

@rainhan99

@rainhan99 rainhan99 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

概述

修复 Grok 已生成答复时,BotArk 单聊或协作群聊可能仍在等待的问题。也修复了群聊先收到一条进度消息,后续的文件链接或附件没有进群的情况。

  • 为 WatchGrokBotTranscripts 补齐 Connect 流的消息头。正常连接时,群聊会随同一轮的实时事件显示文字和附件。
  • 同轮实时事件无进展时,并行读取历史并按发送标识匹配,历史补取只读取已经生成的答复。对于先发进度、后发文件的情况,保留有上限的接收窗口。
  • 群聊收尾时提交一条完整记录,再处理定稿或接力。附件和 Grok 内部文件链接按原账号、Agent 和会话打开,沿用现有预览和下载组件。

检查

  • npm run typecheck
  • npm test
  • npm run build
  • 群聊测试覆盖实时文字、实时附件、晚到的文件链接、只含附件的回复和默认 Agent。
  • 仅提交 BotArk 源码及合成测试数据,已核对新增内容。

回归测试使用模拟服务。真实账号上的安装包回传尚未复测。

@qybaihe

qybaihe commented Nov 30, 2026

Copy link
Copy Markdown
Owner

已在本地复核并验证通过:

  • npm run typecheck 通过。
  • Grok 与协作室相关 12 个测试文件(144 个用例,含 group-rooms.e2e.test.ts)全部通过。
  • 核对了 WatchGrokBotTranscripts 的 Connect 5 字节长度前缀封包、历史分页按 seq 排序后截取 anchor 后续条目、applyInOrder 对实时流与历史补取的串行化,以及群聊附件按原账号 / Agent / 会话打开的逻辑。

感谢贡献,现合并到 main。

@qybaihe
qybaihe merged commit 6636de3 into qybaihe:main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants