fix(mobile): route phone APIs to selected profile and unblock runtime readiness
ci / mobile-link-windows (push) Successful in 30s
ci / approval-gate-windows (push) Successful in 46s

This commit is contained in:
2026-10-07 20:10:36 +03:00
parent b1db2870c1
commit 61d765e2df
15 changed files with 970 additions and 176 deletions
@@ -109,5 +109,13 @@ export async function runPrimaryBackendStartup<Backend, RuntimeBackend, Remote,
throw new FirstRunSetupResetError()
}
if (decision === 'runtime-ready') {
const current = await prepareLocalBackend()
if ((current as { kind?: string }).kind === 'bootstrap-needed') {
throw new Error('The completed local runtime is no longer available. Retry setup.')
}
return { kind: 'local', backend: await ensureLocalRuntime(current) }
}
return { kind: 'local', backend: await ensureLocalRuntime(backend) }
}