tweak: make read tool offset 1 indexed instead of 0 to avoid confusion that could be caused by line #s being 1 based (#13198)

This commit is contained in:
Aiden Cline 2026-02-11 14:02:30 -06:00 • committed by GitHub
commit 006d673ed2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1022,9 +1022,9 @@ export namespace SessionPrompt {
}
}
}
offset = Math.max(start - 1, 0)
offset = Math.max(start, 1)
if (end) {
limit = end - offset
limit = end - (offset - 1)
}
}
const args = { filePath: filepath, offset, limit }