fix(agents): leave trusted media guard out of perf churn · openclaw/openclaw@f05f9f6
vincentkoc
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -249,12 +249,9 @@ const TRUSTED_TOOL_RESULT_MEDIA = new Set([
|
249 | 249 | "x_search", |
250 | 250 | "write", |
251 | 251 | ]); |
252 | | -const TRUSTED_BUNDLED_PLUGIN_MEDIA_TOOLS = new Set<string>(); |
253 | | -for (const entry of pluginRegistrationContractRegistry) { |
254 | | -for (const toolName of entry.toolNames) { |
255 | | -TRUSTED_BUNDLED_PLUGIN_MEDIA_TOOLS.add(toolName); |
256 | | -} |
257 | | -} |
| 252 | +const TRUSTED_BUNDLED_PLUGIN_MEDIA_TOOLS = new Set( |
| 253 | +pluginRegistrationContractRegistry.flatMap((entry) => entry.toolNames), |
| 254 | +); |
258 | 255 | const HTTP_URL_RE = /^https?:\/\//i; |
259 | 256 | |
260 | 257 | function readToolResultDetails(result: unknown): Record<string, unknown> | undefined { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。