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
parent 6b4d617df0
commit 006d673ed2
4 changed files with 38 additions and 13 deletions

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 }