diff --git a/core/indexing/chunk/ChunkCodebaseIndex.ts b/core/indexing/chunk/ChunkCodebaseIndex.ts index 4fbc10266..498e5144e 100644 --- a/core/indexing/chunk/ChunkCodebaseIndex.ts +++ b/core/indexing/chunk/ChunkCodebaseIndex.ts @@ -61,8 +61,8 @@ export class ChunkCodebaseIndex implements CodebaseIndex { let accumulatedProgress = 0; if (results.compute.length > 0) { - const folderPath = results.compute[0].path; - const folderName = path.basename(path.dirname(folderPath)); + const filepath = results.compute[0].path; + const folderName = path.basename(path.dirname(filepath)); yield { desc: `Chunking files in ${folderName}`,