From fca70dd0c8e0d592ee1d707c955949f8d2b66f3b Mon Sep 17 00:00:00 2001 From: Kevin Heidt Date: Tue, 9 Dec 2025 12:59:35 -0500 Subject: [PATCH] Look in the local cache for module installer Looks in the local _cfg custom module cache location for the module, in case the module is one that was sourced from an external location --- tools/cli/installers/lib/modules/manager.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/cli/installers/lib/modules/manager.js b/tools/cli/installers/lib/modules/manager.js index bd8e538e..3aed7147 100644 --- a/tools/cli/installers/lib/modules/manager.js +++ b/tools/cli/installers/lib/modules/manager.js @@ -1122,7 +1122,13 @@ class ModuleManager { if (moduleName === 'core') { sourcePath = getSourcePath('core'); } else { - sourcePath = await this.findModuleSource(moduleName); + // First check if module is in cache (for custom modules installed from external directories) + const cachePath = path.join(bmadDir, '_cfg', 'custom', moduleName); + if (await fs.pathExists(cachePath)) { + sourcePath = cachePath; + } else { + sourcePath = await this.findModuleSource(moduleName); + } if (!sourcePath) { // No source found, skip module installer return;