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

推荐订阅源

云风的 BLOG
云风的 BLOG
有赞技术团队
有赞技术团队
Simon Willison's Weblog
Simon Willison's Weblog
人人都是产品经理
人人都是产品经理
L
LINUX DO - 最新话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
Jina AI
Jina AI
The Cloudflare Blog
P
Palo Alto Networks Blog
AWS News Blog
AWS News Blog
阮一峰的网络日志
阮一峰的网络日志
C
Cybersecurity and Infrastructure Security Agency CISA
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
G
GRAHAM CLULEY
Project Zero
Project Zero
博客园_首页
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tor Project blog
S
Securelist
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
IT之家
IT之家
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Last Watchdog
The Last Watchdog
T
Tenable Blog
宝玉的分享
宝玉的分享
S
Secure Thoughts
P
Privacy & Cybersecurity Law Blog
量子位
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Security Archives - TechRepublic
Security Archives - TechRepublic

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(gateway): quarantine unsupported effective tool schemas · openclaw/openclaw@21d9609
vincentkoc · 2026-05-28 · via Recent Commits to openclaw:main
11

import type { OpenClawConfig } from "../config/config.js";

22

import { extractModelCompat } from "../plugins/provider-model-compat.js";

3+

import type { ProviderRuntimeModel } from "../plugins/provider-runtime-model.types.js";

4+

import { normalizeProviderTransportWithPlugin } from "../plugins/provider-runtime.js";

35

import { getActivePluginRegistry } from "../plugins/runtime.js";

46

import { buildPluginToolMetadataKey, getPluginToolMeta } from "../plugins/tools.js";

57

import {

@@ -10,11 +12,18 @@ import { resolveAgentDir, resolveAgentWorkspaceDir, resolveSessionAgentId } from

1012

import { createOpenClawCodingTools } from "./agent-tools.js";

1113

import { resolveEffectiveToolPolicy } from "./agent-tools.policy.js";

1214

import { getChannelAgentToolMeta } from "./channel-tools.js";

15+

import { resolveModel } from "./embedded-agent-runner/model.js";

16+

import { resolveBundledStaticCatalogModel } from "./embedded-agent-runner/model.static-catalog.js";

1317

import { normalizeStaticProviderModelId } from "./model-ref-shared.js";

1418

import { findNormalizedProviderValue, normalizeProviderId } from "./provider-id.js";

19+

import { normalizeAgentRuntimeTools } from "./runtime-plan/tools.js";

1520

import { summarizeToolDescriptionText } from "./tool-description-summary.js";

1621

import { resolveToolDisplay } from "./tool-display.js";

1722

import { normalizeToolName } from "./tool-policy.js";

23+

import {

24+

filterRuntimeCompatibleTools,

25+

type RuntimeToolSchemaDiagnostic,

26+

} from "./tool-schema-projection.js";

1827

import type {

1928

EffectiveToolInventoryNotice,

2029

EffectiveToolInventoryEntry,

@@ -47,16 +56,22 @@ function summarizeToolDescription(tool: AnyAgentTool): string {

4756

});

4857

}

495850-

