fix(agents): keep transcript repair tool names typed · openclaw/openclaw@42cddca
vincentkoc
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -506,7 +506,9 @@ export function repairToolUseResultPairing(
|
506 | 506 | const toolCallNamesById = new Map<string, string>(); |
507 | 507 | for (const toolCall of toolCalls) { |
508 | 508 | toolCallIds.add(toolCall.id); |
509 | | -toolCallNamesById.set(toolCall.id, toolCall.name); |
| 509 | +if (typeof toolCall.name === "string") { |
| 510 | +toolCallNamesById.set(toolCall.id, toolCall.name); |
| 511 | +} |
510 | 512 | } |
511 | 513 | |
512 | 514 | const spanResultsById = new Map<string, Extract<AgentMessage, { role: "toolResult" }>>(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。