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 {