mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 00:27:39 +00:00
* 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>
12 lines
461 B
TypeScript
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()
|
|
})
|
|
}
|