From e650bdff4caaab6f808d18f31578692b698dc700 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 04:30:00 -0700 Subject: [PATCH] Session Sync Repair Nucleic-Session: 0C7BC346-0002-4533-ADDD-3B4C92E58527 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/HostConnection.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Models/HostConnection.swift b/NucleicRemote/NucleicRemote/Models/HostConnection.swift index e1f1335..2d20037 100644 --- a/NucleicRemote/NucleicRemote/Models/HostConnection.swift +++ b/NucleicRemote/NucleicRemote/Models/HostConnection.swift @@ -453,7 +453,9 @@ final class HostConnection { callbacks.didUpdate() send(.listSessions) send(.listDashboard) - if let id = openSessionID { send(.subscribe(Subscribe(sessionID: id, sinceSeq: nil, verbosity: .full))) } + // Warm-resubscribe from what we already have, so a reconnect on a long transcript replays + // only the gap rather than snapping back to the host's 200-event tail. + if let id = openSessionID { send(.subscribe(Subscribe(sessionID: id, sinceSeq: openMaxSeq, verbosity: .full))) } case .sessionList(let list): sessions = list callbacks.didUpdate()