Fix errant maxReadFileLine default (#4683)

This commit is contained in:
Matt Rubens 2025-06-13 23:30:28 -04:00 committed by GitHub
parent 1a4c6892a3
commit 254baa8704
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {