mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): support path globs on Windows
This commit is contained in:
parent
05e89b4188
commit
d4eaf052b2
2 changed files with 4 additions and 0 deletions
|
|
@ -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)).
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue