Skip to content

Commit 254baa8

Browse files
authored
Fix errant maxReadFileLine default (#4683)
1 parent 1a4c689 commit 254baa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tools/readFileTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export async function readFileTool(
429429

430430
const relPath = fileResult.path
431431
const fullPath = path.resolve(cline.cwd, relPath)
432-
const { maxReadFileLine = 500 } = (await cline.providerRef.deref()?.getState()) ?? {}
432+
const { maxReadFileLine = -1 } = (await cline.providerRef.deref()?.getState()) ?? {}
433433

434434
// Process approved files
435435
try {

0 commit comments

Comments
 (0)