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

推荐订阅源

A
About on SuperTechFans
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
C
Check Point Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
Last Week in AI
Last Week in AI
GbyAI
GbyAI
P
Proofpoint News Feed
量子位
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
B
Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
云风的 BLOG
云风的 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: align channel fixtures with open dm policy · opencl...
steipete · 2026-04-29 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -408,11 +408,11 @@ describe("BlueBubbles webhook monitor", () => {

408408

expect(sendMessageBlueBubbles).not.toHaveBeenCalled();

409409

});

410410
411-

it("allows all DMs when dmPolicy=open", async () => {

411+

it("allows wildcard DMs when dmPolicy=open", async () => {

412412

setupWebhookTarget({

413413

account: createMockAccount({

414414

dmPolicy: "open",

415-

allowFrom: [],

415+

allowFrom: ["*"],

416416

}),

417417

});

418418

@@ -483,6 +483,7 @@ describe("BlueBubbles webhook monitor", () => {

483483

account: createMockAccount({

484484

groupPolicy: "allowlist",

485485

dmPolicy: "open",

486+

allowFrom: [],

486487

}),

487488

});

488489

@@ -1876,7 +1877,7 @@ describe("BlueBubbles webhook monitor", () => {

18761877

expect(mockDispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

18771878

});

18781879
1879-

it("does not auto-authorize DM control commands in open mode without allowlists", async () => {

1880+

it("drops DM control commands in open mode without allowlists", async () => {

18801881

mockHasControlCommand.mockReturnValue(true);

18811882
18821883

setupWebhookTarget({

@@ -1894,12 +1895,7 @@ describe("BlueBubbles webhook monitor", () => {

18941895
18951896

await dispatchWebhookPayload(payload);

18961897
1897-

expect(mockDispatchReplyWithBufferedBlockDispatcher).toHaveBeenCalled();

1898-

const latestDispatch =

1899-

mockDispatchReplyWithBufferedBlockDispatcher.mock.calls[

1900-

mockDispatchReplyWithBufferedBlockDispatcher.mock.calls.length - 1

1901-

]?.[0];

1902-

expect(latestDispatch?.ctx?.CommandAuthorized).toBe(false);

1898+

expect(mockDispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

19031899

});

19041900

});

19051901
Original file line numberDiff line numberDiff line change

@@ -34,7 +34,7 @@ export function createMockAccount(

3434

password: "test-password",

3535

dmPolicy: "open",

3636

groupPolicy: "open",

37-

allowFrom: [],

37+

allowFrom: ["*"],

3838

groupAllowFrom: [],

3939

...overrides,

4040

},

Original file line numberDiff line numberDiff line change

@@ -1008,7 +1008,7 @@ function makeReactionListenerParams(overrides?: {

10081008

groupDmEnabled: overrides?.groupDmEnabled ?? true,

10091009

groupDmChannels: overrides?.groupDmChannels ?? [],

10101010

dmPolicy: overrides?.dmPolicy ?? "open",

1011-

allowFrom: overrides?.allowFrom ?? [],

1011+

allowFrom: overrides?.allowFrom ?? ["*"],

10121012

groupPolicy: overrides?.groupPolicy ?? "open",

10131013

allowNameMatching: overrides?.allowNameMatching ?? false,

10141014

guildEntries: overrides?.guildEntries,

Original file line numberDiff line numberDiff line change

@@ -200,6 +200,7 @@ describe("Discord ACP bind here end-to-end flow", () => {

200200

client: createDmClient("dm-1"),

201201

botUserId: "bot-1",

202202

}),

203+

allowFrom: ["*"],

203204

});

204205
205206

expect(preflight).not.toBeNull();

Original file line numberDiff line numberDiff line change

@@ -35,7 +35,7 @@ function createConfig(): OpenClawConfig {

3535

return {

3636

channels: {

3737

discord: {

38-

dm: { enabled: true, policy: "open" },

38+

dm: { enabled: true, policy: "open", allowFrom: ["*"] },

3939

},

4040

},

4141

} as OpenClawConfig;

@@ -80,7 +80,7 @@ function createConfiguredAcpCase(params: {

8080

? {

8181

channels: {

8282

discord: {

83-

dm: { enabled: true, policy: "open" },

83+

dm: { enabled: true, policy: "open", allowFrom: ["*"] },

8484

},

8585

},

8686

}

Original file line numberDiff line numberDiff line change

@@ -40,7 +40,7 @@ function createConfig(params?: { requireMention?: boolean }): OpenClawConfig {

4040

},

4141

channels: {

4242

discord: {

43-

dm: { enabled: true, policy: "open" },

43+

dm: { enabled: true, policy: "open", allowFrom: ["*"] },

4444

guilds: {

4545

guild1: {

4646

requireMention: true,

Original file line numberDiff line numberDiff line change

@@ -41,9 +41,11 @@ const lifecycleConfig = createFeishuLifecycleConfig({

4141

appSecret: "secret_test",

4242

channelConfig: {

4343

dmPolicy: "open",

44+

allowFrom: ["ou_user1"],

4445

},

4546

accountConfig: {

4647

dmPolicy: "open",

48+

allowFrom: ["ou_user1"],

4749

},

4850

});

4951

@@ -53,6 +55,7 @@ const lifecycleAccount = createResolvedFeishuLifecycleAccount({

5355

appSecret: "secret_test",

5456

config: {

5557

dmPolicy: "open",

58+

allowFrom: ["ou_user1"],

5659

},

5760

});

5861
Original file line numberDiff line numberDiff line change

@@ -43,9 +43,11 @@ const lifecycleConfig = createFeishuLifecycleConfig({

4343

appSecret: "secret_test",

4444

channelConfig: {

4545

dmPolicy: "open",

46+

allowFrom: ["ou_user1"],

4647

},

4748

accountConfig: {

4849

dmPolicy: "open",

50+

allowFrom: ["ou_user1"],

4951

},

5052

});

5153

@@ -55,6 +57,7 @@ const lifecycleAccount = createResolvedFeishuLifecycleAccount({

5557

appSecret: "secret_test",

5658

config: {

5759

dmPolicy: "open",

60+

allowFrom: ["ou_user1"],

5861

},

5962

});

6063
Original file line numberDiff line numberDiff line change

@@ -44,7 +44,6 @@ function createParams(

4444

cfg,

4545

accountId: "default",

4646

opts: undefined,

47-

allowFrom: [],

4847

groupAllowFrom: [],

4948

groupPolicy: "open",

5049

dmPolicy: "open",

@@ -55,6 +54,7 @@ function createParams(

5554

selfChatCache: undefined,

5655

logVerbose: undefined,

5756

...restOverrides,

57+

allowFrom: restOverrides.allowFrom ?? ["*"],

5858

message,

5959

messageText,

6060

bodyText,

Original file line numberDiff line numberDiff line change

@@ -168,7 +168,7 @@ describe("signal createSignalEventHandler inbound context", () => {

168168

);

169169

});

170170
171-

it("does not auto-authorize DM commands in open mode without allowlists", async () => {

171+

it("drops DM commands in open mode without allowlists", async () => {

172172

const handler = createSignalEventHandler(

173173

createBaseSignalEventHandlerDeps({

174174

cfg: {

@@ -193,8 +193,8 @@ describe("signal createSignalEventHandler inbound context", () => {

193193

}),

194194

);

195195
196-

expect(capture.ctx).toBeTruthy();

197-

expect(capture.ctx?.CommandAuthorized).toBe(false);

196+

expect(capture.ctx).toBeUndefined();

197+

expect(dispatchInboundMessageMock).not.toHaveBeenCalled();

198198

});

199199
200200

it("drops quote-only group context from non-allowlisted quoted senders in allowlist mode", async () => {