Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
fix(ingest): gate logSaveTiming behind debug and truncate commit errors
Joseph Mikhail8e231612ab3b
diff --git a/ix-cli/src/cli/commands/ingest.ts b/ix-cli/src/cli/commands/ingest.tsindex aa71a2fb..15b491c4 100644--- a/ix-cli/src/cli/commands/ingest.ts+++ b/ix-cli/src/cli/commands/ingest.ts@@ -422,6 +422,7 @@ export async function ingestFiles(edges: number,claims: number,): void => {+ if (!debug) return;process.stderr.write(`\n[ingest-save] files=${files} resolveEdgesMs=${resolveEdgesMs} buildPatchMs=${buildPatchMs}` +(mapMode ? ` stripChunkOpsMs=${stripMs}` : '') +@@ -613,7 +614,9 @@ export async function ingestFiles(patchesApplied++;} catch (commitErr) {parseErrors++;- process.stderr.write(`\n [commit error] ${item.patch.source?.uri}: ${commitErr}\n`);+ const errMsg = String(commitErr);+ const truncated = errMsg.length > 200 ? errMsg.slice(0, 200) + '…' : errMsg;+ process.stderr.write(`\n [commit error] ${item.patch.source?.uri}: ${truncated}\n`);}}} finally {