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

推荐订阅源

P
Privacy & Cybersecurity Law Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
腾讯CDC
人人都是产品经理
人人都是产品经理
小众软件
小众软件
V
Visual Studio Blog
S
Secure Thoughts
J
Java Code Geeks
V
V2EX
量子位
The Hacker News
The Hacker News
酷 壳 – CoolShell
酷 壳 – CoolShell
Security Latest
Security Latest
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
博客园 - 叶小钗
T
Threat Research - Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Tailwind CSS Blog
Cloudbric
Cloudbric
S
SegmentFault 最新的问题
AI
AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
IT之家
IT之家
T
Tenable Blog
S
Security @ Cisco Blogs
月光博客
月光博客
雷峰网
雷峰网
博客园 - 【当耐特】
Know Your Adversary
Know Your Adversary
C
Cybersecurity and Infrastructure Security Agency CISA
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
Attack and Defense Labs
Attack and Defense Labs
博客园 - 三生石上(FineUI控件)
Hacker News - Newest:
Hacker News - Newest: "LLM"
有赞技术团队
有赞技术团队
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
TaoSecurity Blog
TaoSecurity Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Cloudflare Blog
K
Kaspersky official 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 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 gateway server plugin broad matchers · openclaw/openclaw@0b8b9df
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -194,6 +194,33 @@ function createTestContext(label: string): GatewayRequestContext {

194194

return { label } as unknown as GatewayRequestContext;

195195

}

196196197+

function isRecord(value: unknown): value is Record<string, unknown> {

198+

return typeof value === "object" && value !== null && !Array.isArray(value);

199+

}

200+201+

function requireRecord(value: unknown, label: string): Record<string, unknown> {

202+

if (!isRecord(value)) {

203+

throw new Error(`Expected ${label} to be an object`);

204+

}

205+

return value;

206+

}

207+208+

function readRecordField(record: Record<string, unknown>, key: string, label: string) {

209+

const value = record[key];

210+

if (!isRecord(value)) {

211+

throw new Error(`Expected ${label} to be an object`);

212+

}

213+

return value;

214+

}

215+216+

function getLastPluginLoadOptions(): Record<string, unknown> {

217+

return requireRecord(loadOpenClawPlugins.mock.calls.at(-1)?.[0], "plugin load options");

218+

}

219+220+

function getLastPluginLoadOption(key: string) {

221+

return getLastPluginLoadOptions()[key];

222+

}

223+197224

function getLastDispatchedContext(): GatewayRequestContext | undefined {

198225

const call = handleGatewayRequest.mock.calls.at(-1)?.[0];

199226

return call?.context;

@@ -204,6 +231,10 @@ function getLastDispatchedParams(): Record<string, unknown> | undefined {

204231

return call?.req?.params as Record<string, unknown> | undefined;

205232

}

206233234+

function getRequiredLastDispatchedParams(): Record<string, unknown> {

235+

return requireRecord(getLastDispatchedParams(), "dispatched params");

236+

}

237+207238

function getLastDispatchedClientScopes(): string[] {

208239

const call = handleGatewayRequest.mock.calls.at(-1)?.[0];

209240

const scopes = call?.client?.connect?.scopes;

@@ -386,12 +417,8 @@ describe("loadGatewayPlugins", () => {

386417

workspaceDir: "/tmp",

387418

env: process.env,

388419

});

389-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

390-

expect.objectContaining({

391-

onlyPluginIds: ["discord", "telegram"],

392-

preferBuiltPluginArtifacts: true,

393-

}),

394-

);

420+

expect(getLastPluginLoadOption("onlyPluginIds")).toEqual(["discord", "telegram"]);

421+

expect(getLastPluginLoadOption("preferBuiltPluginArtifacts")).toBe(true);

395422

});

396423397424

test("routes plugin registration logs through the plugin logger", () => {

@@ -430,11 +457,7 @@ describe("loadGatewayPlugins", () => {

430457

});

431458432459

expect(loadPluginLookUpTable).not.toHaveBeenCalled();

433-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

434-

expect.objectContaining({

435-

onlyPluginIds: ["browser"],

436-

}),

437-

);

460+

expect(getLastPluginLoadOption("onlyPluginIds")).toEqual(["browser"]);

438461

});

439462440463

test("reuses a provided lookup table for startup scope and auto-enable manifests", () => {

@@ -454,12 +477,8 @@ describe("loadGatewayPlugins", () => {

454477

env: process.env,

455478

manifestRegistry,

456479

});

457-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

458-

expect.objectContaining({

459-

manifestRegistry,

460-

onlyPluginIds: ["telegram"],

461-

}),

462-

);

480+

expect(getLastPluginLoadOption("manifestRegistry")).toBe(manifestRegistry);

481+

expect(getLastPluginLoadOption("onlyPluginIds")).toEqual(["telegram"]);

463482

});

