From 3f2e1e446a04edc206128e0358e2d58c11344e15 Mon Sep 17 00:00:00 2001 From: Sebastian Herrlinger Date: Mon, 9 Mar 2026 21:08:36 +0100 Subject: [PATCH] fix --- packages/opencode/src/config/tui.ts | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/opencode/src/config/tui.ts b/packages/opencode/src/config/tui.ts index 8c5b850589..d02490e0e3 100644 --- a/packages/opencode/src/config/tui.ts +++ b/packages/opencode/src/config/tui.ts @@ -125,15 +125,17 @@ export namespace TuiConfig { : undefined const deps: Promise[] = [] - for (const dir of unique(directories)) { - if (!dir.endsWith(".opencode") && dir !== Flag.OPENCODE_CONFIG_DIR) continue - deps.push( - (async () => { - const shouldInstall = await Config.needsInstall(dir) - if (!shouldInstall) return - await Config.installDependencies(dir) - })(), - ) + if (result.plugin?.length) { + for (const dir of unique(directories)) { + if (!dir.endsWith(".opencode") && dir !== Flag.OPENCODE_CONFIG_DIR) continue + deps.push( + (async () => { + const shouldInstall = await Config.needsInstall(dir) + if (!shouldInstall) return + await Config.installDependencies(dir) + })(), + ) + } } return {