fix(remote): preserve terminal recovery across control refresh (#11513)
* fix(remote): recover stalled terminal streams * fix(i18n): localize manual disconnect error * fix(remote): park paired terminals with host snapshots * test(remote): mock authoritative resync snapshots * fix(terminal): defer startup mounts until hydration * fix(remote): raise paired terminal stream capacity * fix(remote): harden terminal recovery lifecycle * fix(remote): preserve calls across control refresh * test(remote): harden paired recovery oracle * test(workspace): seed Jira source context * test(remote): assert raw host terminal identities * test(terminal): keep restore sentinels atomic * test(terminal): keep restore sentinel on one row --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -186,9 +186,15 @@ export function closeSharedControlSocketState(args: {
|
||||
socketCleanup: (() => void) | null
|
||||
ws: { close: () => void } | null
|
||||
error?: Error
|
||||
preserveReadyWaitersAndPendingRequests?: boolean
|
||||
}): void {
|
||||
rejectSharedControlReadyWaiters(args.readyWaiters, args.error ?? remoteRuntimeUnavailableError())
|
||||
rejectAllSharedControlPendingRequests(args.pendingRequests, args.error)
|
||||
if (!args.preserveReadyWaitersAndPendingRequests) {
|
||||
rejectSharedControlReadyWaiters(
|
||||
args.readyWaiters,
|
||||
args.error ?? remoteRuntimeUnavailableError()
|
||||
)
|
||||
rejectAllSharedControlPendingRequests(args.pendingRequests, args.error)
|
||||
}
|
||||
markSharedControlSubscriptionsUnsent(args.subscriptions)
|
||||
try {
|
||||
args.socketCleanup?.()
|
||||
|
||||
Reference in New Issue
Block a user