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

推荐订阅源

T
Tailwind CSS Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
L
LangChain Blog
博客园_首页
Recent Announcements
Recent Announcements
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
博客园 - 叶小钗
博客园 - 【当耐特】
The Cloudflare Blog
J
Java Code Geeks
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans

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
refactor(doctor): share tool normalization findings · ope...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

@@ -591,29 +591,21 @@ function collectToolSchemaFindings(params: {

591591

);

592592

}

593593594-

function collectBundleMcpRuntimeToolSchemaFindings(params: {

595-

bundleRuntime: BundleMcpToolRuntime;

596-

cfg: OpenClawConfig;

594+

function collectNormalizedToolSchemaFindings(params: {

597595

agentId: string;

596+

tools: AnyAgentTool[];

597+

cfg: OpenClawConfig;

598598

workspaceDir: string;

599599

modelRef: { provider: string; model: string };

600600

model: ProviderRuntimeModel;

601+

normalizationFailureFinding: (error: unknown) => HealthFinding;

601602

}): readonly HealthFinding[] {

602-

const activeBundleTools = applyFinalEffectiveToolPolicy({

603-

bundledTools: params.bundleRuntime.tools,

604-

config: params.cfg,

605-

agentId: params.agentId,

606-

modelProvider: params.modelRef.provider,

607-

modelId: params.modelRef.model,

608-

warn: () => {},

609-

toolPolicyAuditLogLevel: "debug",

610-

});

611603

const preNormalizationFindings: HealthFinding[] = [];

612604613605

let normalizedTools: AnyAgentTool[];

614606

try {

615607

normalizedTools = normalizeAgentRuntimeTools({

616-

tools: activeBundleTools,

608+

tools: params.tools,

617609

provider: params.modelRef.provider,

618610

config: params.cfg,

619611

workspaceDir: params.workspaceDir,

@@ -634,7 +626,7 @@ function collectBundleMcpRuntimeToolSchemaFindings(params: {

634626

},

635627

});

636628

} catch (error) {

637-

return [...preNormalizationFindings, bundleMcpRuntimeNormalizationFailureFinding(error)];

629+

return [...preNormalizationFindings, params.normalizationFailureFinding(error)];

638630

}

639631640632

return [

@@ -646,6 +638,34 @@ function collectBundleMcpRuntimeToolSchemaFindings(params: {

646638

];

647639

}

648640641+

function collectBundleMcpRuntimeToolSchemaFindings(params: {

642+

bundleRuntime: BundleMcpToolRuntime;

643+

cfg: OpenClawConfig;

644+

agentId: string;

645+

workspaceDir: string;

646+

modelRef: { provider: string; model: string };

647+

model: ProviderRuntimeModel;

648+

}): readonly HealthFinding[] {

649+

const activeBundleTools = applyFinalEffectiveToolPolicy({

650+

bundledTools: params.bundleRuntime.tools,

651+

config: params.cfg,

652+

agentId: params.agentId,

653+

modelProvider: params.modelRef.provider,

654+

modelId: params.modelRef.model,

655+

warn: () => {},

656+

toolPolicyAuditLogLevel: "debug",

657+

});

658+

return collectNormalizedToolSchemaFindings({

659+

agentId: params.agentId,

660+

tools: activeBundleTools,

661+

cfg: params.cfg,

662+

workspaceDir: params.workspaceDir,

663+

modelRef: params.modelRef,

664+

model: params.model,

665+

normalizationFailureFinding: bundleMcpRuntimeNormalizationFailureFinding,

666+

});

667+

}

668+649669

function agentRuntimeToolLoadFailureFinding(params: {

650670

agentId: string;

651671

error: unknown;

@@ -702,45 +722,19 @@ function collectAgentRuntimeToolSchemaFindings(params: {

702722

return [agentRuntimeToolLoadFailureFinding({ agentId: params.agentId, error })];

703723

}

704724705-

const preNormalizationFindings: HealthFinding[] = [];

706-707-

let normalizedTools: AnyAgentTool[];

708-

try {

709-

normalizedTools = normalizeAgentRuntimeTools({

710-

tools,

711-

provider: params.modelRef.provider,

712-

config: params.cfg,

713-

workspaceDir: params.workspaceDir,

714-

env: process.env,

715-

modelId: params.modelRef.model,

716-

modelApi: params.model.api,

717-

model: params.model,

718-

onPreNormalizationSchemaDiagnostics: (diagnostics, sourceTools) => {

719-

preNormalizationFindings.push(

720-

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

721-

toolSchemaDiagnosticToFinding({

722-

agentId: params.agentId,

723-

tools: sourceTools,

724-

diagnostic,

725-

}),

726-

),

727-

);

728-

},

729-

});

730-

} catch (error) {

731-

return [

732-

...preNormalizationFindings,

733-

agentRuntimeToolNormalizationFailureFinding({ agentId: params.agentId, error }),

734-

];

735-

}

736-737-

return [

738-

...preNormalizationFindings,

739-

...collectToolSchemaFindings({

740-

agentId: params.agentId,

741-

tools: normalizedTools,

742-

}),

743-

];

725+

return collectNormalizedToolSchemaFindings({

726+

agentId: params.agentId,

727+

tools,

728+

cfg: params.cfg,

729+

workspaceDir: params.workspaceDir,

730+

modelRef: params.modelRef,

731+

model: params.model,

732+

normalizationFailureFinding: (error) =>

733+

agentRuntimeToolNormalizationFailureFinding({

734+

agentId: params.agentId,

735+

error,

736+

}),

737+

});

744738

}

745739746740

function bundleMcpRuntimeNormalizationFailureFinding(error: unknown): HealthFinding {