mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 03:44:57 +00:00
fix: ignore leading transcript bytes in tail scan
This commit is contained in:
@@ -560,7 +560,7 @@ async function readLastNonzeroUsageFromSessionLog(logPath: string): Promise<Sess
|
||||
return usage
|
||||
? {
|
||||
usage,
|
||||
trailingBytes: Math.max(0, stat.size - Buffer.byteLength(leadingPartial, "utf8")),
|
||||
trailingBytes: 0,
|
||||
byteSize: stat.size,
|
||||
}
|
||||
: { byteSize: stat.size };
|
||||
|
||||
Reference in New Issue
Block a user