fix: report CLI result truncation - #1647
Closed
danusha2345 wants to merge 6 commits into
Closed
danusha2345 wants to merge 6 commits into
danusha2345 wants to merge 6 commits into
Conversation
added 3 commits
August 30, 2026 12:16
…ymchenry#1674) The codegraph_callers and codegraph_callees answers sliced the list at `limit` (default 20) with no marker, so a capped answer read as the complete set and an agent under-counted "who calls this". Both the flat list and the per-definition sections now say "showing N of M".
added 2 commits
September 8, 2026 11:12
…on-metadata # Conflicts: # CHANGELOG.md
…on-metadata # Conflicts: # CHANGELOG.md
Contributor
Author
|
Merged current |
…on-metadata # Conflicts: # CHANGELOG.md
Contributor
Author
|
Merged current |
3 tasks
Owner
Contributor
Author
|
Closing in favor of #1772 — thanks for carrying it over. |
colbymchenry
added a commit
that referenced
this pull request
Sep 8, 2026
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.
Fixes #1639.
callersandcalleesJSON now includetotal,limit, andtruncated; human output showsshown of totalplus a widening hint.queryfetches one extra result to detect a cut. Its existing bare-array JSON stdout remains unchanged; a truncation notice is emitted on stderr, while human output gets the same notice on stdout.truncated: falsefor complete results.Tests:
npm run buildnpm test(3055 passed, 187 skipped)Follow-up: MCP answers (#1674)
codegraph_callers/codegraph_calleessliced their list atlimit(default 20) with no marker, so an agent read a capped answer as the complete set (#1674, the same symptom over MCP). The flat list now ends with "Showing N of M callers; passlimit(up to 100) to widen", and each per-definition section gets "… +N more". Covered by__tests__/mcp-callers-truncation.test.ts; full suite green.