Repository navigation
fix: make streaming search caps recoverable - #4107
lindicaphxag-tech wants to merge 9 commits into
Conversation
📊 Automated PR Analysis
SummaryFixes the streaming grep/rg cap handling so matches discarded beyond the result cap are no longer lost. Instead of just printing a capped-output notice, the filter now archives the full captured matches via force_tee_tail_hint on process exit and shows a 'showing N of M' summary with a recall hint, while respecting RTK_RECALL=0/RTK_TEE=0. Review Checklist
Linked issues: #4098 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
|
Follow-up on head |
|
Updated head: |
… tests on Linux
Summary
Fix the streaming
grep/rgcap path so discarded matches are recoverable through the existing recall mechanism.When stdin search exceeded the result cap, the stream filter emitted only
[rtk] output capped at N resultsand dropped the remaining matches without storing them. The filter now keeps the existing live output behavior, then emits ashowing N of Msummary after the process exits and archives the complete captured matches throughforce_tee_tail_hint, which provides the existingrtk recall <hash>recovery hint when recall is enabled.The recovery entry uses the original search command as its slug and remains disabled when
RTK_RECALL=0/RTK_TEE=0is set. The configuration guide documents the count and recovery behavior.Closes #4098
Test plan
cargo fmt --all -- --checkcargo test streaming_search_archives_hidden_matches_for_recallandcargo clippy --all-targets— attempted locally, but the Windows host lacks the MSVC linker (link.exe), so compilation stops before tests run. GitHub currently reports no CI test jobs; maintainer-run CI is needed.seq 1 250 | rtk grep -v zzz(requires a working build)