惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
博客园_首页
J
Java Code Geeks
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
量子位
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
N
Netflix TechBlog - Medium
Hugging Face - Blog
Hugging Face - Blog
B
Blog
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: restore Pi embedded tool allowlist · openclaw/opencl...
jalehman · 2026-04-23 · via Recent Commits to openclaw:main

@@ -167,7 +167,12 @@ import {

167167

createSystemPromptOverride,

168168

} from "../system-prompt.js";

169169

import { dropThinkingBlocks } from "../thinking.js";

170-

import { collectAllowedToolNames } from "../tool-name-allowlist.js";

170+

import {

171+

collectAllowedToolNames,

172+

collectRegisteredToolNames,

173+

PI_RESERVED_TOOL_NAMES,

174+

toSessionToolAllowlist,

175+

} from "../tool-name-allowlist.js";

171176

import {

172177

installContextEngineLoopHook,

173178

installToolResultContextGuard,

@@ -1062,7 +1067,7 @@ export async function runEmbeddedAttempt(

10621067

// Get hook runner early so it's available when creating tools

10631068

const hookRunner = getGlobalHookRunner();

106410691065-

const { builtInTools, customTools } = splitSdkTools({

1070+

const { customTools } = splitSdkTools({

10661071

tools: effectiveTools,

10671072

sandboxEnabled: !!sandbox?.enabled,

10681073

});

@@ -1099,7 +1104,7 @@ export async function runEmbeddedAttempt(

10991104

);

11001105

const clientToolNameConflicts = findClientToolNameConflicts({

11011106

tools: clientTools ?? [],

1102-

existingToolNames: coreBuiltinToolNames,

1107+

existingToolNames: [...coreBuiltinToolNames, ...PI_RESERVED_TOOL_NAMES],

11031108

});

11041109

if (clientToolNameConflicts.length > 0) {

11051110

throw createClientToolNameConflictError(clientToolNameConflicts);

@@ -1121,8 +1126,14 @@ export async function runEmbeddedAttempt(

11211126

: [];

1122112711231128

const allCustomTools = [...customTools, ...clientToolDefs];

1124-

// OpenClaw registers filtered tools through `customTools`; keep Pi's

1125-

// built-in tool list empty so the SDK does not re-enable defaults.

1129+

// Pi 0.68.1 uses `tools` as a global allowlist across built-in and

1130+

// custom tools. Keep the built-in tool list empty, but still pass the

1131+

// exact registered custom-tool names so our OpenClaw-managed

1132+

// registrations remain active without widening the session boundary to

1133+

// raw client-provided names.

1134+

const sessionToolAllowlist = toSessionToolAllowlist(

1135+

collectRegisteredToolNames(allCustomTools),

1136+

);

1126113711271138

({ session } = await createEmbeddedAgentSessionWithResourceLoader({

11281139

createAgentSession: async (options) =>

@@ -1134,7 +1145,7 @@ export async function runEmbeddedAttempt(

11341145

modelRegistry: params.modelRegistry,

11351146

model: params.model,

11361147

thinkingLevel: mapThinkingLevel(params.thinkLevel),

1137-

tools: builtInTools,

1148+

tools: sessionToolAllowlist,

11381149

customTools: allCustomTools,

11391150

sessionManager,

11401151

settingsManager,

@@ -1315,10 +1326,9 @@ export async function runEmbeddedAttempt(

13151326

}

1316132713171328

const cacheObservabilityEnabled = Boolean(cacheTrace) || log.isEnabled("debug");

1318-

const promptCacheToolNames = collectPromptCacheToolNames([

1319-

...builtInTools,

1320-

...allCustomTools,

1321-

] as Array<{ name?: string }>);

1329+

const promptCacheToolNames = collectPromptCacheToolNames(

1330+

allCustomTools as Array<{ name?: string }>,

1331+

);

13221332

let promptCacheChangesForTurn: PromptCacheChange[] | null = null;

1323133313241334

if (cacheTrace) {