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:
2026-12-03 00:34:16 +00:00
parent 9f13c93be6
commit fbc09528ec
6 changed files with 163 additions and 7 deletions
+1
View File
@@ -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