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,
});
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,