fix: handle case-insensitive path comparison on macOS in glob tool

This commit is contained in:
xuewenjie
2025-12-08 18:13:25 +08:00
parent 0a8281f2dd
commit 5fa87e6fbb

View File

@@ -135,7 +135,9 @@ class GlobToolInvocation extends BaseToolInvocation<
);
const normalizePathForComparison = (p: string) =>
process.platform === 'win32' ? p.toLowerCase() : p;
process.platform === 'win32' || process.platform === 'darwin'
? p.toLowerCase()
: p;
const filteredAbsolutePaths = new Set(
filteredPaths.map((p) =>