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

推荐订阅源

WordPress大学
WordPress大学
博客园 - 司徒正美
小众软件
小众软件
H
Help Net Security
博客园 - 聂微东
宝玉的分享
宝玉的分享
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
U
Unit 42
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题
腾讯CDC
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News

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(doctor): drop stale bundled install records · opencla...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main

File tree

  • src/commands/doctor/shared

Original file line numberDiff line numberDiff line change

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

6666

- fix: harden backend message action gateway routing [AI]. (#76374) Thanks @pgondhi987.

6767

- Gate QQBot streaming command auth [AI]. (#76375) Thanks @pgondhi987.

6868

- Plugins/release: make the published npm runtime verifier reject blank `openclaw.runtimeExtensions` entries instead of treating them as absent and passing via inferred outputs. Thanks @vincentkoc.

69+

- Doctor/plugins: remove stale managed install records for bundled plugins even when the bundled plugin is not explicitly configured, so doctor cleanup cannot leave orphaned install metadata behind. Thanks @vincentkoc.

6970

- Web fetch: scope provider fallback cache entries by the selected fetch provider so config reloads cannot reuse another provider's cached fallback payload. Thanks @vincentkoc.

7071

- Web search: honor late-bound `tools.web.search.enabled: false` during tool execution so config reloads cannot leave an already-created `web_search` tool runnable. Thanks @vincentkoc.

7172

- Plugins/packages: reject inferred built runtime entries that exist but fail package-boundary checks instead of falling back to TypeScript source for installed packages. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -743,6 +743,52 @@ describe("repairMissingConfiguredPluginInstalls", () => {

743743

});

744744

});

745745
746+

it("removes stale bundled install records even when the plugin is not configured", async () => {

747+

const records = {

748+

"google-meet": {

749+

source: "npm",

750+

spec: "@openclaw/google-meet",

751+

resolvedName: "@openclaw/google-meet",

752+

installPath: "/missing/google-meet",

753+

},

754+

};

755+

mocks.loadInstalledPluginIndexInstallRecords.mockResolvedValue(records);

756+

mocks.loadPluginMetadataSnapshot.mockReturnValue({

757+

plugins: [],

758+

diagnostics: [],

759+

});

760+

mocks.loadInstalledPluginIndex.mockReturnValue({

761+

plugins: [

762+

{

763+

pluginId: "google-meet",

764+

origin: "bundled",

765+

packageName: "@openclaw/google-meet",

766+

},

767+

],

768+

diagnostics: [],

769+

installRecords: {},

770+

});

771+
772+

const { repairMissingConfiguredPluginInstalls } =

773+

await import("./missing-configured-plugin-install.js");

774+

const result = await repairMissingConfiguredPluginInstalls({

775+

cfg: {},

776+

env: {},

777+

});

778+
779+

expect(mocks.installPluginFromNpmSpec).not.toHaveBeenCalled();

780+

expect(mocks.writePersistedInstalledPluginIndexInstallRecords).toHaveBeenCalledWith(

781+

{},

782+

{

783+

env: {},

784+

},

785+

);

786+

expect(result).toEqual({

787+

changes: ['Removed stale managed install record for bundled plugin "google-meet".'],

788+

warnings: [],

789+

});

790+

});

791+
746792

it.each([

747793

[

748794

"npm",

Original file line numberDiff line numberDiff line change

@@ -646,11 +646,7 @@ async function repairMissingPluginInstalls(params: {

646646
647647

for (const [pluginId, record] of Object.entries(records)) {

648648

const bundled = bundledPluginsById.get(pluginId);

649-

if (

650-

!bundled ||

651-

!params.pluginIds.has(pluginId) ||

652-

!recordMatchesBundledPackage(record, bundled)

653-

) {

649+

if (!bundled || !recordMatchesBundledPackage(record, bundled)) {

654650

continue;

655651

}

656652

if (nextRecords === records) {