mirror of
https://github.com/lukaszraczylo/filepuff-mcp.git
synced 2026-10-12 04:54:27 +00:00
On the first page (offset==0) ripgrep capped results at exactly max_results and set Truncated=true, but the cursor-footer guard (len>max_results) was false, so the response said "(truncated...)" with no cursor — the caller was told more matches exist but given no way to fetch them. Pagination only worked from page 2. Emit a cursor on the first page using rg's total match count for the remaining estimate. Adds a strict regression test (asserts, not skips); the existing pagination test was silently skipping its round-trip because page 1 never had a cursor.