test(qa): satisfy history reply lint · openclaw/openclaw@2205f50
openclaw
·
2026-06-23
·
via Recent Commits to openclaw:main
Skip to content
Navigation Menu
Saved searches
Use saved searches to filter your results more quickly
Sign up
Commit 2205f50
test(qa): satisfy history reply lint
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -379,7 +379,7 @@ async function waitForAgentRun(
|
379 | 379 | } |
380 | 380 | |
381 | 381 | function readLatestAssistantTextFromHistory(history: QaChatHistoryResponse | undefined) { |
382 | | -for (const message of [...(history?.messages ?? [])].reverse()) { |
| 382 | +for (const message of (history?.messages ?? []).toReversed()) { |
383 | 383 | if (!isRecord(message) || message.role !== "assistant") { |
384 | 384 | continue; |
385 | 385 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
0 commit comments