464483465484

test("pins the initial startup channel registry against later active-registry churn", () => {

@@ -502,16 +521,12 @@ describe("loadGatewayPlugins", () => {

502521

config: rawConfig,

503522

env: process.env,

504523

});

505-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

506-

expect.objectContaining({

507-

config: resolvedConfig,

508-

activationSourceConfig: rawConfig,

509-

onlyPluginIds: ["slack"],

510-

autoEnabledReasons: {

511-

slack: ["slack configured"],

512-

},

513-

}),

514-

);

524+

expect(getLastPluginLoadOption("config")).toStrictEqual(resolvedConfig);

525+

expect(getLastPluginLoadOption("activationSourceConfig")).toStrictEqual(rawConfig);

526+

expect(getLastPluginLoadOption("onlyPluginIds")).toEqual(["slack"]);

527+

expect(getLastPluginLoadOption("autoEnabledReasons")).toEqual({

528+

slack: ["slack configured"],

529+

});

515530

});

516531517532

test("preserves runtime defaults while applying source activation to startup loads", () => {

@@ -582,41 +597,31 @@ describe("loadGatewayPlugins", () => {

582597

pluginIds: ["telegram"],

583598

});

584599585-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

586-

expect.objectContaining({

587-

config: expect.objectContaining({

588-

channels: expect.objectContaining({

589-

telegram: expect.objectContaining({

590-

enabled: true,

591-

dmPolicy: "pairing",

592-

groupPolicy: "allowlist",

593-

}),

594-

}),

595-

plugins: expect.objectContaining({

596-

allow: ["bench-plugin"],

597-

entries: expect.objectContaining({

598-

"bench-plugin": expect.objectContaining({

599-

enabled: true,

600-

config: {

601-

runtimeDefault: true,

602-

},

603-

}),

604-

"memory-core": {

605-

config: {

606-

dreaming: {

607-

enabled: false,

608-

},

609-

},

610-

},

611-

}),

612-

}),

613-

}),

614-

activationSourceConfig: rawConfig,

615-

autoEnabledReasons: {

616-

telegram: ["telegram configured"],

600+

const config = requireRecord(getLastPluginLoadOption("config"), "plugin load config");

601+

const channels = readRecordField(config, "channels", "plugin load channels");

602+

const telegram = readRecordField(channels, "telegram", "telegram channel config");

603+

expect(telegram.enabled).toBe(true);

604+

expect(telegram.dmPolicy).toBe("pairing");

605+

expect(telegram.groupPolicy).toBe("allowlist");

606+

const plugins = readRecordField(config, "plugins", "plugin load plugins config");

607+

expect(plugins.allow).toEqual(["bench-plugin"]);

608+

const entries = readRecordField(plugins, "entries", "plugin load entries");

609+

const benchPlugin = readRecordField(entries, "bench-plugin", "bench plugin entry");

610+

expect(benchPlugin.enabled).toBe(true);

611+

expect(benchPlugin.config).toEqual({

612+

runtimeDefault: true,

613+

});

614+

expect(entries["memory-core"]).toEqual({

615+

config: {

616+

dreaming: {

617+

enabled: false,

617618

},

618-

}),

619-

);

619+

},

620+

});

621+

expect(getLastPluginLoadOption("activationSourceConfig")).toStrictEqual(rawConfig);

622+

expect(getLastPluginLoadOption("autoEnabledReasons")).toEqual({

623+

telegram: ["telegram configured"],

624+

});

620625

});

621626622627

test("treats an empty startup scope as no plugin load instead of an unscoped load", () => {

@@ -677,15 +682,11 @@ describe("loadGatewayPlugins", () => {

677682

workspaceDir: "/tmp",

678683

env: process.env,

679684

});

680-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

681-

expect.objectContaining({

682-

config: autoEnabledConfig,

683-

activationSourceConfig: {},

684-

autoEnabledReasons: {

685-

slack: ["slack configured"],

686-

},

687-

}),

688-

);

685+

expect(getLastPluginLoadOption("config")).toStrictEqual(autoEnabledConfig);

686+

expect(getLastPluginLoadOption("activationSourceConfig")).toEqual({});

687+

expect(getLastPluginLoadOption("autoEnabledReasons")).toEqual({

688+

slack: ["slack configured"],

689+

});

689690

});

