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

推荐订阅源

WordPress大学
WordPress大学
B
Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
博客园 - 叶小钗
S
SegmentFault 最新的问题
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
Microsoft Security Blog
Microsoft Security Blog
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
腾讯CDC
博客园 - Franky
博客园 - 聂微东
V
Visual Studio Blog
GbyAI
GbyAI
Martin Fowler
Martin Fowler
罗磊的独立博客
Y
Y Combinator 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: tighten google meet session assertions · openclaw/o...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -1254,46 +1254,39 @@ describe("google-meet plugin", () => {

12541254

});

12551255

vi.stubGlobal("fetch", fetchMock);

125612561257-

await expect(

1258-

fetchGoogleMeetAttendance({

1259-

accessToken: "token",

1260-

conferenceRecord: "rec-1",

1261-

}),

1262-

).resolves.toMatchObject({

1263-

attendance: [

1264-

{

1265-

displayName: "Alice",

1266-

participants: [

1267-

"conferenceRecords/rec-1/participants/p1",

1268-

"conferenceRecords/rec-1/participants/p2",

1269-

],

1270-

firstJoinTime: "2026-04-25T10:10:00.000Z",

1271-

lastLeaveTime: "2026-04-25T10:50:00.000Z",

1272-

durationMs: 1_800_000,

1273-

late: true,

1274-

earlyLeave: true,

1275-

sessions: [

1276-

{ name: expect.stringContaining("/p1/") },

1277-

{ name: expect.stringContaining("/p2/") },

1278-

],

1279-

},

1280-

],

1257+

const result = await fetchGoogleMeetAttendance({

1258+

accessToken: "token",

1259+

conferenceRecord: "rec-1",

12811260

});

1261+

expect(result.attendance).toHaveLength(1);

1262+

const row = result.attendance[0];

1263+

expect(row?.displayName).toBe("Alice");

1264+

expect(row?.participants).toEqual([

1265+

"conferenceRecords/rec-1/participants/p1",

1266+

"conferenceRecords/rec-1/participants/p2",

1267+

]);

1268+

expect(row?.firstJoinTime).toBe("2026-04-25T10:10:00.000Z");

1269+

expect(row?.lastLeaveTime).toBe("2026-04-25T10:50:00.000Z");

1270+

expect(row?.durationMs).toBe(1_800_000);

1271+

expect(row?.late).toBe(true);

1272+

expect(row?.earlyLeave).toBe(true);

1273+

expect(row?.sessions.map((session) => session.name)).toEqual([

1274+

"conferenceRecords/rec-1/participants/p1/participantSessions/s1",

1275+

"conferenceRecords/rec-1/participants/p2/participantSessions/s1",

1276+

]);

12821277

});

1283127812841279

