-
fix: decouple ffgrep per-file cap from page size (#825) (#832)
发布于
2026-08-29 16:37:26 +00:00 | 21 次提交 在此版本后已推送到 mainpi-fff passed pageSize as maxMatchesPerFile for grep/multi-grep. Since
grep cursors advance by file offset, clamping the per-file cap to the
page size made same-file matches beyond the cap permanently unreachable
across cursor pagination.Use a dedicated GREP_MAX_MATCHES_PER_FILE (200, the engine default) so
page size only bounds total matches per page while the current file is
always finished. Adds a regression test asserting the two limits stay
decoupled.Closes #825
Co-authored-by: gustav-fff 286169375+gustav-fff@users.noreply.github.com
下载附件