Skip to content

callers/node silently truncate at default --limit 20 (no "…N more" indicator) #1674

Description

@azorlu80

Version: v1.6.0

codegraph callers <sym> and codegraph node <sym> cap the caller list at the default --limit 20 with no indication the result was truncated — the header shows the displayed count, never "…N more". impact (uncapped) and node's callee trail (+N more) don't have this; the callers list and the JSON / MCP output do.

Repro (a high-fan-in symbol, e.g. a widely-used hook):

  1. codegraph callers useAuth20 results
  2. codegraph callers useAuth --limit 500174 results
  3. The output/header gives no hint that 154 were dropped.

Expected: when truncated, print something like …154 more (raise --limit), or don't cap silently.

Impact: consumers under-count and trust the result → wrong "who calls this / is this dead code?" conclusions. It's especially harmful when an AI agent drives the tool over MCP, since the tool output inherits the cap with no truncation signal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions