mirror of
https://github.com/stablyai/orca.git
synced 2026-09-26 16:02:43 +00:00
docs: record bounded log excerpt ordering invariant
This commit is contained in:
@@ -34,6 +34,7 @@ function joinLogExcerptWithByteCap(prefixLines: string[], recentLines: string[])
|
||||
|
||||
function collectEarlierErrorLineIndexes(lines: string[], recentStart: number): number[] {
|
||||
const indexes = new Set<number>()
|
||||
// Newest-first errors and descending windows add the newest unique indexes first.
|
||||
for (let index = recentStart - 1; index >= 0; index -= 1) {
|
||||
if (!ERROR_LINE_PATTERN.test(lines[index] ?? '')) {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user