mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:50:42 +00:00
ci(release): tolerate plugin logs before agent json
This commit is contained in:
@@ -2431,7 +2431,10 @@ function parseAgentPayloadTexts(stdout) {
|
||||
: [];
|
||||
return [...directTexts, ...payloadTexts];
|
||||
} catch {
|
||||
return stdout.trim() ? [stdout] : [];
|
||||
const finalTextMatches = [
|
||||
...stdout.matchAll(/"(?:finalAssistantVisibleText|finalAssistantRawText)"\s*:\s*"([^"]*)"/gu),
|
||||
].map((match) => match[1]);
|
||||
return finalTextMatches.length > 0 ? finalTextMatches : stdout.trim() ? [stdout] : [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user