From 254baa8704dcd08680500a22b948b0421c94a6f5 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 13 Jun 2025 23:30:28 -0400 Subject: [PATCH] Fix errant maxReadFileLine default (#4683) --- src/core/tools/readFileTool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tools/readFileTool.ts b/src/core/tools/readFileTool.ts index e49ac43d7b..1459838fe0 100644 --- a/src/core/tools/readFileTool.ts +++ b/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 {