fix(coding-agent): make find tool match path-based glob patterns

fd --glob matches against the basename unless --full-path is set, so
patterns containing '/' (e.g. 'src/**/*.spec.ts') silently returned no
results. When the pattern contains '/', switch fd into --full-path mode
and prepend '**/' unless the pattern already starts with '/', '**/', or
is '**'. Basename patterns keep the default matcher.

closes #3302
This commit is contained in:
Mario Zechner
2026-04-16 22:53:45 +02:00
parent ab518d8651
commit c5451af749
3 changed files with 85 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
### Fixed
- Fixed `--verbose` startup output to begin with expanded startup help and loaded resource listings after the compact startup header change ([#3147](https://github.com/badlogic/pi-mono/issues/3147))
- Fixed `find` tool returning no results for path-based glob patterns such as `src/**/*.spec.ts` or `some/parent/child/**` by switching fd into full-path mode and normalizing the pattern when it contains a `/` ([#3302](https://github.com/badlogic/pi-mono/issues/3302))
## [0.67.5] - 2026-04-16