feat: add content triggers#291
Merged
Merged
Conversation
Collaborator
Author
- 普通群 /summary 的早停翻页(从新到旧)把「本次触发的 /summary」误当成 上一次总结的边界——而它正是最新那条,于是扫到第一条就停,历史塌成只剩 命令本身、总结无内容。改为只把更早的 /summary 当边界,本次触发及更新的 消息既不收口窗口、也不占 limit 名额。 - limit 改为只统计真正保留的消息(原先用 paginator 的 seenCount,含触发条, 导致配 50 实际只总结 49)。 - 总结历史不再包含「本次 /summary 命令」那一条本身(话题/普通群两条路径)。 - botmux history 的 --limit 夹成正数:0/负/非数字回退默认 50,避免误触发底层 「pageSize<=0 = 无上限读全量」(该能力只保留给内部 /summary 调用)。 - 新增 test/summary-command-window.test.ts:用忠实的 stopAfter 回放(最新一条 即触发 /summary)覆盖之前被整体 mock 掉、未跑到的真实早停路径。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
加/summary命令了,在 @ 机器人的时候,输入/summary进行总结