function resolveEffectiveToolSource(tool: AnyAgentTool): {

59+

function resolveEffectiveToolSource(

60+

tool: AnyAgentTool,

61+

fallbackTool?: AnyAgentTool,

62+

): {

5163

source: EffectiveToolSource;

5264

pluginId?: string;

5365

channelId?: string;

5466

} {

55-

const pluginMeta = getPluginToolMeta(tool);

67+

const pluginMeta =

68+

getPluginToolMeta(tool) ?? (fallbackTool ? getPluginToolMeta(fallbackTool) : undefined);

5669

if (pluginMeta) {

5770

return { source: "plugin", pluginId: pluginMeta.pluginId };

5871

}

59-

const channelMeta = getChannelAgentToolMeta(tool as never);

72+

const channelMeta =

73+

getChannelAgentToolMeta(tool as never) ??

74+

(fallbackTool ? getChannelAgentToolMeta(fallbackTool as never) : undefined);

6075

if (channelMeta) {

6176

return { source: "channel", channelId: channelMeta.channelId };

6277

}

@@ -150,6 +165,41 @@ function buildToolInventoryNotices(params: {

150165

return undefined;

151166

}

152167168+

function buildUnsupportedToolSchemaNotice(params: {

169+

diagnostic: RuntimeToolSchemaDiagnostic;

170+

tool: AnyAgentTool | undefined;

171+

fallbackTool: AnyAgentTool | undefined;

172+

}): EffectiveToolInventoryNotice {

173+

const source = params.tool

174+

? resolveEffectiveToolSource(params.tool, params.fallbackTool)

175+

: { source: "core" as const };

176+

const owner =

177+

source.source === "plugin" && source.pluginId

178+

? ` from plugin "${source.pluginId}"`

179+

: source.source === "channel" && source.channelId

180+

? ` from channel "${source.channelId}"`

181+

: "";

182+

return {

183+

id: `unsupported-tool-schema:${params.diagnostic.toolName}`,

184+

severity: "warning",

185+

message: `Tool "${params.diagnostic.toolName}"${owner} has an unsupported runtime input schema (${params.diagnostic.violations.join(", ")}) and was quarantined before model projection. Fix or disable the owner, or remove the tool from active allowlists.`,

186+

};

187+

}

188+189+

function buildUnsupportedToolSchemaNotices(params: {

190+

diagnostics: readonly RuntimeToolSchemaDiagnostic[];

191+

tools: readonly AnyAgentTool[];

192+

rawToolsByName: ReadonlyMap<string, AnyAgentTool>;

193+

}): EffectiveToolInventoryNotice[] {

194+

return params.diagnostics.map((diagnostic) =>

195+

buildUnsupportedToolSchemaNotice({

196+

diagnostic,

197+

tool: params.tools[diagnostic.toolIndex],

198+

fallbackTool: params.rawToolsByName.get(diagnostic.toolName),

199+

}),

200+

);

201+

}

202+153203

function disambiguateLabels(entries: EffectiveToolInventoryEntry[]): EffectiveToolInventoryEntry[] {

154204

const counts = new Map<string, number>();

155205

for (const entry of entries) {

@@ -164,6 +214,151 @@ function disambiguateLabels(entries: EffectiveToolInventoryEntry[]): EffectiveTo

164214

});

165215

}

166216217+

function applyProviderTransportNormalization(params: {

218+

cfg: OpenClawConfig;

219+

provider: string;

220+

workspaceDir?: string;

221+

runtimeModel: ProviderRuntimeModel;

222+

}): ProviderRuntimeModel {

223+

const normalized = normalizeProviderTransportWithPlugin({

224+

provider: params.provider,

225+

config: params.cfg,

226+

workspaceDir: params.workspaceDir,

227+

context: {

228+

config: params.cfg,

229+

workspaceDir: params.workspaceDir,

230+

provider: params.provider,

231+

api: params.runtimeModel.api,

232+

baseUrl: params.runtimeModel.baseUrl,

233+

},

234+

});

235+

if (!normalized) {

236+

return params.runtimeModel;

237+

}

238+

return {

239+

...params.runtimeModel,

240+

api: normalized.api ?? params.runtimeModel.api,

241+

baseUrl: normalized.baseUrl ?? params.runtimeModel.baseUrl,

242+

} as ProviderRuntimeModel;

243+

}

244+245+

function resolveConfiguredFallbackApi(

246+

providerConfig: { api?: string; baseUrl?: string } | undefined,

247+

): string {

248+

const explicitApi = normalizeOptionalString(providerConfig?.api);

249+

if (explicitApi) {

250+

return explicitApi;

251+

}

252+

return normalizeOptionalString(providerConfig?.baseUrl)

253+

? "openai-completions"

254+

: "openai-responses";

255+

}

256+257+

function resolveDynamicRuntimeModelContext(params: {

258+

cfg: OpenClawConfig;

259+

agentDir?: string;

260+

workspaceDir?: string;

261+

provider: string;

262+

modelId: string;

263+

}): { modelApi?: string; runtimeModel?: ProviderRuntimeModel } {

264+

const runtimeModel = resolveModel(params.provider, params.modelId, params.agentDir, params.cfg, {

265+

workspaceDir: params.workspaceDir,

266+

}).model as ProviderRuntimeModel | undefined;

267+

if (!runtimeModel) {

268+

return {};

269+

}

270+

return {

271+

modelApi: runtimeModel.api,

272+

runtimeModel,

273+

};

274+

}

275+276+

export function resolveEffectiveToolInventoryRuntimeModelContext(params: {

277+

cfg: OpenClawConfig;

278+

agentId?: string;

279+

agentDir?: string;

280+

workspaceDir?: string;

281+

modelProvider?: string;

282+

modelId?: string;

283+

}): { modelApi?: string; runtimeModel?: ProviderRuntimeModel } {

284+

const provider = normalizeProviderId(params.modelProvider ?? "");

285+

const modelId = params.modelId?.trim() ?? "";

286+

if (!provider || !modelId) {

287+

return {};

288+

}

289+

const agentId = params.agentId?.trim() || resolveSessionAgentId({ config: params.cfg });

290+

const workspaceDir = params.workspaceDir ?? resolveAgentWorkspaceDir(params.cfg, agentId);

291+

const providerConfig = findNormalizedProviderValue(params.cfg.models?.providers, provider);

292+

const configuredModels = Array.isArray(providerConfig?.models) ? providerConfig.models : [];

293+

const normalizedModelId = normalizeStaticProviderModelId(provider, modelId);

294+

const normalizedModelKey = normalizeLowercaseStringOrEmpty(normalizedModelId);

295+

const providerPrefixedModelKey = normalizeLowercaseStringOrEmpty(

296+

`${provider}/${normalizedModelId}`,

297+

);

298+

const configuredModel = configuredModels.find((model) => {

299+

const id = normalizeStaticProviderModelId(provider, model.id);

300+

const key = normalizeLowercaseStringOrEmpty(id);

301+

return key === normalizedModelKey || key === providerPrefixedModelKey;

302+

});

303+

const bundledStaticModel = resolveBundledStaticCatalogModel({

304+

provider,

305+

modelId,

306+

cfg: params.cfg,

307+

workspaceDir,

308+

}) as ProviderRuntimeModel | undefined;

309+

if (configuredModel) {

310+

const configuredApi =

311+

normalizeOptionalString(configuredModel.api) ??

312+

normalizeOptionalString(providerConfig?.api) ??

313+

normalizeOptionalString(bundledStaticModel?.api) ??

314+

resolveConfiguredFallbackApi(providerConfig);

315+

const runtimeModel = applyProviderTransportNormalization({

316+

cfg: params.cfg,

317+

provider,

318+

workspaceDir,

319+

runtimeModel: {

320+

...bundledStaticModel,

321+

...configuredModel,

322+

id: configuredModel.id,

323+

name: configuredModel.name ?? bundledStaticModel?.name ?? configuredModel.id,

324+

provider,

325+

api: configuredApi,

326+

baseUrl:

327+

normalizeOptionalString(configuredModel.baseUrl) ??

328+

normalizeOptionalString(providerConfig?.baseUrl) ??

329+

normalizeOptionalString(bundledStaticModel?.baseUrl),

330+

} as ProviderRuntimeModel,

331+

});

332+

return {

333+

modelApi: runtimeModel.api,

334+

runtimeModel,

335+

};

336+

}

337+

if (!bundledStaticModel) {

338+

return resolveDynamicRuntimeModelContext({

339+

cfg: params.cfg,

340+

agentDir: params.agentDir,

341+

workspaceDir,

342+

provider,

343+

modelId,

344+

});

345+

}

346+

const runtimeModel = applyProviderTransportNormalization({

347+

cfg: params.cfg,

348+

provider,

349+

workspaceDir,

350+

runtimeModel: {

351+

...bundledStaticModel,

352+

api: normalizeOptionalString(providerConfig?.api) ?? bundledStaticModel.api,

353+

baseUrl: normalizeOptionalString(providerConfig?.baseUrl) ?? bundledStaticModel.baseUrl,

354+

} as ProviderRuntimeModel,

355+

});

356+

return {

357+

modelApi: runtimeModel.api,

358+

runtimeModel,

359+

};

360+

}

361+167362

function resolveEffectiveModelCompat(params: {

168363

cfg: OpenClawConfig;

169364

modelProvider?: string;

@@ -200,6 +395,20 @@ export function resolveEffectiveToolInventory(

200395

resolveSessionAgentId({ sessionKey: params.sessionKey, config: params.cfg });

201396

const workspaceDir = params.workspaceDir ?? resolveAgentWorkspaceDir(params.cfg, agentId);

202397

const agentDir = params.agentDir ?? resolveAgentDir(params.cfg, agentId);

398+

const runtimeModelContext =

399+

params.modelApi || params.runtimeModel

400+

? {

401+

modelApi: params.modelApi ?? params.runtimeModel?.api,

402+

runtimeModel: params.runtimeModel,

403+

}

404+

: resolveEffectiveToolInventoryRuntimeModelContext({

405+

cfg: params.cfg,

406+

agentId,

407+

agentDir,

408+

workspaceDir,

409+

modelProvider: params.modelProvider,

410+

modelId: params.modelId,

411+

});

203412

const modelCompat = resolveEffectiveModelCompat({

204413

cfg: params.cfg,

205414

modelProvider: params.modelProvider,

@@ -214,6 +423,7 @@ export function resolveEffectiveToolInventory(

214423

config: params.cfg,

215424

modelProvider: params.modelProvider,

216425

modelId: params.modelId,

426+

modelApi: runtimeModelContext.modelApi,

217427

modelCompat,

218428

messageProvider: params.messageProvider,

219429

senderId: params.senderId,

@@ -233,6 +443,17 @@ export function resolveEffectiveToolInventory(

233443

requireExplicitMessageTarget: params.requireExplicitMessageTarget,

234444

disableMessageTool: params.disableMessageTool,

235445

});

446+

const rawToolsByName = new Map(effectiveTools.map((tool) => [tool.name, tool]));

447+

const normalizedEffectiveTools = normalizeAgentRuntimeTools({

448+

tools: effectiveTools,

449+

provider: params.modelProvider ?? "",

450+

config: params.cfg,

451+

workspaceDir,

452+

modelId: params.modelId,

453+

modelApi: runtimeModelContext.modelApi,

454+

model: runtimeModelContext.runtimeModel,

455+

});

456+

const toolSchemaProjection = filterRuntimeCompatibleTools(normalizedEffectiveTools);

236457

const effectivePolicy = resolveEffectiveToolPolicy({

237458

config: params.cfg,

238459

agentId,

@@ -251,9 +472,9 @@ export function resolveEffectiveToolInventory(

251472

);

252473253474

const entries = disambiguateLabels(

254-

effectiveTools

475+

toolSchemaProjection.tools

255476

.map((tool) => {

256-

const source = resolveEffectiveToolSource(tool);

477+

const source = resolveEffectiveToolSource(tool, rawToolsByName.get(tool.name));

257478

const metadata = source.pluginId

258479

? pluginToolMetadata.get(buildPluginToolMetadataKey(source.pluginId, tool.name))

259480

: undefined;

@@ -276,7 +497,14 @@ export function resolveEffectiveToolInventory(

276497

})

277498

.toSorted((a, b) => a.label.localeCompare(b.label)),

278499

);

279-

const notices = buildToolInventoryNotices({ cfg: params.cfg, profile, entries, effectivePolicy });

500+

const notices = [

501+

...buildUnsupportedToolSchemaNotices({

502+

diagnostics: toolSchemaProjection.diagnostics,

503+

tools: normalizedEffectiveTools,

504+

rawToolsByName,

505+

}),

506+

...(buildToolInventoryNotices({ cfg: params.cfg, profile, entries, effectivePolicy }) ?? []),

507+

];

280508

const groupsBySource = new Map<EffectiveToolSource, EffectiveToolInventoryEntry[]>();

281509

for (const entry of entries) {

282510

const tools = groupsBySource.get(entry.source) ?? [];

@@ -299,5 +527,5 @@ export function resolveEffectiveToolInventory(

299527

})

300528

.filter((group): group is EffectiveToolInventoryGroup => group !== null);

301529302-

return { agentId, profile, groups, ...(notices ? { notices } : {}) };

530+

return { agentId, profile, groups, ...(notices.length > 0 ? { notices } : {}) };

303531

}