From 2c001e80177c5d647820a86879c0b6c974520a3b Mon Sep 17 00:00:00 2001 From: sudacode Date: Sun, 1 Mar 2026 02:06:21 -0800 Subject: [PATCH] fix(startup): skip heavy startup log on lightweight path --- src/core/services/startup.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/services/startup.ts b/src/core/services/startup.ts index 21df7af..da16ae9 100644 --- a/src/core/services/startup.ts +++ b/src/core/services/startup.ts @@ -168,6 +168,13 @@ export function isAutoUpdateEnabledRuntime( export async function runAppReadyRuntime(deps: AppReadyRuntimeDeps): Promise { 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?.()) {