Compare commits

...

3 Commits

Author SHA1 Message Date
Kevin Heidt 9344254800
Merge 6f1ffa2f35 into 677a00280b 2026-01-09 17:47:57 +09:00
Alex Verkhovsky 6f1ffa2f35
Merge branch 'main' into patch-3 2026-01-02 17:35:58 -08:00
Kevin Heidt 3b05fe77a1
Fix glob pattern to use forward slashes
Normalize source directory path for glob pattern compatibility.
2026-01-02 13:10:47 -05:00
1 changed files with 4 additions and 1 deletions

View File

@ -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) {