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

推荐订阅源

V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
S
SegmentFault 最新的问题
D
Docker
博客园 - 司徒正美
雷峰网
雷峰网
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - Franky
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
MongoDB | Blog
MongoDB | Blog

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(agents): compact lean local tool catalogs · openclaw/...
vincentkoc · 2026-06-08 · via Recent Commits to openclaw:main

@@ -157,6 +157,7 @@ import { runAgentHarnessBeforeAgentFinalizeHook } from "../../harness/lifecycle-

157157

import { resolveHeartbeatPromptForSystemPrompt } from "../../heartbeat-system-prompt.js";

158158

import { resolveImageSanitizationLimits } from "../../image-sanitization.js";

159159

import {

160+

applyLocalModelLeanToolSearchDefaults,

160161

filterLocalModelLeanTools,

161162

isLocalModelLeanEnabled,

162163

resolveLocalModelLeanPreserveToolNames,

@@ -176,10 +177,6 @@ import {

176177

import type { AgentMessage } from "../../runtime/index.js";

177178

import { resolveSandboxContext } from "../../sandbox.js";

178179

import { resolveSandboxRuntimeStatus } from "../../sandbox/runtime-status.js";

179-

import {

180-

mapSandboxSkillEntriesForPrompt,

181-

resolveSandboxSkillRuntimeInputs,

182-

} from "../sandbox-skills.js";

183180

import { repairSessionFileIfNeeded } from "../../session-file-repair.js";

184181

import { guardSessionManager } from "../../session-tool-result-guard-wrapper.js";

185182

import { sanitizeToolUseResultPairing } from "../../session-transcript-repair.js";

@@ -266,6 +263,10 @@ import {

266263

updateActiveEmbeddedRunSnapshot,

267264

} from "../runs.js";

268265

import { buildEmbeddedSandboxInfo, resolveEmbeddedSandboxInfoExecPolicy } from "../sandbox-info.js";

266+

import {

267+

mapSandboxSkillEntriesForPrompt,

268+

resolveSandboxSkillRuntimeInputs,

269+

} from "../sandbox-skills.js";

269270

import { prewarmSessionFile, trackSessionManagerAccess } from "../session-manager-cache.js";

270271

import { prepareSessionManagerForRun } from "../session-manager-init.js";

271272

import {

@@ -1063,9 +1064,9 @@ export async function runEmbeddedAttempt(

10631064

config: params.config,

10641065

})

10651066

: applySkillEnvOverrides({

1066-

skills: skillEntries ?? [],

1067-

config: params.config,

1068-

});

1067+

skills: skillEntries ?? [],

1068+

config: params.config,

1069+

});

10691070

const promptSkillEntries = mapSandboxSkillEntriesForPrompt({

10701071

entries: shouldLoadSkillEntries ? skillEntries : undefined,

10711072

skillsWorkspaceDir: effectiveSkillsWorkspace,

@@ -1140,12 +1141,12 @@ export async function runEmbeddedAttempt(

11401141

});

11411142

};

11421143

const corePluginToolStages = createEmbeddedRunStageTracker();

1144+

const forceDirectMessageTool =

1145+

params.forceMessageTool === true || params.sourceReplyDeliveryMode === "message_tool_only";

11431146

const toolsAllowWithForcedRuntimeTools = mergeForcedEmbeddedAttemptToolsAllow(

11441147

params.toolsAllow,

11451148

{

1146-

forceMessageTool:

1147-

params.forceMessageTool === true ||

1148-

params.sourceReplyDeliveryMode === "message_tool_only",

1149+

forceMessageTool: forceDirectMessageTool,

11491150

},

11501151

);

11511152

const toolConstructionPlan = resolveEmbeddedAttemptToolConstructionPlan({

@@ -1155,6 +1156,13 @@ export async function runEmbeddedAttempt(

11551156

});

11561157

const toolsEnabled = supportsModelTools(params.model);

11571158

const codeModeConfig = resolveCodeModeConfig(params.config, sessionAgentId);

1159+

const toolSearchRuntimeConfig = forceDirectMessageTool

1160+

? params.config

1161+

: applyLocalModelLeanToolSearchDefaults({

1162+

config: params.config,

1163+

agentId: sessionAgentId,

1164+

sessionKey: sandboxSessionKey,

1165+

});

11581166

const codeModeControlsEnabledForRun =

11591167

toolsEnabled &&

11601168

params.disableTools !== true &&

@@ -1167,7 +1175,7 @@ export async function runEmbeddedAttempt(

11671175

!isRawModelRun &&

11681176

params.toolsAllow?.length !== 0 &&

11691177

!codeModeControlsEnabledForRun &&

1170-

resolveToolSearchConfig(params.config).enabled;

1178+

resolveToolSearchConfig(toolSearchRuntimeConfig).enabled;

11711179

const effectiveToolsAllow =

11721180

toolSearchControlsEnabledForRun && toolsAllowWithForcedRuntimeTools

11731181

? [

@@ -1242,7 +1250,7 @@ export async function runEmbeddedAttempt(

12421250

sandbox,

12431251

resolvedWorkspace,

12441252

}),

1245-

config: params.config,

1253+

config: toolSearchRuntimeConfig,

12461254

abortSignal: runAbortController.signal,

12471255

modelProvider: params.provider,

12481256

modelId: params.modelId,

@@ -1628,7 +1636,7 @@ export async function runEmbeddedAttempt(

16281636

})

16291637

: applyToolSearchCatalog({

16301638

tools: effectiveTools,

1631-

config: params.config,

1639+

config: toolSearchRuntimeConfig,

16321640

sessionId: params.sessionId,

16331641

sessionKey: sandboxSessionKey,

16341642

agentId: sessionAgentId,

@@ -2221,7 +2229,7 @@ export async function runEmbeddedAttempt(

22212229

{

22222230

agentId: sessionAgentId,

22232231

sessionKey: sandboxSessionKey,

2224-

config: params.config,

2232+

config: toolSearchRuntimeConfig,

22252233

sessionId: params.sessionId,

22262234

runId: params.runId,

22272235

loopDetection: clientToolLoopDetection,

@@ -2241,7 +2249,7 @@ export async function runEmbeddedAttempt(

22412249

})

22422250

: addClientToolsToToolSearchCatalog({

22432251

tools: clientToolDefs,

2244-

config: params.config,

2252+

config: toolSearchRuntimeConfig,

22452253

sessionId: params.sessionId,

22462254

sessionKey: sandboxSessionKey,

22472255

agentId: sessionAgentId,