diff --git a/src/integrations/workspace/WorkspaceTracker.ts b/src/integrations/workspace/WorkspaceTracker.ts index fd169d7..fc60182 100644 --- a/src/integrations/workspace/WorkspaceTracker.ts +++ b/src/integrations/workspace/WorkspaceTracker.ts @@ -95,7 +95,7 @@ class WorkspaceTracker { } private normalizeFilePath(filePath: string): string { - const resolvedPath = path.resolve(filePath) + const resolvedPath = cwd ? path.resolve(cwd, filePath) : path.resolve(filePath) return filePath.endsWith("/") ? resolvedPath + "/" : resolvedPath }