refactor(agents): hide missing tool result text · openclaw/openclaw@53accb1
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,14 +2,16 @@
|
2 | 2 | import type { AgentMessage } from "openclaw/plugin-sdk/agent-core"; |
3 | 3 | import { describe, expect, it } from "vitest"; |
4 | 4 | import { |
5 | | -DEFAULT_MISSING_TOOL_RESULT_TEXT, |
6 | 5 | sanitizeToolCallInputs, |
7 | 6 | sanitizeToolUseResultPairing, |
8 | 7 | repairToolUseResultPairing, |
9 | 8 | stripToolResultDetails, |
10 | 9 | } from "./session-transcript-repair.js"; |
11 | 10 | import { castAgentMessage, castAgentMessages } from "./test-helpers/agent-message-fixtures.js"; |
12 | 11 | |
| 12 | +const DEFAULT_MISSING_TOOL_RESULT_TEXT = |
| 13 | +"[openclaw] missing tool result in session history; inserted synthetic error result for transcript repair."; |
| 14 | + |
13 | 15 | const TOOL_CALL_BLOCK_TYPES = new Set([ |
14 | 16 | "toolCall", |
15 | 17 | "toolUse", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。