diff --git a/src/ingest/index.ts b/src/ingest/index.ts index a9b522f..4b661ce 100644 --- a/src/ingest/index.ts +++ b/src/ingest/index.ts @@ -199,6 +199,9 @@ export async function ingestPath( return; } + // Update counter immediately for every file (BEFORE MAX_FILE_SIZE gate — skipped files still advance the counter) + options?.progressCallback?.({ current: i + 1, total: walkedFiles.length }); + if (fileStats.size > MAX_FILE_SIZE) { const msg = `Skipped (too large, ${(fileStats.size / 1024 / 1024).toFixed(1)}MB): ${filePath}`; log("info", "ingest", msg);