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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog

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(plugins): make empty-allowlist actionable for new use...
pahuchi-joe · 2026-06-23 · via Recent Commits to openclaw:main

@@ -53,6 +53,7 @@ import {

5353

claimPluginInteractiveCallbackDedupe,

5454

commitPluginInteractiveCallbackDedupe,

5555

} from "./interactive-state.js";

56+

import { warnWhenAllowlistIsOpen } from "./loader-provenance.js";

5657

import {

5758

testing,

5859

clearPluginLoaderCache,

@@ -8724,6 +8725,109 @@ module.exports = {

87248725

).toHaveLength(0);

87258726

});

872687278728+

it("includes actionable plugins.allow remediation hints in the open allowlist warning", () => {

8729+

useNoBundledPlugins();

8730+

clearPluginLoaderCache();

8731+8732+

const { workspaceDir } = writeWorkspacePlugin({

8733+

id: "warn-open-allow-remediation",

8734+

});

8735+

const warnings: string[] = [];

8736+

loadOpenClawPlugins({

8737+

cache: false,

8738+

workspaceDir,

8739+

logger: createWarningLogger(warnings),

8740+

config: {

8741+

plugins: {

8742+

enabled: true,

8743+

},

8744+

},

8745+

});

8746+8747+

const openAllowWarning = warnings.find((msg) => msg.includes("plugins.allow is empty"));

8748+

expect(openAllowWarning).toBeDefined();

8749+

expect(openAllowWarning).toContain('"warn-open-allow-remediation"');

8750+

expect(openAllowWarning).toContain('"plugins": { "allow": [');

8751+

expect(openAllowWarning).toContain("openclaw plugins list --enabled --verbose");

8752+

expect(openAllowWarning).toContain("openclaw plugins inspect warn-open-allow-remediation");

8753+

});

8754+8755+

it("includes actionable plugins.allow remediation hints in the untracked-provenance warning", () => {

8756+

useNoBundledPlugins();

8757+

const stateDir = makeTempDir();

8758+

withEnv({ OPENCLAW_STATE_DIR: stateDir }, () => {

8759+

const globalDir = path.join(stateDir, "extensions", "warn-untracked-remediation");

8760+

mkdirSafe(globalDir);

8761+

writePlugin({

8762+

id: "warn-untracked-remediation",

8763+

body: simplePluginBody("warn-untracked-remediation"),

8764+

dir: globalDir,

8765+

filename: "index.cjs",

8766+

});

8767+8768+

const warnings: string[] = [];

8769+

const registry = loadOpenClawPlugins({

8770+

cache: false,

8771+

logger: createWarningLogger(warnings),

8772+

config: {

8773+

plugins: {

8774+

enabled: true,

8775+

},

8776+

},

8777+

});

8778+8779+

const untrackedWarning = warnings.find(

8780+

(msg) =>

8781+

msg.includes("warn-untracked-remediation") &&

8782+

msg.includes("loaded without install/load-path provenance"),

8783+

);

8784+

expect(untrackedWarning).toBeDefined();

8785+

expect(untrackedWarning).toContain('"warn-untracked-remediation"');

8786+

expect(untrackedWarning).toContain("openclaw plugins inspect warn-untracked-remediation");

8787+

expect(untrackedWarning).toContain("reinstall from a trusted source");

8788+8789+

const diagnostic = registry.diagnostics.find(

8790+

(entry) =>

8791+

entry.pluginId === "warn-untracked-remediation" &&

8792+

entry.message.includes("loaded without install/load-path provenance"),

8793+

);

8794+

expect(diagnostic?.message).toContain('"warn-untracked-remediation"');

8795+

expect(diagnostic?.message).toContain("openclaw plugins inspect warn-untracked-remediation");

8796+

expect(diagnostic?.message).toContain("reinstall from a trusted source");

8797+

});

8798+

});

8799+8800+

it("omits the truncated plugins.allow snippet when more than six plugins are discovered", () => {

8801+

const ids = Array.from({ length: 8 }, (_, index) => `discovered-plugin-${index + 1}`);

8802+

const warnings: string[] = [];

8803+

const seenWarningKeys = new Set<string>();

8804+

const cache = {

8805+

hasOpenAllowlistWarning(key: string) {

8806+

return seenWarningKeys.has(key);

8807+

},

8808+

recordOpenAllowlistWarning(key: string) {

8809+

seenWarningKeys.add(key);

8810+

},

8811+

};

8812+

warnWhenAllowlistIsOpen({

8813+

emitWarning: true,

8814+

logger: createWarningLogger(warnings),

8815+

pluginsEnabled: true,

8816+

allow: [],

8817+

warningCacheKey: "truncated",

8818+

warningCache: cache,

8819+

discoverablePlugins: ids.map((id) => ({ id, source: `/tmp/${id}`, origin: "global" })),

8820+

});

8821+8822+

expect(warnings).toHaveLength(1);

8823+

const message = warnings[0] ?? "";

8824+

expect(message).toContain("plugins.allow is empty");

8825+

expect(message).toContain("(+2 more)");

8826+

expect(message).not.toContain('"plugins": { "allow": [');

8827+

expect(message).toContain("openclaw plugins list --enabled --verbose");

8828+

expect(message).toContain("openclaw plugins inspect <id>");

8829+

});

8830+87278831

it("handles workspace-discovered plugins according to trust and precedence", () => {

87288832

useNoBundledPlugins();

87298833

const scenarios = [