From dcd581c84ab007f8add753a178349f64227dec04 Mon Sep 17 00:00:00 2001 From: Kevin Heidt Date: Wed, 14 Jan 2026 22:16:23 -0500 Subject: [PATCH] Fix glob pattern to use forward slashes (#1241) Normalize source directory path for glob pattern compatibility. Reviewed-by: Alex Verkhovsky --- tools/cli/installers/lib/ide/shared/module-injections.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cli/installers/lib/ide/shared/module-injections.js b/tools/cli/installers/lib/ide/shared/module-injections.js index 6e38ee10..fe3f999d 100644 --- a/tools/cli/installers/lib/ide/shared/module-injections.js +++ b/tools/cli/installers/lib/ide/shared/module-injections.js @@ -108,7 +108,10 @@ async function resolveSubagentFiles(handlerBaseDir, subagentConfig, subagentChoi const resolved = []; for (const file of filesToCopy) { - const pattern = path.join(sourceDir, '**', file); + // Use forward slashes for glob pattern (works on both Windows and Unix) + // Convert backslashes to forward slashes for glob compatibility + const normalizedSourceDir = sourceDir.replaceAll('\\', '/'); + const pattern = `${normalizedSourceDir}/**/${file}`; const matches = await glob(pattern); if (matches.length > 0) {