This commit is contained in:
Kevin Heidt 2026-01-11 18:02:10 +01:00 committed by GitHub
commit 71dd00fd03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {