Chat list: order chat_session_changed pushes by a registry revision
operator_sessions gains a revision bumped by a trigger on every update; the wire row carries it, and the app ignores a push (or a list read) older than the row it holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -156,6 +156,7 @@ func chatSessionFromOperator(session pipeline.OperatorSession) protocol.ChatSess
|
||||
CreatedAt: session.CreatedAt,
|
||||
UpdatedAt: session.UpdatedAt,
|
||||
Backend: session.Backend,
|
||||
Revision: session.Revision,
|
||||
}
|
||||
if session.ClosedAt > 0 {
|
||||
out.Closed = true
|
||||
|
||||
Reference in New Issue
Block a user