690691691692

test("re-derives auto-enable reasons when only activationSourceConfig is provided", () => {

@@ -715,27 +716,25 @@ describe("loadGatewayPlugins", () => {

715716

workspaceDir: "/tmp",

716717

env: process.env,

717718

});

718-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

719-

expect.objectContaining({

720-

config: resolvedConfig,

721-

activationSourceConfig: rawConfig,

722-

autoEnabledReasons: {

723-

slack: ["slack configured"],

724-

},

725-

}),

726-

);

719+

expect(getLastPluginLoadOption("config")).toStrictEqual(resolvedConfig);

720+

expect(getLastPluginLoadOption("activationSourceConfig")).toStrictEqual(rawConfig);

721+

expect(getLastPluginLoadOption("autoEnabledReasons")).toEqual({

722+

slack: ["slack configured"],

723+

});

727724

});

728725729726

test("provides subagent runtime with sessions.get method aliases", async () => {

730727

const runtime = await createSubagentRuntime(serverPluginsModule);

731728

serverPluginsModule.setFallbackGatewayContext(createTestContext("sessions-get-aliases"));

732729

handleGatewayRequest

733730

.mockImplementationOnce(async (opts: HandleGatewayRequestOptions) => {

734-

expect(opts.req).toMatchObject({ method: "sessions.get", params: { key: "s-read" } });

731+

expect(opts.req.method).toBe("sessions.get");

732+

expect(opts.req.params).toEqual({ key: "s-read" });

735733

opts.respond(true, { messages: [{ id: "m-1" }] });

736734

})

737735

.mockImplementationOnce(async (opts: HandleGatewayRequestOptions) => {

738-

expect(opts.req).toMatchObject({ method: "sessions.get", params: { key: "s-legacy" } });

736+

expect(opts.req.method).toBe("sessions.get");

737+

expect(opts.req.params).toEqual({ key: "s-legacy" });

739738

opts.respond(true, { messages: [{ id: "m-2" }] });

740739

});

741740

@@ -793,13 +792,12 @@ describe("loadGatewayPlugins", () => {

793792

}),

794793

);

795794796-

expect(getLastDispatchedParams()).toMatchObject({

797-

sessionKey: "s-override",

798-

message: "use the override",

799-

provider: "anthropic",

800-

model: "claude-haiku-4-5",

801-

deliver: false,

802-

});

795+

const params = getRequiredLastDispatchedParams();

796+

expect(params.sessionKey).toBe("s-override");

797+

expect(params.message).toBe("use the override");

798+

expect(params.provider).toBe("anthropic");

799+

expect(params.model).toBe("claude-haiku-4-5");

800+

expect(params.deliver).toBe(false);

803801

});

804802805803

test("forwards caller-supplied idempotencyKey on subagent run", async () => {

@@ -814,11 +812,10 @@ describe("loadGatewayPlugins", () => {

814812

idempotencyKey: "caller-provided-key",

815813

});

816814817-

expect(getLastDispatchedParams()).toMatchObject({

818-

sessionKey: "s-idem-forward",

819-

message: "hello",

820-

idempotencyKey: "caller-provided-key",

821-

});

815+

const params = getRequiredLastDispatchedParams();

816+

expect(params.sessionKey).toBe("s-idem-forward");

817+

expect(params.message).toBe("hello");

818+

expect(params.idempotencyKey).toBe("caller-provided-key");

822819

});

823820824821

test("forwards lightContext as lightweight bootstrap context on subagent run", async () => {

@@ -834,13 +831,12 @@ describe("loadGatewayPlugins", () => {

834831

deliver: false,

835832

});

836833837-

expect(getLastDispatchedParams()).toMatchObject({

838-

sessionKey: "s-light-context",

839-

message: "hello",

840-

lane: "dreaming-narrative:s-light-context",

841-

bootstrapContextMode: "lightweight",

842-

deliver: false,

843-

});

834+

const params = getRequiredLastDispatchedParams();

835+

expect(params.sessionKey).toBe("s-light-context");

836+

expect(params.message).toBe("hello");

837+

expect(params.lane).toBe("dreaming-narrative:s-light-context");

838+

expect(params.bootstrapContextMode).toBe("lightweight");

839+

expect(params.deliver).toBe(false);

844840

});

845841846842

