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:21 -07:00
co-authored by Nucleic
parent dabf0cf64a
commit eff6127773
@@ -469,7 +469,13 @@ final class HostConnection {
send(.listDashboard)
// 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))) }
if let id = openSessionID {
send(.subscribe(Subscribe(sessionID: id, sinceSeq: openMaxSeq, verbosity: .full)))
// Also pull full history — the subscribe above only replays the tail (or, on a warm
// reconnect, the missed gap). No-op after the first open of this session, so an
// ordinary reconnect keeps the transcript on screen instead of refetching it.
fetchFullTranscript(id)
}
case .sessionList(let list):
sessions = list
callbacks.didUpdate()