






















@@ -167,7 +167,7 @@ import {
167167createSystemPromptOverride,
168168} from "../system-prompt.js";
169169import { dropThinkingBlocks } from "../thinking.js";
170-import { collectAllowedToolNames, toSessionToolAllowlist } from "../tool-name-allowlist.js";
170+import { collectAllowedToolNames } from "../tool-name-allowlist.js";
171171import {
172172installContextEngineLoopHook,
173173installToolResultContextGuard,
@@ -1121,11 +1121,8 @@ export async function runEmbeddedAttempt(
11211121 : [];
1122112211231123const allCustomTools = [...customTools, ...clientToolDefs];
1124-// Pi's `tools` option is a name allowlist, not the tool definitions.
1125-// OpenClaw registers local tools through `customTools`, so passing the
1126-// same names here keeps custom tools executable instead of silently
1127-// filtering them out with an empty allowlist.
1128-const sessionToolAllowlist = toSessionToolAllowlist(allowedToolNames);
1124+// OpenClaw registers filtered tools through `customTools`; keep Pi's
1125+// built-in tool list empty so the SDK does not re-enable defaults.
1129112611301127({ session } = await createEmbeddedAgentSessionWithResourceLoader({
11311128createAgentSession: async (options) =>
@@ -1137,7 +1134,7 @@ export async function runEmbeddedAttempt(
11371134modelRegistry: params.modelRegistry,
11381135model: params.model,
11391136thinkingLevel: mapThinkingLevel(params.thinkLevel),
1140-tools: sessionToolAllowlist,
1137+tools: builtInTools,
11411138customTools: allCustomTools,
11421139 sessionManager,
11431140 settingsManager,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。