perf(init): parallelize googleAuth and tmuxPath initialization

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-01-04 21:05:58 +09:00
parent be2adff3ef
commit e572c7c321

View File

@@ -219,12 +219,12 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
getSessionID: getSessionIDForMcp, getSessionID: getSessionIDForMcp,
}); });
const googleAuthHooks = const [googleAuthHooks, tmuxAvailable] = await Promise.all([
pluginConfig.google_auth !== false pluginConfig.google_auth !== false
? await createGoogleAntigravityAuthPlugin(ctx) ? createGoogleAntigravityAuthPlugin(ctx)
: null; : Promise.resolve(null),
getTmuxPath(),
const tmuxAvailable = await getTmuxPath(); ]);
const configHandler = createConfigHandler({ const configHandler = createConfigHandler({
ctx, ctx,