test("generates a non-empty idempotencyKey when the caller omits it", async () => {

@@ -909,11 +905,10 @@ describe("loadGatewayPlugins", () => {

909905

}),

910906

);

911907912-

expect(getLastDispatchedParams()).toMatchObject({

913-

sessionKey: "s-trusted-override",

914-

provider: "anthropic",

915-

model: "claude-haiku-4-5",

916-

});

908+

const params = getRequiredLastDispatchedParams();

909+

expect(params.sessionKey).toBe("s-trusted-override");

910+

expect(params.provider).toBe("anthropic");

911+

expect(params.model).toBe("claude-haiku-4-5");

917912

});

918913919914

test("tags plugin fallback subagent runs with the creating plugin id", async () => {

@@ -929,9 +924,7 @@ describe("loadGatewayPlugins", () => {

929924

}),

930925

);

931926932-

expect(getLastDispatchedClientInternal()).toMatchObject({

933-

pluginRuntimeOwnerId: "memory-core",

934-

});

927+

expect(getLastDispatchedClientInternal().pluginRuntimeOwnerId).toBe("memory-core");

935928

});

936929937930

test("includes docs guidance when a plugin fallback override is not trusted", async () => {

@@ -978,10 +971,9 @@ describe("loadGatewayPlugins", () => {

978971

}),

979972

);

980973981-

expect(getLastDispatchedParams()).toMatchObject({

982-

sessionKey: "s-model-only-override",

983-

model: "anthropic/claude-haiku-4-5",

984-

});

974+

const params = getRequiredLastDispatchedParams();

975+

expect(params.sessionKey).toBe("s-model-only-override");

976+

expect(params.model).toBe("anthropic/claude-haiku-4-5");

985977

expect(getLastDispatchedParams()).not.toHaveProperty("provider");

986978

});

987979

@@ -1119,9 +1111,7 @@ describe("loadGatewayPlugins", () => {

11191111

).resolves.toBeUndefined();

1120111211211113

expect(getLastDispatchedClientScopes()).toEqual(["operator.admin"]);

1122-

expect(getLastDispatchedClientInternal()).toMatchObject({

1123-

pluginRuntimeOwnerId: "memory-core",

1124-

});

1114+

expect(getLastDispatchedClientInternal().pluginRuntimeOwnerId).toBe("memory-core");

11251115

});

1126111611271117

test("allows session deletion when the request scope already has admin", async () => {

@@ -1174,9 +1164,7 @@ describe("loadGatewayPlugins", () => {

11741164

).resolves.toBeUndefined();

1175116511761166

expect(getLastDispatchedClientScopes()).toEqual(["operator.admin"]);

1177-

expect(getLastDispatchedClientInternal()).toMatchObject({

1178-

pluginRuntimeOwnerId: "memory-core",

1179-

});

1167+

expect(getLastDispatchedClientInternal().pluginRuntimeOwnerId).toBe("memory-core");

11801168

});

1181116911821170

test("can prefer setup-runtime channel plugins during startup loads", () => {

@@ -1185,11 +1173,7 @@ describe("loadGatewayPlugins", () => {

11851173

preferSetupRuntimeForChannelPlugins: true,

11861174

});

118711751188-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

1189-

expect.objectContaining({

1190-

preferSetupRuntimeForChannelPlugins: true,

1191-

}),

1192-

);

1176+

expect(getLastPluginLoadOption("preferSetupRuntimeForChannelPlugins")).toBe(true);

11931177

});

1194117811951179

test("primes configured bindings during gateway startup", () => {

@@ -1236,10 +1220,9 @@ describe("loadGatewayPlugins", () => {

12361220

}),

12371221

);

123812221239-

expect(getLastDispatchedParams()).toMatchObject({

1240-

sessionKey: "s-auto-enabled-bootstrap-policy",

1241-

model: "openai/gpt-5.4",

1242-

});

1223+

const params = getRequiredLastDispatchedParams();

1224+

expect(params.sessionKey).toBe("s-auto-enabled-bootstrap-policy");

1225+

expect(params.model).toBe("openai/gpt-5.4");

12431226

});

1244122712451228

test("can suppress duplicate diagnostics when reloading full runtime plugins", () => {

@@ -1293,12 +1276,8 @@ describe("loadGatewayPlugins", () => {

12931276

env: process.env,

12941277

manifestRegistry,

12951278

});

1296-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

1297-

expect.objectContaining({

1298-

manifestRegistry,

1299-

onlyPluginIds: ["discord"],

1300-

}),

1301-

);

1279+

expect(getLastPluginLoadOption("manifestRegistry")).toBe(manifestRegistry);

1280+

expect(getLastPluginLoadOption("onlyPluginIds")).toEqual(["discord"]);

13021281

});

1303128213041283

test("runs registry hook before priming configured bindings", () => {