mirror of
https://github.com/stablyai/orca.git
synced 2026-09-21 16:02:20 +00:00
chore(ssh): rename the snapshot prefetch off its park-only name
The probe serves reconnect remounts as well now, so parkedSshSnapshotPrefetch described only half of what it holds.
This commit is contained in:
@@ -7979,7 +7979,7 @@ export function connectPanePty(
|
||||
// has live content. Reading a frozen copy reintroduced exactly that.
|
||||
let paintsIntoEmptyTerminal = mountFollowsTerminalPark || isSshReconnectRemount
|
||||
|
||||
let parkedSshSnapshotPrefetch: {
|
||||
let sshModelSnapshotPrefetch: {
|
||||
ptyId: string
|
||||
fetch: () => Promise<PtyBufferSnapshot | null>
|
||||
} | null = null
|
||||
@@ -8017,10 +8017,10 @@ export function connectPanePty(
|
||||
const getSshMainModelSnapshotProbe = (
|
||||
ptyId: string
|
||||
): (() => Promise<PtyBufferSnapshot | null>) => {
|
||||
if (parkedSshSnapshotPrefetch?.ptyId !== ptyId) {
|
||||
parkedSshSnapshotPrefetch = { ptyId, fetch: createSshMainModelSnapshotProbe(ptyId) }
|
||||
if (sshModelSnapshotPrefetch?.ptyId !== ptyId) {
|
||||
sshModelSnapshotPrefetch = { ptyId, fetch: createSshMainModelSnapshotProbe(ptyId) }
|
||||
}
|
||||
return parkedSshSnapshotPrefetch.fetch
|
||||
return sshModelSnapshotPrefetch.fetch
|
||||
}
|
||||
|
||||
// Renamed from prepaintParkedSshSnapshot: parking is no longer the only mount that needs it.
|
||||
|
||||
Reference in New Issue
Block a user