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

推荐订阅源

U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
The GitHub Blog
The GitHub Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
量子位
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
T
Tailwind CSS Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
G
Google Developers Blog
M
MIT News - Artificial intelligence

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(agents): resolve plugin skill metadata cold · opencla...
vincentkoc · 2026-04-26 · via Recent Commits to openclaw:main

@@ -6,11 +6,17 @@ import type { PluginManifestRegistry } from "../../plugins/manifest-registry.js"

66

import { createTrackedTempDirs } from "../../test-utils/tracked-temp-dirs.js";

7788

const hoisted = vi.hoisted(() => ({

9-

loadPluginManifestRegistry: vi.fn(),

9+

loadPluginManifestRegistryForInstalledIndex: vi.fn(),

10+

loadPluginRegistrySnapshot: vi.fn(() => ({ plugins: [] })),

1011

}));

111212-

vi.mock("../../plugins/manifest-registry.js", () => ({

13-

loadPluginManifestRegistry: (...args: unknown[]) => hoisted.loadPluginManifestRegistry(...args),

13+

vi.mock("../../plugins/manifest-registry-installed.js", () => ({

14+

loadPluginManifestRegistryForInstalledIndex: (...args: unknown[]) =>

15+

hoisted.loadPluginManifestRegistryForInstalledIndex(...args),

16+

}));

17+18+

vi.mock("../../plugins/plugin-registry.js", () => ({

19+

loadPluginRegistrySnapshot: (...args: unknown[]) => hoisted.loadPluginRegistrySnapshot(...args),

1420

}));

15211622

let resolvePluginSkillDirs: typeof import("./plugin-skills.js").resolvePluginSkillDirs;

@@ -85,7 +91,9 @@ async function setupAcpxAndHelperRegistry() {

8591

const helperRoot = await tempDirs.make("openclaw-helper-plugin-");

8692

await fs.mkdir(path.join(acpxRoot, "skills"), { recursive: true });

8793

await fs.mkdir(path.join(helperRoot, "skills"), { recursive: true });

88-

hoisted.loadPluginManifestRegistry.mockReturnValue(buildRegistry({ acpxRoot, helperRoot }));

94+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReturnValue(

95+

buildRegistry({ acpxRoot, helperRoot }),

96+

);

8997

return { workspaceDir, acpxRoot, helperRoot };

9098

}

9199

@@ -98,7 +106,8 @@ async function setupPluginOutsideSkills() {

98106

}

99107100108

afterEach(async () => {

101-

hoisted.loadPluginManifestRegistry.mockReset();

109+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReset();

110+

hoisted.loadPluginRegistrySnapshot.mockReset();

102111

await tempDirs.cleanup();

103112

});

104113

@@ -108,7 +117,13 @@ describe("resolvePluginSkillDirs", () => {

108117

});

109118110119

beforeEach(() => {

111-

hoisted.loadPluginManifestRegistry.mockReset();

120+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReset();

121+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReturnValue({

122+

diagnostics: [],

123+

plugins: [],

124+

});

125+

hoisted.loadPluginRegistrySnapshot.mockReset();

126+

hoisted.loadPluginRegistrySnapshot.mockReturnValue({ plugins: [] });

112127

});

113128114129

it.each([

@@ -152,7 +167,7 @@ describe("resolvePluginSkillDirs", () => {

152167

await fs.mkdir(outsideSkills, { recursive: true });

153168

const escapePath = path.relative(pluginRoot, outsideSkills);

154169155-

hoisted.loadPluginManifestRegistry.mockReturnValue(

170+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReturnValue(

156171

createSinglePluginRegistry({

157172

pluginRoot,

158173

skills: ["./skills", escapePath],

@@ -183,7 +198,7 @@ describe("resolvePluginSkillDirs", () => {

183198

process.platform === "win32" ? ("junction" as const) : ("dir" as const),

184199

);

185200186-

hoisted.loadPluginManifestRegistry.mockReturnValue(

201+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReturnValue(

187202

createSinglePluginRegistry({

188203

pluginRoot,

189204

skills: ["./skills-link"],

@@ -210,7 +225,7 @@ describe("resolvePluginSkillDirs", () => {

210225

await fs.mkdir(path.join(pluginRoot, "commands"), { recursive: true });

211226

await fs.mkdir(path.join(pluginRoot, "skills"), { recursive: true });

212227213-

hoisted.loadPluginManifestRegistry.mockReturnValue(

228+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReturnValue(

214229

createSinglePluginRegistry({

215230

pluginRoot,

216231

format: "bundle",

@@ -240,7 +255,7 @@ describe("resolvePluginSkillDirs", () => {

240255

const pluginRoot = await tempDirs.make("openclaw-legacy-plugin-");

241256

await fs.mkdir(path.join(pluginRoot, "skills"), { recursive: true });

242257243-

hoisted.loadPluginManifestRegistry.mockReturnValue(

258+

hoisted.loadPluginManifestRegistryForInstalledIndex.mockReturnValue(

244259

createSinglePluginRegistry({

245260

pluginRoot,

246261

skills: ["./skills"],