启动不是顺序脚本
src/main.tsx + src/entrypoints/init.ts
关键判断:启动阶段一开始就在做“哪些事可以先并行,哪些事必须等 trust 之后再继续”。
// src/main.tsx
// These side-effects must run before all other imports:
profileCheckpoint('main_tsx_entry')
startMdmRawRead()
startKeychainPrefetch()
// src/entrypoints/init.ts
// Apply only safe environment variables before trust dialog
// Full environment variables are applied after trust is established
applySafeConfigEnvironmentVariables()