opencode
opencode copied to clipboard
fix: stop rg after file limit
What does this PR do?
-
Stop ripgrep scans once the file limit is reached and kill the rg process.
- Disable symlink follow + hidden scanning by default for glob/list (only enable when targeted).
- Pass limit through the debug rg path.
Fixes #5220
How did you verify your code works?
- Manual: Bun script calling Ripgrep.files({ limit: 100 }) on /tmp/oc-rg-test (20k files + symlink loop); returns 100 quickly, no lingering rg processes.