Files
orca/src/main/ipc/runtime-environment-recovery-handler.ts
T
BingZandOrcaWin b96c2f0582 fix(remote): accelerate terminal recovery on resume/online (#8255)
* fix(remote): accelerate shared-control and pane recovery on resume/online

Narrow #8255 onto current main after #9774: fire pending shared-control
reconnect timers and pane recovery backoffs on system resume and browser
online, without replacing the per-pane recovery state machine or reconnect
banner UX.

* test(remote): cover online and occluded-resume recovery triggers

* fix(remote): centralize recovery acceleration

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-07-27 01:43:44 -07:00

12 lines
461 B
TypeScript

import { ipcMain } from 'electron'
import { retryRemoteRuntimeSharedControlConnectionsNow } from './runtime-environment-request-connections'
const RETRY_CONNECTIONS_NOW_CHANNEL = 'runtimeEnvironments:retryConnectionsNow'
export function registerRuntimeEnvironmentRecoveryHandler(): void {
ipcMain.removeHandler(RETRY_CONNECTIONS_NOW_CHANNEL)
ipcMain.handle(RETRY_CONNECTIONS_NOW_CHANNEL, () => {
retryRemoteRuntimeSharedControlConnectionsNow()
})
}