Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

fix: cap locate text results to 10 to prevent oversized output

riley022715498701f369
diff --git a/ix-cli/src/cli/commands/locate.ts b/ix-cli/src/cli/commands/locate.ts
index 63a02057..a21b7529 100644
--- a/ix-cli/src/cli/commands/locate.ts
+++ b/ix-cli/src/cli/commands/locate.ts
@@ -48,6 +48,9 @@ export function registerLocateCommand(program: Command): void {
if (err.code !== 1 && err.status !== 1 && err.code !== "ENOENT") throw err;
}
+ // Cap text hits to prevent oversized output
+ textHits = textHits.slice(0, 10);
+
// Step 3: Build results — graph entities first, then unmatched text hits
const results: LocateResult[] = [];
for (const node of graphNodes) {