mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
fix: narrow diagnostic session tail
This commit is contained in:
@@ -106,7 +106,7 @@ export function readLastAssistantFromSessionFile(filePath: string | undefined):
|
||||
return undefined;
|
||||
}
|
||||
const tail = readTailText(filePath);
|
||||
if (!tail.text) {
|
||||
if (!tail?.text) {
|
||||
return undefined;
|
||||
}
|
||||
const lines = tail.text.split(/\r?\n/).filter(Boolean);
|
||||
|
||||
Reference in New Issue
Block a user