feat(channels): IM 车道生成并写入真实 turn_id(user/assistant 成对 + 同源 WithTurnID;群聊隔离与静默语义不变)
CI / Backend (build / vet / test / cross-compile) (push) Has been cancelled
CI / Frontend (tsc + vite build) (push) Has been cancelled

This commit is contained in:
AskaEth committed 2026-10-05 12:22:44 +08:00
1 parent ba1974038a
commit 8f6a75b7d7
9 files changed
+215 -21

No files matched your search

+4 -1
View File
@@ -22,7 +22,10 @@ import (
// SetMessagesTurnID。
//
// 空串(列的默认值)意味着「这一行不属于任何已知的回合」:加入该列之前的历史行、
// 未经编排器的写入路径(IM 镜像)都是这种情形,读起来与以往逐字相同。
// 以及**本就不属于任何回合**的写入路径(被静默登记的非主人消息、无入站回合的主动
// 推送)都是这种情形,读起来与以往逐字相同。IM 车道不在其列 —— 它没有编排器,但
// 渠道桥自己就是那条车道的回合权威,在落库前生成并写入这一列
// (internal/services/channelbridge/turnid.go)。
// SetMessagesTurnID 把 ids 所指的消息行的 turn_id 落定为 turnID —— 两段式写入的
// 第二段(起跑 / 被 steer 消费时补写)。