From e572c7c32122f4b289a76af3bcd11535b6836436 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 4 Jan 2026 21:05:58 +0900 Subject: [PATCH] perf(init): parallelize googleAuth and tmuxPath initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 56acf13..20a7618 100644 --- a/src/index.ts +++ b/src/index.ts @@ -219,12 +219,12 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => { getSessionID: getSessionIDForMcp, }); - const googleAuthHooks = + const [googleAuthHooks, tmuxAvailable] = await Promise.all([ pluginConfig.google_auth !== false - ? await createGoogleAntigravityAuthPlugin(ctx) - : null; - - const tmuxAvailable = await getTmuxPath(); + ? createGoogleAntigravityAuthPlugin(ctx) + : Promise.resolve(null), + getTmuxPath(), + ]); const configHandler = createConfigHandler({ ctx,