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

推荐订阅源

博客园 - Franky
J
Java Code Geeks
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
L
LangChain Blog
WordPress大学
WordPress大学
A
About on SuperTechFans
Martin Fowler
Martin Fowler
月光博客
月光博客
Y
Y Combinator Blog
U
Unit 42
D
Docker
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

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(cli): avoid plugin allowlist hints for unknown comman...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -40,6 +40,16 @@ const losslessClawToolRegistry: PluginManifestCommandAliasRegistry = {

4040

],

4141

};

424243+

const browserCommandAliasRegistry: PluginManifestCommandAliasRegistry = {

44+

plugins: [

45+

{

46+

id: "browser",

47+

enabledByDefault: true,

48+

commandAliases: [{ name: "browser" }],

49+

},

50+

],

51+

};

52+4353

describe("isGatewayRunFastPathArgv", () => {

4454

it("matches only plain gateway foreground starts without root options or help", () => {

4555

expect(isGatewayRunFastPathArgv(["node", "openclaw", "gateway"])).toBe(true);

@@ -191,11 +201,15 @@ describe("shouldUseBrowserHelpFastPath", () => {

191201

describe("resolveMissingPluginCommandMessage", () => {

192202

it("explains plugins.allow misses for a bundled plugin command", () => {

193203

expect(

194-

resolveMissingPluginCommandMessage("browser", {

195-

plugins: {

196-

allow: ["quietchat"],

204+

resolveMissingPluginCommandMessage(

205+

"browser",

206+

{

207+

plugins: {

208+

allow: ["quietchat"],

209+

},

197210

},

198-

}),

211+

{ registry: browserCommandAliasRegistry },

212+

),

199213

).toContain('`plugins.allow` excludes "browser"');

200214

});

201215

@@ -402,7 +416,7 @@ describe("resolveMissingPluginCommandMessage", () => {

402416

expect(message).toContain('"lossless-claw"');

403417

});

404418405-

it("preserves the plugins.allow suggestion when the unknown name is not a plugin tool", () => {

419+

it("returns null for unknown names excluded by plugins.allow", () => {

406420

const message = resolveMissingPluginCommandMessage(

407421

"totally-unknown",

408422

{

@@ -412,14 +426,30 @@ describe("resolveMissingPluginCommandMessage", () => {

412426

},

413427

{ registry: losslessClawToolRegistry },

414428

);

415-

expect(message).not.toBeNull();

416-

expect(message).toContain('`plugins.allow` excludes "totally-unknown"');

429+

expect(message).toBeNull();

430+

});

431+432+

it("points metadata-only CLI roots in plugins.allow at their parent plugin", () => {

433+

const message = resolveMissingPluginCommandMessage(

434+

"qa",

435+

{

436+

plugins: {

437+

allow: ["browser"],

438+

},

439+

},

440+

{

441+

resolveCliCommandSurfaceOwner: () => "qa-lab",

442+

},

443+

);

444+

expect(message).toContain('"qa" is not a plugin');

445+

expect(message).toContain('"qa-lab"');

446+

expect(message).toContain('Add "qa-lab" to `plugins.allow` instead of "qa"');

417447

});

418448419449

it("does not attribute a tool to an owning plugin excluded by plugins.allow", () => {

420450

// The owning plugin is denied via plugins.allow, so the manifest-declared

421-

// tool is not available through the owning plugin. Fall through to the

422-

// standard plugins.allow message instead of falsely attributing it.

451+

// tool is not available through the owning plugin. Tool names are not CLI

452+

// command surfaces, so do not suggest adding the tool name to plugins.allow.

423453

const message = resolveMissingPluginCommandMessage(

424454

"lcm_recent",

425455

{

@@ -429,9 +459,7 @@ describe("resolveMissingPluginCommandMessage", () => {

429459

},

430460

{ registry: losslessClawToolRegistry },

431461

);

432-

expect(message).not.toBeNull();

433-

expect(message).not.toContain("agent tool available");

434-

expect(message).toContain('`plugins.allow` excludes "lcm_recent"');

462+

expect(message).toBeNull();

435463

});

436464437465

it("does not attribute a tool to an owning plugin disabled via plugins.entries", () => {