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

推荐订阅源

WordPress大学
WordPress大学
Jina AI
Jina AI
小众软件
小众软件
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
D
DataBreaches.Net
腾讯CDC
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
U
Unit 42
博客园 - 司徒正美
博客园 - 聂微东

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: keep root help plugin descriptor loading quiet · ope...
steipete · 2026-05-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -319,6 +319,23 @@ describe("registerPluginCliCommands", () => {

319319

});

320320

});

321321
322+

it("keeps root-help descriptor load failures quiet", async () => {

323+

const stderrWrite = vi

324+

.spyOn(process.stderr, "write")

325+

.mockImplementation((() => true) as unknown as typeof process.stderr.write);

326+

mocks.loadOpenClawPluginCliRegistry.mockImplementationOnce((options: { logger?: unknown }) => {

327+

const logger = options.logger as { error?: (message: string) => void };

328+

logger.error?.("[plugins] stale failed to load from /tmp/stale: boom");

329+

throw new Error("boom");

330+

});

331+
332+

await expect(

333+

getPluginCliCommandDescriptors({ plugins: { entries: { stale: {} } } } as OpenClawConfig),

334+

).resolves.toEqual([]);

335+
336+

expect(stderrWrite).not.toHaveBeenCalled();

337+

});

338+
322339

it("keeps runtime CLI command registration on the full plugin loader for legacy channel plugins", async () => {

323340

const { rawConfig, autoEnabledConfig } = createAutoEnabledCliFixture();

324341

mocks.applyPluginAutoEnable.mockReturnValue({

Original file line numberDiff line numberDiff line change

@@ -8,7 +8,7 @@ import {

88

type PluginCliLoaderOptions,

99

} from "./cli-registry-loader.js";

1010

import { registerPluginCliCommandGroups } from "./register-plugin-cli-command-groups.js";

11-

import type { OpenClawPluginCliCommandDescriptor } from "./types.js";

11+

import type { OpenClawPluginCliCommandDescriptor, PluginLogger } from "./types.js";

1212
1313

type PluginCliRegistrationMode = "eager" | "lazy";

1414

@@ -35,6 +35,13 @@ const logger = createPluginCliLogger();

3535

const loaderOptionIds = new WeakMap<object, number>();

3636

let nextLoaderOptionId = 1;

3737
38+

const quietDescriptorLogger = {

39+

info: () => {},

40+

warn: () => {},

41+

error: () => {},

42+

debug: () => {},

43+

} satisfies PluginLogger;

44+
3845

function stableJsonKey(value: unknown): string {

3946

if (value === undefined) {

4047

return "undefined";

@@ -81,7 +88,7 @@ export async function getPluginCliCommandDescriptors(

8188

env?: NodeJS.ProcessEnv,

8289

loaderOptions?: PluginCliLoaderOptions,

8390

): Promise<OpenClawPluginCliCommandDescriptor[]> {

84-

return loadPluginCliDescriptors({ cfg, env, loaderOptions });

91+

return loadPluginCliDescriptors({ cfg, env, loaderOptions, logger: quietDescriptorLogger });

8592

}

8693
8794

export async function registerPluginCliCommands(