fix: restore reply tool prep stage trace · openclaw/openclaw@63c9fbc
shakkernerd
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,6 @@ import { HEARTBEAT_RESPONSE_TOOL_NAME } from "../auto-reply/heartbeat-tool-respo
|
3 | 3 | import type { ModelCompatConfig } from "../config/types.models.js"; |
4 | 4 | import type { OpenClawConfig } from "../config/types.openclaw.js"; |
5 | 5 | import type { ToolLoopDetectionConfig } from "../config/types.tools.js"; |
6 | | -import type { AuthProfileStore } from "./auth-profiles/types.js"; |
7 | 6 | import type { DiagnosticTraceContext } from "../infra/diagnostic-trace-context.js"; |
8 | 7 | import { resolveMergedSafeBinProfileFixtures } from "../infra/exec-safe-bin-runtime-policy.js"; |
9 | 8 | import { logWarn } from "../logger.js"; |
@@ -15,6 +14,7 @@ import {
|
15 | 14 | import { resolveGatewayMessageChannel } from "../utils/message-channel.js"; |
16 | 15 | import { resolveAgentConfig } from "./agent-scope.js"; |
17 | 16 | import { createApplyPatchTool } from "./apply-patch.js"; |
| 17 | +import type { AuthProfileStore } from "./auth-profiles/types.js"; |
18 | 18 | import { describeExecTool, describeProcessTool } from "./bash-tools.descriptions.js"; |
19 | 19 | import type { ExecToolDefaults } from "./bash-tools.exec-types.js"; |
20 | 20 | import type { ProcessToolDefaults } from "./bash-tools.process.js"; |
@@ -464,6 +464,7 @@ export function createOpenClawCodingTools(options?: {
|
464 | 464 | sandboxToolPolicy, |
465 | 465 | subagentPolicy, |
466 | 466 | ]); |
| 467 | +options?.recordToolPrepStage?.("tool-policy"); |
467 | 468 | const execConfig = resolveExecConfig({ cfg: options?.config, agentId }); |
468 | 469 | const fsConfig = resolveToolFsConfig({ cfg: options?.config, agentId }); |
469 | 470 | const fsPolicy = createToolFsPolicy({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。