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

推荐订阅源

WordPress大学
WordPress大学
H
Help Net Security
Jina AI
Jina AI
V
V2EX
G
Google Developers Blog
B
Blog
GbyAI
GbyAI
U
Unit 42
爱范儿
爱范儿
腾讯CDC
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
小众软件
小众软件
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
博客园 - 聂微东
The Cloudflare Blog
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - 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: clear remaining line broad matchers · openclaw/open...
shakkernerd · 2026-05-10 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -609,13 +609,12 @@ describe("handleLineWebhookEvents", () => {

609609

});

610610
611611

expect(processMessage).not.toHaveBeenCalled();

612-

expect(upsertPairingRequestMock).toHaveBeenCalledWith(

613-

expect.objectContaining({

614-

channel: "line",

615-

id: "user-5",

616-

accountId: "default",

617-

}),

618-

);

612+

const pairingRequest = upsertPairingRequestMock.mock.calls[0]?.[0] as

613+

| { accountId?: string; channel?: string; id?: string }

614+

| undefined;

615+

expect(pairingRequest?.channel).toBe("line");

616+

expect(pairingRequest?.id).toBe("user-5");

617+

expect(pairingRequest?.accountId).toBe("default");

619618

});

620619
621620

it("does not authorize DM senders from another account's pairing-store entries", async () => {

@@ -657,13 +656,12 @@ describe("handleLineWebhookEvents", () => {

657656
658657

expect(readAllowFromStoreMock).toHaveBeenCalledWith("line", undefined, "work");

659658

expect(processMessage).not.toHaveBeenCalled();

660-

expect(upsertPairingRequestMock).toHaveBeenCalledWith(

661-

expect.objectContaining({

662-

channel: "line",

663-

id: "cross-account-user",

664-

accountId: "work",

665-

}),

666-

);

659+

const pairingRequest = upsertPairingRequestMock.mock.calls[0]?.[0] as

660+

| { accountId?: string; channel?: string; id?: string }

661+

| undefined;

662+

expect(pairingRequest?.channel).toBe("line");

663+

expect(pairingRequest?.id).toBe("cross-account-user");

664+

expect(pairingRequest?.accountId).toBe("work");

667665

});

668666
669667

it("deduplicates replayed webhook events by webhookEventId before processing", async () => {

Original file line numberDiff line numberDiff line change

@@ -12,12 +12,11 @@ describe("LineConfigSchema", () => {

1212

if (result.success) {

1313

throw new Error("Expected config validation to fail");

1414

}

15-

expect(result.error.issues).toEqual([

16-

expect.objectContaining({

17-

path: ["allowFrom"],

18-

message: 'channels.line.dmPolicy="open" requires channels.line.allowFrom to include "*"',

19-

}),

20-

]);

15+

expect(result.error.issues).toHaveLength(1);

16+

expect(result.error.issues[0]?.path).toEqual(["allowFrom"]);

17+

expect(result.error.issues[0]?.message).toBe(

18+

'channels.line.dmPolicy="open" requires channels.line.allowFrom to include "*"',

19+

);

2120

});

2221
2322

it('accepts dmPolicy="open" with wildcard allowFrom', () => {

@@ -45,11 +44,10 @@ describe("LineConfigSchema", () => {

4544

if (result.success) {

4645

throw new Error("Expected account config validation to fail");

4746

}

48-

expect(result.error.issues).toEqual([

49-

expect.objectContaining({

50-

path: ["accounts", "work", "allowFrom"],

51-

message: 'channels.line.dmPolicy="open" requires channels.line.allowFrom to include "*"',

52-

}),

53-

]);

47+

expect(result.error.issues).toHaveLength(1);

48+

expect(result.error.issues[0]?.path).toEqual(["accounts", "work", "allowFrom"]);

49+

expect(result.error.issues[0]?.message).toBe(

50+

'channels.line.dmPolicy="open" requires channels.line.allowFrom to include "*"',

51+

);

5452

});

5553

});

Original file line numberDiff line numberDiff line change

@@ -464,14 +464,12 @@ describe("linePlugin gateway.startAccount", () => {

464464

});

465465
466466

await vi.waitFor(() => {

467-

expect(monitorLineProvider).toHaveBeenCalledWith(

468-

expect.objectContaining({

469-

channelAccessToken: "token",

470-

channelSecret: "secret",

471-

accountId: "default",

472-

}),

473-

);

467+

expect(monitorLineProvider).toHaveBeenCalledTimes(1);

474468

});

469+

const startupParams = monitorLineProvider.mock.calls[0]?.[0];

470+

expect(startupParams?.channelAccessToken).toBe("token");

471+

expect(startupParams?.channelSecret).toBe("secret");

472+

expect(startupParams?.accountId).toBe("default");

475473
476474

abort.abort();

477475

await task;