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

推荐订阅源

H
Help Net Security
爱范儿
爱范儿
V
Visual Studio Blog
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 三生石上(FineUI控件)
博客园 - Franky
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
罗磊的独立博客
L
LangChain Blog
Jina AI
Jina AI
IT之家
IT之家
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure 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(config): keep unrelated plugin diagnostics nonfatal (...
scoootscooob · 2026-05-18 · via Recent Commits to openclaw:main

@@ -50,6 +50,12 @@ const BLOCKED_PLUGIN_CANDIDATE_PREFIX = "blocked plugin candidate:";

50505151

type UnknownIssueRecord = Record<string, unknown>;

5252

type ConfigPathSegment = string | number;

53+

type ExplicitPluginReferences = {

54+

entries: Set<string>;

55+

allow: Set<string>;

56+

deny: Set<string>;

57+

slots: Map<string, string>;

58+

};

5359

type AllowedValuesCollection = {

5460

values: unknown[];

5561

incomplete: boolean;

@@ -567,6 +573,81 @@ function mapZodIssueToConfigIssue(issue: unknown): ConfigValidationIssue {

567573

};

568574

}

569575576+

function collectExplicitPluginReferences(raw: unknown): ExplicitPluginReferences {

577+

const references: ExplicitPluginReferences = {

578+

entries: new Set(),

579+

allow: new Set(),

580+

deny: new Set(),

581+

slots: new Map(),

582+

};

583+

if (!isRecord(raw) || !isRecord(raw.plugins)) {

584+

return references;

585+

}

586+

const { plugins } = raw;

587+

if (isRecord(plugins.entries)) {

588+

for (const pluginId of Object.keys(plugins.entries)) {

589+

const normalized = normalizePluginId(pluginId);

590+

if (normalized) {

591+

references.entries.add(normalized);

592+

}

593+

}

594+

}

595+

for (const [key, target] of [

596+

["allow", references.allow],

597+

["deny", references.deny],

598+

] as const) {

599+

const value = plugins[key];

600+

if (!Array.isArray(value)) {

601+

continue;

602+

}

603+

for (const entry of value) {

604+

if (typeof entry !== "string") {

605+

continue;

606+

}

607+

const normalized = normalizePluginId(entry);

608+

if (normalized) {

609+

target.add(normalized);

610+

}

611+

}

612+

}

613+

if (isRecord(plugins.slots)) {

614+

for (const [slotId, pluginId] of Object.entries(plugins.slots)) {

615+

if (typeof pluginId !== "string") {

616+

continue;

617+

}

618+

const normalized = normalizePluginId(pluginId);

619+

if (normalized && normalized !== "none") {

620+

references.slots.set(normalized, slotId);

621+

}

622+

}

623+

}

624+

return references;

625+

}

626+627+

function resolveExplicitPluginReferencePath(

628+

references: ExplicitPluginReferences,

629+

pluginId: string,

630+

): string | undefined {

631+

const normalized = normalizePluginId(pluginId);

632+

if (!normalized) {

633+

return undefined;

634+

}

635+

if (references.entries.has(normalized)) {

636+

return `plugins.entries.${normalized}`;

637+

}

638+

if (references.allow.has(normalized)) {

639+

return "plugins.allow";

640+

}

641+

if (references.deny.has(normalized)) {

642+

return "plugins.deny";

643+

}

644+

const slotId = references.slots.get(normalized);

645+

if (slotId) {

646+

return `plugins.slots.${slotId}`;

647+

}

648+

return undefined;

649+

}

650+570651

export const __testing = {

571652

mapZodIssueToConfigIssue,

572653

};

@@ -830,6 +911,7 @@ function validateConfigObjectWithPluginsBase(

830911

const warnings: ConfigValidationIssue[] = [];

831912

const hasExplicitPluginsConfig =

832913

isRecord(raw) && Object.prototype.hasOwnProperty.call(raw, "plugins");

914+

const explicitPluginReferences = collectExplicitPluginReferences(raw);

833915834916

const resolvePluginConfigIssuePath = (pluginId: string, errorPath: string): string => {

835917

const base = `plugins.entries.${pluginId}.config`;

@@ -863,13 +945,16 @@ function validateConfigObjectWithPluginsBase(

863945

}

864946

registryDiagnosticsPushed = true;

865947

for (const diag of registry.diagnostics) {

866-

let path = diag.pluginId ? `plugins.entries.${diag.pluginId}` : "plugins";

948+

const explicitPath = diag.pluginId

949+

? resolveExplicitPluginReferencePath(explicitPluginReferences, diag.pluginId)

950+

: undefined;

951+

let path = explicitPath ?? (diag.pluginId ? "plugins" : "plugins");

867952

if (!diag.pluginId && diag.message.includes("plugin path not found")) {

868953

path = "plugins.load.paths";

869954

}

870955

const pluginLabel = diag.pluginId ? `plugin ${diag.pluginId}` : "plugin";

871956

const message = `${pluginLabel}: ${diag.message}`;

872-

if (diag.level === "error") {

957+

if (diag.level === "error" && (explicitPath || !diag.pluginId)) {

873958

issues.push({ path, message });

874959

} else {

875960

warnings.push({ path, message });