fix(startup): skip heavy startup log on lightweight path

This commit is contained in:
2026-03-01 02:06:21 -08:00
parent dd0ed3f849
commit 2c001e8017

View File

@@ -168,6 +168,13 @@ export function isAutoUpdateEnabledRuntime(
export async function runAppReadyRuntime(deps: AppReadyRuntimeDeps): Promise<void> {
const now = deps.now ?? (() => Date.now());
const startupStartedAtMs = now();
if (deps.shouldSkipHeavyStartup?.()) {
await deps.loadYomitanExtension();
deps.handleInitialArgs();
deps.logDebug?.(`App-ready critical path finished in ${now() - startupStartedAtMs}ms.`);
return;
}
deps.logDebug?.('App-ready critical path started.');
if (deps.shouldSkipHeavyStartup?.()) {