Browse Source

Fix errant maxReadFileLine default (#4683)

Matt Rubens 6 tháng trước cách đây
mục cha
commit
254baa8704
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/core/tools/readFileTool.ts

+ 1 - 1
src/core/tools/readFileTool.ts

@@ -429,7 +429,7 @@ export async function readFileTool(
 
 			const relPath = fileResult.path
 			const fullPath = path.resolve(cline.cwd, relPath)
-			const { maxReadFileLine = 500 } = (await cline.providerRef.deref()?.getState()) ?? {}
+			const { maxReadFileLine = -1 } = (await cline.providerRef.deref()?.getState()) ?? {}
 
 			// Process approved files
 			try {