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

推荐订阅源

S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security Affairs
Hacker News: Ask HN
Hacker News: Ask HN
L
Lohrmann on Cybersecurity
PCI Perspectives
PCI Perspectives
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
月光博客
月光博客
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
The GitHub Blog
The GitHub Blog
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
TaoSecurity Blog
TaoSecurity Blog
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
F
Full Disclosure
U
Unit 42
Jina AI
Jina AI
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
腾讯CDC
T
Threatpost
H
Hacker News: Front Page
P
Palo Alto Networks Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
Help Net Security
Help Net Security
L
LINUX DO - 热门话题
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Spread Privacy
Spread Privacy

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: clear plugin discovery broad matchers · openclaw/openclaw@1c11369
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -244,9 +244,9 @@ function expectCandidateIds(

244244

params: { includes?: readonly string[]; excludes?: readonly string[] },

245245

) {

246246

const ids = candidates.map((candidate) => candidate.idHint);

247-

if (params.includes?.length) {

248-

expect(ids).toEqual(expect.arrayContaining([...params.includes]));

249-

}

247+

params.includes?.forEach((includedId) => {

248+

expect(ids).toContain(includedId);

249+

});

250250

params.excludes?.forEach((excludedId) => {

251251

expect(ids).not.toContain(excludedId);

252252

});

@@ -273,9 +273,72 @@ function expectCandidateSource(

273273

}

274274275275

function expectEscapesPackageDiagnostic(diagnostics: Array<{ message: string }>) {

276-

expect(diagnostics.map((entry) => entry.message)).toEqual(

277-

expect.arrayContaining([expect.stringContaining("escapes package directory")]),

276+

expect(diagnostics.some((entry) => entry.message.includes("escapes package directory"))).toBe(

277+

true,

278+

);

279+

}

280+281+

function expectDiagnostic(params: {

282+

diagnostics: Array<{

283+

level?: string;

284+

message: string;

285+

pluginId?: string;

286+

source?: string;

287+

}>;

288+

messageIncludes: string;

289+

level?: string;

290+

pluginId?: string;

291+

source?: string;

292+

}) {

293+

const matched = params.diagnostics.some(

294+

(diagnostic) =>

295+

diagnostic.message.includes(params.messageIncludes) &&

296+

(params.level === undefined || diagnostic.level === params.level) &&

297+

(params.pluginId === undefined || diagnostic.pluginId === params.pluginId) &&

298+

(params.source === undefined || diagnostic.source === params.source),

299+

);

300+

expect(matched).toBe(true);

301+

}

302+303+

function expectNoDiagnostic(params: {

304+

diagnostics: Array<{

305+

message: string;

306+

pluginId?: string;

307+

source?: string;

308+

}>;

309+

messageIncludes: string;

310+

pluginId?: string;

311+

source?: string;

312+

}) {

313+

const matched = params.diagnostics.some(

314+

(diagnostic) =>

315+

diagnostic.message.includes(params.messageIncludes) &&

316+

(params.pluginId === undefined || diagnostic.pluginId === params.pluginId) &&

317+

(params.source === undefined || diagnostic.source === params.source),

278318

);

319+

expect(matched).toBe(false);

320+

}

321+322+

function expectCandidateFields(

323+

candidate:

324+

| {

325+

idHint?: string;

326+

format?: string;

327+

bundleFormat?: string;

328+

source?: string;

329+

rootDir?: string;

330+

origin?: string;

331+

}

332+

| undefined,

333+

expected: Record<string, unknown>,

334+

) {

335+

expect(candidate).toBeDefined();

336+

if (!candidate) {

337+

throw new Error("Expected plugin candidate");

338+

}

339+

for (const [key, value] of Object.entries(expected)) {

340+

expect(candidate[key as keyof typeof candidate], key).toBe(value);

341+

}

279342

}

280343281344

function expectCandidatePresence(

@@ -312,14 +375,12 @@ function expectBundleCandidateMatch(params: {

312375

expectRootDir?: boolean;

313376

}) {

314377

const bundle = requireCandidateById(params.candidates, params.idHint);

315-

expect(bundle).toEqual(

316-

expect.objectContaining({

317-

idHint: params.idHint,

318-

format: "bundle",

319-

bundleFormat: params.bundleFormat,

320-

source: params.source,

321-

}),

322-

);

378+

expectCandidateFields(bundle, {

379+

idHint: params.idHint,

380+

format: "bundle",

381+

bundleFormat: params.bundleFormat,

382+

source: params.source,

383+

});

323384

if (params.expectRootDir) {

324385

expect(normalizePathForAssertion(bundle?.rootDir)).toBe(

325386

normalizePathForAssertion(fs.realpathSync(params.source)),

@@ -601,17 +662,15 @@ describe("discoverOpenClawPlugins", () => {

601662

}),

602663

);

603664604-

expect(candidates.find((candidate) => candidate.idHint === "feishu")).toEqual(

605-

expect.objectContaining({ origin: "bundled" }),

606-

);

665+

expectCandidateFields(findCandidateById(candidates, "feishu"), { origin: "bundled" });

607666

expect(countMatching(candidates, (candidate) => candidate.idHint === "feishu")).toBe(1);

608-

expect(diagnostics).toEqual([

609-

expect.objectContaining({

610-

level: "warn",

611-

source: bundledPluginDir,

612-

message: expect.stringContaining("ignored plugins.load.paths entry"),

613-

}),

614-

]);

667+

expect(diagnostics).toHaveLength(1);

668+

expectDiagnostic({

669+

diagnostics,

670+

level: "warn",

671+

source: bundledPluginDir,

672+

messageIncludes: "ignored plugins.load.paths entry",

673+

});

615674

});

616675617676

it("ignores legacy bundled plugin load paths that would shadow packaged bundled plugins", () => {

@@ -639,17 +698,15 @@ describe("discoverOpenClawPlugins", () => {

639698

}),

640699

);

641700642-

expect(candidates.find((candidate) => candidate.idHint === "telegram")).toEqual(

643-

expect.objectContaining({ origin: "bundled" }),

644-

);

701+

expectCandidateFields(findCandidateById(candidates, "telegram"), { origin: "bundled" });

645702

expect(countMatching(candidates, (candidate) => candidate.idHint === "telegram")).toBe(1);

646-

expect(diagnostics).toEqual([

647-

expect.objectContaining({

648-

level: "warn",

649-

source: legacyPluginDir,

650-

message: expect.stringContaining("legacy bundled plugin directory"),

651-

}),

652-

]);

703+

expect(diagnostics).toHaveLength(1);

704+

expectDiagnostic({

705+

diagnostics,

706+

level: "warn",

707+

source: legacyPluginDir,

708+

messageIncludes: "legacy bundled plugin directory",

709+

});

653710

});

654711655712

it("discovers bind-mounted bundled source overlays before packaged dist bundles", () => {

@@ -686,25 +743,24 @@ describe("discoverOpenClawPlugins", () => {

686743

const synologyCandidates = candidates.filter(

687744

(candidate) => candidate.idHint === "synology-chat",

688745

);

689-

expect(synologyCandidates).toEqual([

690-

expect.objectContaining({

691-

origin: "bundled",

692-

rootDir: fs.realpathSync(sourcePluginDir),

693-

source: fs.realpathSync(sourceEntryPath),

694-

}),

695-

expect.objectContaining({

696-

origin: "bundled",

697-

rootDir: fs.realpathSync(bundledPluginDir),

698-

source: fs.realpathSync(bundledEntryPath),

699-

}),

700-

]);

701-

expect(diagnostics).toEqual([

702-

expect.objectContaining({

703-

level: "warn",

704-

source: sourcePluginDir,

705-

message: expect.stringContaining("bind-mounted bundled plugin source overlay"),

706-

}),

707-

]);

746+

expect(synologyCandidates).toHaveLength(2);

747+

expectCandidateFields(synologyCandidates[0], {

748+

origin: "bundled",

749+

rootDir: fs.realpathSync(sourcePluginDir),

750+

source: fs.realpathSync(sourceEntryPath),

751+

});

752+

expectCandidateFields(synologyCandidates[1], {

753+

origin: "bundled",

754+

rootDir: fs.realpathSync(bundledPluginDir),

755+

source: fs.realpathSync(bundledEntryPath),

756+

});

757+

expect(diagnostics).toHaveLength(1);

758+

expectDiagnostic({

759+

diagnostics,

760+

level: "warn",

761+

source: sourcePluginDir,

762+

messageIncludes: "bind-mounted bundled plugin source overlay",

763+

});

708764

});

709765710766

it("keeps copied source plugin dirs inert when they are not mounted overlays", () => {

@@ -737,13 +793,11 @@ describe("discoverOpenClawPlugins", () => {

737793

}),

738794

);

739795740-

expect(candidates.find((candidate) => candidate.idHint === "synology-chat")).toEqual(

741-

expect.objectContaining({

742-

origin: "bundled",

743-

rootDir: fs.realpathSync(bundledPluginDir),

744-

source: fs.realpathSync(bundledEntryPath),

745-

}),

746-

);

796+

expectCandidateFields(findCandidateById(candidates, "synology-chat"), {

797+

origin: "bundled",

798+

rootDir: fs.realpathSync(bundledPluginDir),

799+

source: fs.realpathSync(bundledEntryPath),

800+

});

747801

expect(countMatching(candidates, (candidate) => candidate.idHint === "synology-chat")).toBe(1);

748802

expect(diagnostics).toStrictEqual([]);

749803

});

@@ -829,12 +883,11 @@ describe("discoverOpenClawPlugins", () => {

829883

const discordCandidates = result.candidates.filter(

830884

(candidate) => candidate.idHint === "discord",

831885

);

832-

expect(discordCandidates).toEqual([

833-

expect.objectContaining({

834-

origin: "bundled",

835-

source: fs.realpathSync(path.join(bundledPluginDir, "index.js")),

836-

}),

837-

]);

886+

expect(discordCandidates).toHaveLength(1);

887+

expectCandidateFields(discordCandidates[0], {

888+

origin: "bundled",

889+

source: fs.realpathSync(path.join(bundledPluginDir, "index.js")),

890+

});

838891

expect(

839892

result.diagnostics.some(

840893

(entry) =>

@@ -1684,9 +1737,10 @@ describe("discoverOpenClawPlugins", () => {

16841737

const result = await discoverWithStateDir(stateDir, {});

1685173816861739

expect(result.candidates).toHaveLength(0);

1687-

expect(result.diagnostics.map((diag) => diag.message)).toEqual(

1688-

expect.arrayContaining([expect.stringContaining("world-writable path")]),

1689-

);

1740+

expectDiagnostic({

1741+

diagnostics: result.diagnostics,

1742+

messageIncludes: "world-writable path",

1743+

});

16901744

});

1691174516921746

it.runIf(process.platform !== "win32")(

@@ -1707,14 +1761,11 @@ describe("discoverOpenClawPlugins", () => {

17071761

);

1708176217091763

expect(result.candidates.map((candidate) => candidate.idHint)).toContain("demo-pack");

1710-

expect(result.diagnostics).not.toEqual(

1711-

expect.arrayContaining([

1712-

expect.objectContaining({

1713-

source: packDir,

1714-

message: expect.stringContaining("world-writable path"),

1715-

}),

1716-

]),

1717-

);

1764+

expectNoDiagnostic({

1765+

diagnostics: result.diagnostics,

1766+

source: packDir,

1767+

messageIncludes: "world-writable path",

1768+

});

17181769

expect(fs.statSync(packDir).mode & 0o777).toBe(0o755);

17191770

},

17201771

);

@@ -1735,17 +1786,16 @@ describe("discoverOpenClawPlugins", () => {

17351786

const result = await discoverWithStateDir(stateDir, { ownershipUid: actualUid + 1 });

17361787

const shouldBlockForMismatch = actualUid !== 0;

17371788

expect(result.candidates).toHaveLength(shouldBlockForMismatch ? 0 : 1);

1738-

expect(result.diagnostics.map((diag) => diag.message)).toEqual(

1739-

shouldBlockForMismatch

1740-

? expect.arrayContaining([expect.stringContaining("suspicious ownership")])

1741-

: expect.not.arrayContaining([expect.stringContaining("suspicious ownership")]),

1789+

const hasSuspiciousOwnershipDiagnostic = result.diagnostics.some((diagnostic) =>

1790+

diagnostic.message.includes("suspicious ownership"),

17421791

);

1792+

expect(hasSuspiciousOwnershipDiagnostic).toBe(shouldBlockForMismatch);

17431793

if (shouldBlockForMismatch) {

1744-

expect(result.diagnostics).toContainEqual(

1745-

expect.objectContaining({

1746-

pluginId: "owner-mismatch",

1747-

}),

1748-

);

1794+

expectDiagnostic({

1795+

diagnostics: result.diagnostics,

1796+

pluginId: "owner-mismatch",

1797+

messageIncludes: "suspicious ownership",

1798+

});

17491799

}

17501800

},

17511801

);

@@ -1795,13 +1845,13 @@ describe("discoverOpenClawPlugins", () => {

17951845

},

17961846

});

17971847

expect(result.candidates).toHaveLength(0);

1798-

expect(result.diagnostics).toContainEqual(

1799-

expect.objectContaining({

1800-

pluginId: "actual-id",

1801-

source: expect.stringMatching(/alias-dir$/),

1802-

message: expect.stringContaining("blocked plugin candidate: world-writable path"),

1803-

}),

1848+

const diagnostic = result.diagnostics.find(

1849+

(entry) =>

1850+

entry.pluginId === "actual-id" &&

1851+

/alias-dir$/u.test(entry.source ?? "") &&

1852+

entry.message.includes("blocked plugin candidate: world-writable path"),

18041853

);

1854+

expect(diagnostic).toBeDefined();

18051855

} finally {

18061856

fs.chmodSync(pluginDir, 0o755);

18071857

}