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

推荐订阅源

U
Unit 42
Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
I
InfoQ
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
量子位
博客园 - 叶小钗
月光博客
月光博客
IT之家
IT之家
G
Google Developers Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享

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: quiet installed plugin override warnings · openclaw/...
steipete · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -30,6 +30,7 @@ Docs: https://docs.openclaw.ai

3030

- Plugins/discovery: follow symlinked plugin directories in global and workspace plugin roots while keeping broken links ignored and existing package safety checks in place. Fixes #36754; carries forward #72695 and #63206. Thanks @Quackstro, @ming1523, and @xsfX20.

3131

- Plugins/install: allow exact package-manager peer links back to the trusted OpenClaw host package during install security scans while continuing to block spoofed or nested escaping `node_modules` symlinks. Carries forward #70819. Thanks @fgabelmannjr.

3232

- Plugins/install: resolve plugin install destinations from the active profile state dir across CLI, ClawHub, marketplace, local path, and channel setup installs, so `openclaw --profile <name> plugins install ...` no longer writes into the default profile. Fixes #69960; carries forward #69971. Thanks @FrancisLyman and @Sanjays2402.

33+

- Plugins/registry: suppress duplicate-plugin startup warnings when a tracked npm-installed plugin intentionally overrides the bundled plugin with the same id. Carries forward #48673. Thanks @abdushsk.

3334

- Plugins/startup: reuse canonical realpath lookups throughout each plugin discovery pass, including package and manifest boundary checks, so Windows npm-global startups no longer repeat expensive path resolution for the same plugin roots. Fixes #65733. Thanks @welfo-beo.

3435

- Reply/link understanding: keep media and link preprocessing on stable runtime entrypoints and continue with raw message content if optional enrichment fails, so URL-bearing messages are no longer dropped after stale runtime chunk upgrades. Fixes #68466. Thanks @songshikang0111.

3536

- Discord: persist routed model-picker overrides when the hidden `/model` dispatch succeeds but the bound thread session store is still stale, including LM Studio suffixed model ids. Carries forward #61473. Thanks @Nanako0129.

Original file line numberDiff line numberDiff line change

@@ -370,7 +370,7 @@ describe("loadPluginManifestRegistry", () => {

370370

expect(warning?.message).toContain(path.join(configDir, "index.ts"));

371371

});

372372
373-

it("reports explicit installed globals as the effective duplicate winner", () => {

373+

it("suppresses duplicate warnings for explicit installed globals overriding bundled plugins", () => {

374374

const bundledDir = makeTempDir();

375375

const globalDir = makeTempDir();

376376

const manifest = { id: "zalouser", configSchema: { type: "object" } };

@@ -399,11 +399,41 @@ describe("loadPluginManifestRegistry", () => {

399399

],

400400

});

401401
402-

expect(

403-

registry.diagnostics.some((diag) =>

404-

diag.message.includes("bundled plugin will be overridden by global plugin"),

405-

),

406-

).toBe(true);

402+

expect(countDuplicateWarnings(registry)).toBe(0);

403+

expect(registry.plugins).toHaveLength(1);

404+

expect(registry.plugins[0]?.origin).toBe("global");

405+

});

406+
407+

it("suppresses duplicate warnings when the installed global is discovered before bundled", () => {

408+

const bundledDir = makeTempDir();

409+

const globalDir = makeTempDir();

410+

const manifest = { id: "zalouser", configSchema: { type: "object" } };

411+

writeManifest(bundledDir, manifest);

412+

writeManifest(globalDir, manifest);

413+
414+

const registry = loadPluginManifestRegistry({

415+

cache: false,

416+

installRecords: {

417+

zalouser: {

418+

source: "npm",

419+

installPath: globalDir,

420+

},

421+

},

422+

candidates: [

423+

createPluginCandidate({

424+

idHint: "zalouser",

425+

rootDir: globalDir,

426+

origin: "global",

427+

}),

428+

createPluginCandidate({

429+

idHint: "zalouser",

430+

rootDir: bundledDir,

431+

origin: "bundled",

432+

}),

433+

],

434+

});

435+
436+

expect(countDuplicateWarnings(registry)).toBe(0);

407437

expect(registry.plugins).toHaveLength(1);

408438

expect(registry.plugins[0]?.origin).toBe("global");

409439

});

Original file line numberDiff line numberDiff line change

@@ -558,6 +558,34 @@ function resolveDuplicatePrecedenceRank(params: {

558558

return 4;

559559

}

560560
561+

function isIntentionalInstalledBundledDuplicate(params: {

562+

pluginId: string;

563+

left: PluginCandidate;

564+

right: PluginCandidate;

565+

config?: OpenClawConfig;

566+

env: NodeJS.ProcessEnv;

567+

installRecords: Record<string, PluginInstallRecord>;

568+

}): boolean {

569+

const leftIsInstalled = matchesInstalledPluginRecord({

570+

pluginId: params.pluginId,

571+

candidate: params.left,

572+

config: params.config,

573+

env: params.env,

574+

installRecords: params.installRecords,

575+

});

576+

const rightIsInstalled = matchesInstalledPluginRecord({

577+

pluginId: params.pluginId,

578+

candidate: params.right,

579+

config: params.config,

580+

env: params.env,

581+

installRecords: params.installRecords,

582+

});

583+

return (

584+

(leftIsInstalled && params.right.origin === "bundled") ||

585+

(rightIsInstalled && params.left.origin === "bundled")

586+

);

587+

}

588+
561589

export function loadPluginManifestRegistry(

562590

params: {

563591

config?: OpenClawConfig;

@@ -740,6 +768,18 @@ export function loadPluginManifestRegistry(

740768

seenIds.set(manifest.id, { candidate, recordIndex: existing.recordIndex });

741769

pushManifestCompatibilityDiagnostics({ record, diagnostics });

742770

}

771+

if (

772+

isIntentionalInstalledBundledDuplicate({

773+

pluginId: manifest.id,

774+

left: candidate,

775+

right: existing.candidate,

776+

config,

777+

env,

778+

installRecords: getInstallRecords(),

779+

})

780+

) {

781+

continue;

782+

}

743783

diagnostics.push({

744784

level: "warn",

745785

pluginId: manifest.id,