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

推荐订阅源

Vercel News
Vercel News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
有赞技术团队
有赞技术团队
罗磊的独立博客
博客园 - 叶小钗
Jina AI
Jina AI
博客园 - 司徒正美
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
量子位
MyScale Blog
MyScale Blog
V
Visual Studio Blog
博客园 - 聂微东
The Cloudflare Blog
Engineering at Meta
Engineering at Meta
小众软件
小众软件
宝玉的分享
宝玉的分享

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: repair bundled plugin shadow cleanup · openclaw/open...
steipete · 2026-05-04 · via Recent Commits to openclaw:main

@@ -5,6 +5,7 @@ const mocks = vi.hoisted(() => ({

55

installPluginFromNpmSpec: vi.fn(),

66

listChannelPluginCatalogEntries: vi.fn(),

77

listOfficialExternalPluginCatalogEntries: vi.fn(),

8+

loadInstalledPluginIndex: vi.fn(),

89

loadInstalledPluginIndexInstallRecords: vi.fn(),

910

loadPluginMetadataSnapshot: vi.fn(),

1011

getOfficialExternalPluginCatalogManifest: vi.fn(

@@ -33,6 +34,11 @@ vi.mock("../../../plugins/installed-plugin-index-records.js", () => ({

3334

mocks.writePersistedInstalledPluginIndexInstallRecords,

3435

}));

353637+

vi.mock("../../../plugins/installed-plugin-index.js", async (importOriginal) => ({

38+

...(await importOriginal<typeof import("../../../plugins/installed-plugin-index.js")>()),

39+

loadInstalledPluginIndex: mocks.loadInstalledPluginIndex,

40+

}));

41+3642

vi.mock("../../../plugins/install-paths.js", () => ({

3743

resolveDefaultPluginExtensionsDir: mocks.resolveDefaultPluginExtensionsDir,

3844

}));

@@ -76,6 +82,11 @@ describe("repairMissingConfiguredPluginInstalls", () => {

7682

plugins: [],

7783

diagnostics: [],

7884

});

85+

mocks.loadInstalledPluginIndex.mockReturnValue({

86+

plugins: [],

87+

diagnostics: [],

88+

installRecords: {},

89+

});

7990

mocks.loadInstalledPluginIndexInstallRecords.mockResolvedValue({});

8091

mocks.listChannelPluginCatalogEntries.mockReturnValue([]);

8192

mocks.listOfficialExternalPluginCatalogEntries.mockReturnValue([]);

@@ -663,6 +674,75 @@ describe("repairMissingConfiguredPluginInstalls", () => {

663674

});

664675

});

665676677+

it("uses current bundled discovery to remove records before stale snapshots can reinstall official plugins", async () => {

678+

const records = {

679+

"google-meet": {

680+

source: "npm",

681+

spec: "@openclaw/google-meet",

682+

resolvedName: "@openclaw/google-meet",

683+

installPath: "/missing/google-meet",

684+

},

685+

};

686+

mocks.loadInstalledPluginIndexInstallRecords.mockResolvedValue(records);

687+

mocks.loadPluginMetadataSnapshot.mockReturnValue({

688+

plugins: [

689+

{

690+

id: "google-meet",

691+

origin: "npm",

692+

packageName: "@openclaw/google-meet",

693+

},

694+

],

695+

diagnostics: [],

696+

});

697+

mocks.loadInstalledPluginIndex.mockReturnValue({

698+

plugins: [

699+

{

700+

pluginId: "google-meet",

701+

origin: "bundled",

702+

packageName: "@openclaw/google-meet",

703+

},

704+

],

705+

diagnostics: [],

706+

installRecords: {},

707+

});

708+

mocks.listOfficialExternalPluginCatalogEntries.mockReturnValue([

709+

{

710+

id: "google-meet",

711+

label: "Google Meet",

712+

install: { npmSpec: "@openclaw/google-meet" },

713+

openclaw: {

714+

id: "google-meet",

715+

install: { npmSpec: "@openclaw/google-meet" },

716+

},

717+

},

718+

]);

719+720+

const { repairMissingConfiguredPluginInstalls } =

721+

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

722+

const result = await repairMissingConfiguredPluginInstalls({

723+

cfg: {

724+

plugins: {

725+

entries: {

726+

"google-meet": { enabled: true },

727+

},

728+

},

729+

},

730+

env: {},

731+

});

732+733+

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

734+

expect(mocks.writePersistedInstalledPluginIndexInstallRecords).toHaveBeenCalledWith(

735+

{},

736+

{

737+

env: {},

738+

},

739+

);

740+

expect(result).toEqual({

741+

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

742+

warnings: [],

743+

});

744+

});

745+666746

it.each([

667747

[

668748

"npm",