Fix discussion channel closure handling
This commit is contained in:
@@ -119,12 +119,12 @@
|
||||
- [ ] 确保 callback 完成后的 closed channel 不会继续触发 handoff
|
||||
|
||||
#### A7.4 `plugin/hooks/message-received.ts`
|
||||
- [ ] 梳理 moderator bot 消息当前是否已被过滤,避免 moderator 自己再次触发讨论链路
|
||||
- [ ] 对 closed discussion channel 的新消息增加统一处理入口
|
||||
- [ ] 若 closed discussion channel 收到新消息:
|
||||
- [ ] 不再唤醒任何 Agent 正常讨论
|
||||
- [ ] 由 moderator 回复“channel 已关闭,仅做留档使用”
|
||||
- [ ] 避免 moderator 的 closed 提示消息反复触发自身处理
|
||||
- [x] 梳理 moderator bot 消息当前是否已被过滤,避免 moderator 自己再次触发讨论链路
|
||||
- [x] 对 closed discussion channel 的新消息增加统一处理入口
|
||||
- [x] 若 closed discussion channel 收到新消息:
|
||||
- [x] 不再唤醒任何 Agent 正常讨论
|
||||
- [x] 由 moderator 回复“channel 已关闭,仅做留档使用”
|
||||
- [x] 避免 moderator 的 closed 提示消息反复触发自身处理
|
||||
|
||||
#### A7.5 `plugin/core/session-state.ts`(如需)
|
||||
- [ ] 检查现有 session 相关缓存是否适合扩展 discussion 状态
|
||||
@@ -167,23 +167,23 @@
|
||||
- [ ] 明确 channel 已关闭,仅做留档使用
|
||||
|
||||
### A11. `discuss-callback` 详细校验任务
|
||||
- [ ] 校验当前 channel 必须是 discussion channel
|
||||
- [ ] 校验当前 discussion 状态必须是 `active`
|
||||
- [ ] 校验调用者必须是 initiator
|
||||
- [ ] 校验 `summaryPath` 非空
|
||||
- [ ] 校验 `summaryPath` 文件存在
|
||||
- [ ] 校验 `summaryPath` 路径在 initiator workspace 内
|
||||
- [ ] 校验 callback 未重复执行
|
||||
- [ ] callback 成功后写入 `completedAt`
|
||||
- [ ] callback 成功后记录 `summaryPath`
|
||||
- [ ] callback 成功后切换 discussion 状态为 `completed` / `closed`
|
||||
- [x] 校验当前 channel 必须是 discussion channel
|
||||
- [x] 校验当前 discussion 状态必须是 `active`
|
||||
- [x] 校验调用者必须是 initiator
|
||||
- [x] 校验 `summaryPath` 非空
|
||||
- [x] 校验 `summaryPath` 文件存在
|
||||
- [x] 校验 `summaryPath` 路径在 initiator workspace 内
|
||||
- [x] 校验 callback 未重复执行
|
||||
- [x] callback 成功后写入 `completedAt`
|
||||
- [x] callback 成功后记录 `summaryPath`
|
||||
- [x] callback 成功后切换 discussion 状态为 `completed` / `closed`
|
||||
|
||||
### A12. 关闭后的行为封口
|
||||
- [ ] closed discussion channel 中所有旧 session 继续使用 no-reply 覆盖
|
||||
- [ ] closed discussion channel 中任何新消息都不再进入真实讨论
|
||||
- [ ] closed discussion channel 的任何新消息统一走 moderator 固定回复
|
||||
- [ ] 防止 closed channel 中 moderator 自己的回复再次触发回环
|
||||
- [ ] 明确 archived-only 的最终行为与边界
|
||||
- [x] closed discussion channel 中所有旧 session 继续使用 no-reply 覆盖
|
||||
- [x] closed discussion channel 中任何新消息都不再进入真实讨论
|
||||
- [x] closed discussion channel 的任何新消息统一走 moderator 固定回复
|
||||
- [x] 防止 closed channel 中 moderator 自己的回复再次触发回环
|
||||
- [x] 明确 archived-only 的最终行为与边界
|
||||
|
||||
### A13. 测试与文档收尾
|
||||
#### A13.1 工具层测试
|
||||
|
||||
Reference in New Issue
Block a user