fix(coding-agent): support path globs on Windows

This commit is contained in:
Armin Ronacher 2026-08-05 21:56:27 +02:00
parent 05e89b4188
commit d4eaf052b2
2 changed files with 4 additions and 0 deletions

View file

@ -86,6 +86,7 @@
### Fixed
- Fixed path-containing `find` globs returning no results on Windows ([#6817](https://github.com/earendil-works/pi/issues/6817)).
- Fixed messages queued during manual `/compact` failing instead of being sent after compaction completes.
- Fixed Git Bash, MSYS, Cygwin, and WSL drive paths passed to built-in file tools resolving against the current Windows drive instead of their native drive ([#7064](https://github.com/earendil-works/pi/issues/7064), [#7547](https://github.com/earendil-works/pi/issues/7547)).
- Fixed project-level nested provider retry settings replacing unmodified global provider retry settings ([#7572](https://github.com/earendil-works/pi/issues/7572)).

View file

@ -255,6 +255,9 @@ export function createFindToolDefinition(
if (!pattern.startsWith("/") && !pattern.startsWith("**/") && pattern !== "**") {
effectivePattern = `**/${pattern}`;
}
// fd matches full paths using native separators on Windows.
if (process.platform === "win32")
effectivePattern = effectivePattern.replaceAll("/", String.raw`[/\\]`);
}
args.push("--", effectivePattern, searchPath);