Fetch Historical Transcript Data

Nucleic-Session: 11465D90-A8F3-43AA-A1DC-37EA1EC1B909
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 19:27:51 -07:00
co-authored by Nucleic
parent 2cc7eeb2b1
commit aecf180a68
@@ -487,6 +487,12 @@ final class RemoteStore: ObservableObject {
guard let self, hostID == self.openSessionHostID, batch.sessionID == self.openSessionID else { return }
self.openEvents.append(contentsOf: batch.events)
}
cb.openBackfill = { [weak self] batch in
guard let self, hostID == self.openSessionHostID, batch.sessionID == self.openSessionID else { return }
// Full-history backfill precedes what's on screen — merge by seq so it slots in above the
// tail rather than appending out of order.
self.openEvents = Self.mergedEvents(self.openEvents, batch.events)
}
cb.openDiff = { [weak self] diff in
guard let self, hostID == self.openSessionHostID, diff.sessionID == self.openSessionID else { return }
self.openDiff = diff