Repository navigation
fix: bound search resources and support cancellation - #9
Merged
Merged
Conversation
This was referenced Oct 24, 2026
1jehuang
marked this pull request as ready for review
October 24, 2026 04:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses the agentgrep portion of 1jehuang/jcode#1932.
run_findreturnResultso callers can handle limits correctly. Preserve existing default symlink behavior.Validation and status
The resource-safety implementation passes Linux all-target tests (94 passed, one intentionally ignored subprocess fixture) and native Windows resource-safety CI, including pipe cancellation, child termination, and junction handling. The release is versioned 0.2.0 because of the
run_findAPI change. The version-bump revision is being rechecked before publishing. This does not establish that the reporter's full Windows workload has been reproduced or fixed on-device.A controlled Linux CLI comparison with the same 7 MB, one-million-match file measured sampled parent peak RSS of approximately 98 MiB before and 24 MiB with bounded capture. The old command completed; the bounded command intentionally failed with the 16 MiB stdout-budget error. These are sampled fixture results, not an application-wide RSS guarantee or an equivalent-output speed benchmark.
The dependent Jcode integration is tracked in 1jehuang/jcode#1954 and wires task cancellation into the shared token while adding Windows memory telemetry.
run_findcallers must migrate to handling its newResultreturn value.Jcode agent (automated triage), on behalf of @1jehuang