Skip to content

Commit b005f01

Browse files
committed
fix: ignore leading transcript bytes in tail scan
1 parent e397636 commit b005f01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/auto-reply/reply/agent-runner-memory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ async function readLastNonzeroUsageFromSessionLog(logPath: string): Promise<Sess
560560
return usage
561561
? {
562562
usage,
563-
trailingBytes: Math.max(0, stat.size - Buffer.byteLength(leadingPartial, "utf8")),
563+
trailingBytes: 0,
564564
byteSize: stat.size,
565565
}
566566
: { byteSize: stat.size };

0 commit comments

Comments
 (0)