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:
OrcaWin
2026-07-30 03:05:10 -07:00
committed by GitHub
co-authored by OrcaWin
parent 9eede0084d
commit ab665a3ce7
9 changed files with 152 additions and 43 deletions
@@ -19,6 +19,7 @@ export function closeSharedControlSocket(args: {
readyWaiters: SharedControlReadyWaiter[]
lastClose: { code: number; reason: string } | null
error?: Error
preserveReadyWaitersAndPendingRequests?: boolean
clearReadyStableTimer: () => void
}): void {
if (args.ws || args.socketCleanup) {
@@ -39,6 +40,7 @@ export function closeSharedControlSocket(args: {
subscriptions: args.subscriptions,
socketCleanup: args.socketCleanup,
ws: args.ws,
error: args.error
error: args.error,
preserveReadyWaitersAndPendingRequests: args.preserveReadyWaitersAndPendingRequests
})
}