fix(ide): upgrade managed agent and migrate existing member media connection
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
systemPreferences
|
||||
} from 'electron'
|
||||
|
||||
import { classifyActiveRuntime } from './active-runtime-state'
|
||||
import { classifyActiveRuntime, needsPackagedRuntimeUpgrade } from './active-runtime-state'
|
||||
import { destroyKeepaliveAgents, downloadAgentFor, jsonAgentFor, withRetry } from './api-transport'
|
||||
import { appIconCandidates, resolveAppIcon } from './app-icon'
|
||||
import { stopBackendChild as stopBackendChildImpl, stopBackendTreesForUpdate } from './backend-child'
|
||||
@@ -4905,6 +4905,11 @@ function resolveHermesBackend(backendArgs) {
|
||||
// bootstrap when the runtime itself is unusable.
|
||||
const activeRuntime = activeRuntimeState()
|
||||
|
||||
if (needsPackagedRuntimeUpgrade(IS_PACKAGED, INSTALL_STAMP, readBootstrapMarker())) {
|
||||
rememberLog('[bootstrap] AITURK package changed; updating its managed agent before launch.')
|
||||
return createBootstrapBackend(backendArgs)
|
||||
}
|
||||
|
||||
if (activeRuntime.shouldUseActiveRuntime && !bootstrapRepairRequested) {
|
||||
if (!activeRuntime.hasValidMarker) {
|
||||
rememberLog(
|
||||
|
||||
Reference in New Issue
Block a user