test: cover discussion hook close and idle behavior

This commit is contained in:
zhi
2026-04-02 07:19:57 +00:00
parent 0f38e34bec
commit 15f7d211d7
6 changed files with 139 additions and 3 deletions

View File

@@ -475,6 +475,8 @@ moderator bot 在新 channel 中发布 kickoff message。
### 12.2 展开讨论
参与 Agent 在该 channel 中按现有顺序讨论机制发言。
讨论 channel 的 participant 集合继续复用现有 channel member bootstrap 逻辑:由 `plugin/core/turn-bootstrap.ts` 调用 `fetchVisibleChannelBotAccountIds(...)` 基于 Discord 可见成员与已有 account 映射发现可参与的 bot account再交给 `initTurnOrder(...)` 建立轮转状态,而不是为 discussion 模式额外维护一套成员发现流程。
如果轮转一圈无人发言,则 moderator 提醒发起者:
- 若已达成目标,请写总结文档并 callback