it("surfaces Developer Preview acknowledgment blockers in preflight reports", () => {

1285-

expect(

1286-

buildGoogleMeetPreflightReport({

1287-

input: "abc-defg-hij",

1288-

space: { name: "spaces/abc-defg-hij" },

1289-

previewAcknowledged: false,

1290-

tokenSource: "cached-access-token",

1291-

}),

1292-

).toMatchObject({

1293-

resolvedSpaceName: "spaces/abc-defg-hij",

1280+

const report = buildGoogleMeetPreflightReport({

1281+

input: "abc-defg-hij",

1282+

space: { name: "spaces/abc-defg-hij" },

12941283

previewAcknowledged: false,

1295-

blockers: [expect.stringContaining("Developer Preview Program")],

1284+

tokenSource: "cached-access-token",

12961285

});

1286+

expect(report.resolvedSpaceName).toBe("spaces/abc-defg-hij");

1287+

expect(report.previewAcknowledged).toBe(false);

1288+

expect(report.blockers).toHaveLength(1);

1289+

expect(report.blockers[0]).toContain("Developer Preview Program");

12971290

});

1298129112991292

it("builds Twilio dial plans from a PIN", () => {

@@ -1315,28 +1308,27 @@ describe("google-meet plugin", () => {

13151308

pin: "123456",

13161309

});

131713101318-

expect(result.details.session).toMatchObject({

1319-

transport: "twilio",

1320-

mode: "agent",

1321-

twilio: {

1322-

dialInNumber: "+15551234567",

1323-

pinProvided: true,

1324-

dtmfSequence: "wwwwwwwwwwwwwwwwwwwwwwww123456#",

1325-

voiceCallId: "call-1",

1326-

dtmfSent: true,

1327-

introSent: true,

1328-

},

1311+

const session = requireRecord(result.details.session, "Twilio session");

1312+

expect(session.transport).toBe("twilio");

1313+

expect(session.mode).toBe("agent");

1314+

expect(session.twilio).toEqual({

1315+

dialInNumber: "+15551234567",

1316+

pinProvided: true,

1317+

dtmfSequence: "wwwwwwwwwwwwwwwwwwwwwwww123456#",

1318+

voiceCallId: "call-1",

1319+

dtmfSent: true,

1320+

introSent: true,

13291321

});

1330-

expect(voiceCallMocks.joinMeetViaVoiceCallGateway).toHaveBeenCalledWith(

1331-

expect.objectContaining({

1332-

config: expect.objectContaining({ defaultTransport: "twilio" }),

1333-

dialInNumber: "+15551234567",

1334-

dtmfSequence: "wwwwwwwwwwwwwwwwwwwwwwww123456#",

1335-

logger: expect.objectContaining({ info: expect.any(Function) }),

1336-

message: "Say exactly: I'm here and listening.",

1337-

sessionKey: expect.stringMatching(/^voice:google-meet:meet_/),

1338-

}),

1322+

const [voiceCallParams] = voiceCallMocks.joinMeetViaVoiceCallGateway.mock

1323+

.calls[0] as unknown as [Record<string, unknown>];

1324+

expect(requireRecord(voiceCallParams.config, "voice-call config").defaultTransport).toBe(

1325+

"twilio",

13391326

);

1327+

expect(voiceCallParams.dialInNumber).toBe("+15551234567");

1328+

expect(voiceCallParams.dtmfSequence).toBe("wwwwwwwwwwwwwwwwwwwwwwww123456#");

1329+

expect(typeof requireRecord(voiceCallParams.logger, "voice-call logger").info).toBe("function");

1330+

expect(voiceCallParams.message).toBe("Say exactly: I'm here and listening.");

1331+

expect(String(voiceCallParams.sessionKey)).toMatch(/^voice:google-meet:meet_/);

13401332

});

1341133313421334

it("passes the caller session key through tool joins for agent context forking", async () => {

@@ -1359,10 +1351,9 @@ describe("google-meet plugin", () => {

13591351

requesterSessionKey: "agent:main:wrong",

13601352

});

136113531362-

expect(gatewayParams[0]).toMatchObject({

1363-

url: "https://meet.google.com/abc-defg-hij",

1364-

requesterSessionKey: "agent:main:discord:channel:general",

1365-

});

1354+

const gatewayJoinParams = requireRecord(gatewayParams[0], "gateway join params");

1355+

expect(gatewayJoinParams.url).toBe("https://meet.google.com/abc-defg-hij");

1356+

expect(gatewayJoinParams.requesterSessionKey).toBe("agent:main:discord:channel:general");

13661357

});

1367135813681359

it("explains that Twilio joins need dial-in details", async () => {

@@ -1394,8 +1385,15 @@ describe("google-meet plugin", () => {

1394138513951386

await tool.execute("id", { action: "leave", sessionId: joined.details.session.id });

139613871388+

const [endParams] = voiceCallMocks.endMeetVoiceCallGatewayCall.mock.calls[0] as unknown as [

1389+

Record<string, unknown>,

1390+

];

1391+

expect(requireRecord(endParams.config, "voice-call end config").defaultTransport).toBe(

1392+

"twilio",

1393+

);

1394+

expect(endParams.callId).toBe("call-1");

13971395

expect(voiceCallMocks.endMeetVoiceCallGatewayCall).toHaveBeenCalledWith({

1398-

config: expect.objectContaining({ defaultTransport: "twilio" }),

1396+

config: endParams.config,

13991397

callId: "call-1",

14001398

});

14011399

});

@@ -1446,9 +1444,17 @@ describe("google-meet plugin", () => {

14461444

message: "Say exactly: hello after joining.",

14471445

});

144814461449-

expect(spoken.details).toMatchObject({ spoken: true });

1447+

expect(requireRecord(spoken.details, "spoken details").spoken).toBe(true);

1448+

const [speakParams] = voiceCallMocks.speakMeetViaVoiceCallGateway.mock.calls[0] as unknown as [

1449+

Record<string, unknown>,

1450+

];

1451+

expect(requireRecord(speakParams.config, "voice-call speak config").defaultTransport).toBe(

1452+

"twilio",

1453+

);

1454+

expect(speakParams.callId).toBe("call-1");

1455+

expect(speakParams.message).toBe("Say exactly: hello after joining.");

14501456

expect(voiceCallMocks.speakMeetViaVoiceCallGateway).toHaveBeenCalledWith({

1451-

config: expect.objectContaining({ defaultTransport: "twilio" }),

1457+

config: speakParams.config,

14521458

callId: "call-1",

14531459

message: "Say exactly: hello after joining.",

14541460

});