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

推荐订阅源

人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
Vercel News
Vercel News
D
Docker
博客园 - 聂微东
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
N
Netflix TechBlog - Medium
G
Google Developers Blog
腾讯CDC

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(gateway): yield after agent accepted ack · openclaw/o...
vincentkoc · 2026-04-29 · via Recent Commits to openclaw:main

@@ -25,6 +25,7 @@ import { withEnv } from "../test-utils/env.js";

2525

import { resolveBundledRuntimeDependencyInstallRootPlan } from "./bundled-runtime-deps.js";

2626

import { clearPluginCommands } from "./command-registry-state.js";

2727

import { getPluginCommandSpecs } from "./command-specs.js";

28+

import { listCompactionProviderIds } from "./compaction-provider.js";

2829

import {

2930

getGlobalHookRunner,

3031

getGlobalPluginRegistry,

@@ -72,6 +73,7 @@ import {

7273

getMemoryRuntime,

7374

listActiveMemoryPublicArtifacts,

7475

listMemoryCorpusSupplements,

76+

listMemoryPromptSupplements,

7577

registerMemoryCorpusSupplement,

7678

registerMemoryFlushPlanResolver,

7779

registerMemoryPromptSupplement,

@@ -3386,6 +3388,44 @@ module.exports = { id: "throws-after-import", register() {} };`,

33863388

expect(listAgentHarnessIds()).toEqual([]);

33873389

});

338833903391+

it("rejects malformed plugin agent harness registrations", () => {

3392+

useNoBundledPlugins();

3393+

const plugin = writePlugin({

3394+

id: "bad-harness",

3395+

filename: "bad-harness.cjs",

3396+

body: `module.exports = {

3397+

id: "bad-harness",

3398+

register(api) {

3399+

api.registerAgentHarness({

3400+

id: "broken",

3401+

label: "Broken",

3402+

});

3403+

},

3404+

};`,

3405+

});

3406+3407+

const registry = loadOpenClawPlugins({

3408+

cache: false,

3409+

workspaceDir: plugin.dir,

3410+

config: {

3411+

plugins: {

3412+

load: { paths: [plugin.file] },

3413+

allow: ["bad-harness"],

3414+

},

3415+

},

3416+

onlyPluginIds: ["bad-harness"],

3417+

});

3418+3419+

expect(listAgentHarnessIds()).toEqual([]);

3420+

expect(registry.diagnostics).toContainEqual(

3421+

expect.objectContaining({

3422+

level: "error",

3423+

pluginId: "bad-harness",

3424+

message: 'agent harness "broken" registration missing required runtime methods',

3425+

}),

3426+

);

3427+

});

3428+33893429

it("does not register internal hooks globally during non-activating loads", () => {

33903430

useNoBundledPlugins();

33913431

const plugin = writePlugin({

@@ -5120,6 +5160,21 @@ module.exports = { id: "throws-after-import", register() {} };`,

51205160

).toBe("Demo Duplicate");

51215161

},

51225162

},

5163+

{

5164+

label: "rejects malformed plugin context engine registration",

5165+

pluginId: "context-engine-malformed",

5166+

body: `module.exports = { id: "context-engine-malformed", register(api) {

5167+

api.registerContextEngine({ id: "broken-context" });

5168+

} };`,

5169+

assert: (registry: ReturnType<typeof loadOpenClawPlugins>) => {

5170+

expectRegistryErrorDiagnostic({

5171+

registry,

5172+

pluginId: "context-engine-malformed",

5173+

message: "context engine registration missing id",

5174+

});

5175+

expect(listContextEngineIds()).not.toContain("broken-context");

5176+

},

5177+

},

51235178

{

51245179

label: "rejects plugin context engine ids reserved by core",

51255180

pluginId: "context-engine-core-collision",

@@ -5134,6 +5189,36 @@ module.exports = { id: "throws-after-import", register() {} };`,

51345189

});

51355190

},

51365191

},

5192+

{

5193+

label: "rejects malformed compaction provider registration",

5194+

pluginId: "compaction-provider-malformed",

5195+

body: `module.exports = { id: "compaction-provider-malformed", register(api) {

5196+

api.registerCompactionProvider({ id: "broken-compaction", label: "Broken" });

5197+

} };`,

5198+

assert: (registry: ReturnType<typeof loadOpenClawPlugins>) => {

5199+

expectRegistryErrorDiagnostic({

5200+

registry,

5201+

pluginId: "compaction-provider-malformed",

5202+

message: 'compaction provider "broken-compaction" registration missing summarize',

5203+

});

5204+

expect(listCompactionProviderIds()).not.toContain("broken-compaction");

5205+

},

5206+

},

5207+

{

5208+

label: "rejects malformed memory prompt supplement registration",

5209+

pluginId: "memory-prompt-supplement-malformed",

5210+

body: `module.exports = { id: "memory-prompt-supplement-malformed", register(api) {

5211+

api.registerMemoryPromptSupplement({ id: "broken-memory-prompt" });

5212+

} };`,

5213+

assert: (registry: ReturnType<typeof loadOpenClawPlugins>) => {

5214+

expectRegistryErrorDiagnostic({

5215+

registry,

5216+

pluginId: "memory-prompt-supplement-malformed",

5217+

message: "memory prompt supplement registration missing builder",

5218+

});

5219+

expect(listMemoryPromptSupplements()).toEqual([]);

5220+

},

5221+

},

51375222

{

51385223

label: "requires plugin CLI registrars to declare explicit command roots",

51395224

pluginId: "cli-missing-metadata",