bug(core): fix contentRangeTruncated calculation. (#5329)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
joshualitt
2025-08-05 11:52:39 -07:00
committed by GitHub
parent 43d5aaa798
commit 08f1431946
2 changed files with 25 additions and 1 deletions

View File

@@ -299,7 +299,8 @@ export async function processSingleFileContent(
return line;
});
const contentRangeTruncated = endLine < originalLineCount;
const contentRangeTruncated =
startLine > 0 || endLine < originalLineCount;
const isTruncated = contentRangeTruncated || linesWereTruncatedInLength;
let llmTextContent = '';