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

推荐订阅源

月光博客
月光博客
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
博客园 - Franky
V
V2EX
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Jina AI
Jina AI
博客园 - 叶小钗
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
D
Docker
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志

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 test: merge chat context notice checks · openclaw/openclaw@5c2f4af 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
Plugins: prefer scanDir override paths · openclaw/opencla...
2026-04-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -313,6 +313,33 @@ describe("bundled plugin metadata", () => {

313313

).toBe(path.join(pluginRoot, "index.ts"));

314314

});

315315
316+

it("prefers direct scan-dir overrides over nested dist artifacts within the same override root", () => {

317+

const pluginsDir = createGeneratedPluginTempRoot("openclaw-bundled-plugin-direct-priority-");

318+

const pluginRoot = path.join(pluginsDir, "alpha");

319+

const nestedDistPluginRoot = path.join(pluginsDir, "dist", "extensions", "alpha");

320+
321+

fs.mkdirSync(pluginRoot, { recursive: true });

322+

fs.mkdirSync(nestedDistPluginRoot, { recursive: true });

323+

fs.writeFileSync(path.join(pluginRoot, "index.js"), "export const source = true;\n", "utf8");

324+

fs.writeFileSync(

325+

path.join(nestedDistPluginRoot, "index.js"),

326+

"export const built = true;\n",

327+

"utf8",

328+

);

329+
330+

expect(

331+

resolveBundledPluginGeneratedPath(

332+

pluginsDir,

333+

{

334+

source: "./index.ts",

335+

built: "index.js",

336+

},

337+

"alpha",

338+

pluginsDir,

339+

),

340+

).toBe(path.join(pluginRoot, "index.js"));

341+

});

342+
316343

it("resolves bundled repo entry paths from dist before workspace source", () => {

317344

const tempRoot = createGeneratedPluginTempRoot("openclaw-bundled-plugin-repo-entry-");

318345

const pluginRoot = path.join(tempRoot, "extensions", "alpha");

Original file line numberDiff line numberDiff line change

@@ -248,9 +248,9 @@ function listBundledPluginEntryBaseDirs(params: {

248248

scanDir?: string;

249249

}): string[] {

250250

const baseDirs = [

251+

...(params.scanDir ? [path.resolve(params.scanDir, params.pluginDirName ?? "")] : []),

251252

path.resolve(params.rootDir, "dist", "extensions", params.pluginDirName ?? ""),

252253

path.resolve(params.rootDir, "extensions", params.pluginDirName ?? ""),

253-

...(params.scanDir ? [path.resolve(params.scanDir, params.pluginDirName ?? "")] : []),

254254

];

255255

return baseDirs.filter((entry, index, all) => all.indexOf(entry) === index);

256256

}