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

推荐订阅源

Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
D
DataBreaches.Net
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
小众软件
小众软件
美团技术团队
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
D
Docker
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Hackread – Cybersecurity News, Data Breaches, AI and More
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
B
Blog
雷峰网
雷峰网
The Cloudflare 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 node assertions · openclaw/open...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -2843,18 +2843,14 @@ describe("google-meet plugin", () => {

28432843

respond,

28442844

});

284528452846-

expect(respond.mock.calls[0]?.[1]).toMatchObject({

2847-

spoken: false,

2848-

session: {

2849-

chrome: {

2850-

health: {

2851-

micMuted: true,

2852-

speechReady: false,

2853-

speechBlockedReason: "meet-microphone-muted",

2854-

},

2855-

},

2856-

},

2857-

});

2846+

const payload = requireRecord(respond.mock.calls[0]?.[1], "join response payload");

2847+

expect(payload.spoken).toBe(false);

2848+

const session = requireRecord(payload.session, "join session");

2849+

const chrome = requireRecord(session.chrome, "join chrome session");

2850+

const health = requireRecord(chrome.health, "join chrome health");

2851+

expect(health.micMuted).toBe(true);

2852+

expect(health.speechReady).toBe(false);

2853+

expect(health.speechBlockedReason).toBe("meet-microphone-muted");

28582854

} finally {

28592855

Object.defineProperty(process, "platform", { value: originalPlatform });

28602856

}

@@ -2896,18 +2892,14 @@ describe("google-meet plugin", () => {

28962892

await vi.advanceTimersByTimeAsync(2_000);

28972893

await run;

289828942899-

expect(respond.mock.calls[0]?.[1]).toMatchObject({

2900-

spoken: false,

2901-

session: {

2902-

chrome: {

2903-

health: {

2904-

micMuted: true,

2905-

speechReady: false,

2906-

speechBlockedReason: "meet-microphone-muted",

2907-

},

2908-

},

2909-

},

2910-

});

2895+

const payload = requireRecord(respond.mock.calls[0]?.[1], "join response payload");

2896+

expect(payload.spoken).toBe(false);

2897+

const session = requireRecord(payload.session, "join session");

2898+

const chrome = requireRecord(session.chrome, "join chrome session");

2899+

const health = requireRecord(chrome.health, "join chrome health");

2900+

expect(health.micMuted).toBe(true);

2901+

expect(health.speechReady).toBe(false);

2902+

expect(health.speechBlockedReason).toBe("meet-microphone-muted");

29112903

expect(inspectCount).toBeGreaterThanOrEqual(2);

29122904

} finally {

29132905

vi.useRealTimers();

@@ -2941,48 +2933,66 @@ describe("google-meet plugin", () => {

2941293329422934

expect(respond.mock.calls[0]?.[0]).toBe(true);

29432935

expect(nodesList.mock.calls[0]).toStrictEqual([]);

2944-

expect(nodesInvoke).toHaveBeenCalledWith(

2945-

expect.objectContaining({

2946-

nodeId: "node-1",

2947-

command: "googlemeet.chrome",

2948-

params: expect.objectContaining({

2949-

action: "stopByUrl",

2950-

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

2951-

mode: "transcribe",

2952-

}),

2953-

}),

2954-

);

2955-

expect(nodesInvoke).toHaveBeenCalledWith(

2956-

expect.objectContaining({

2957-

nodeId: "node-1",

2958-

command: "browser.proxy",

2959-

params: expect.objectContaining({

2960-

path: "/tabs/open",

2961-

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

2962-

}),

2963-

}),

2964-

);

2965-

expect(nodesInvoke).toHaveBeenCalledWith(

2966-

expect.objectContaining({

2967-

nodeId: "node-1",

2968-

command: "googlemeet.chrome",

2969-

params: expect.objectContaining({

2970-

action: "start",

2971-

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

2972-

mode: "transcribe",

2973-

launch: false,

2974-

}),

2975-

}),

2976-

);

2977-

expect(respond.mock.calls[0]?.[1]).toMatchObject({

2978-

session: {

2979-

transport: "chrome-node",

2980-

chrome: {

2981-

nodeId: "node-1",

2982-

launched: true,

2983-

},

2984-

},

2936+

const stopCall = nodesInvoke.mock.calls.find(([rawCall]) => {

2937+

const call = requireRecord(rawCall, "node invoke");

2938+

const params = requireRecord(call.params, "node invoke params");

2939+

return call.command === "googlemeet.chrome" && params.action === "stopByUrl";

2940+

});

2941+

if (!stopCall) {

2942+

throw new Error("Expected googlemeet.chrome stopByUrl node invoke");

2943+

}

2944+

expect(requireRecord(stopCall[0], "stop node invoke").nodeId).toBe("node-1");

2945+

expect(requireRecord(stopCall[0], "stop node invoke").command).toBe("googlemeet.chrome");

2946+

expect(

2947+

requireRecord(requireRecord(stopCall[0], "stop node invoke").params, "stop params"),

2948+

).toEqual({

2949+

action: "stopByUrl",

2950+

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

2951+

mode: "transcribe",

2952+

});

2953+

const openCall = nodesInvoke.mock.calls.find(([rawCall]) => {

2954+

const call = requireRecord(rawCall, "node invoke");

2955+

const params = requireRecord(call.params, "node invoke params");

2956+

return call.command === "browser.proxy" && params.path === "/tabs/open";

2957+

});

2958+

if (!openCall) {

2959+

throw new Error("Expected browser.proxy /tabs/open node invoke");

2960+

}

2961+

expect(requireRecord(openCall[0], "open node invoke").nodeId).toBe("node-1");

2962+

expect(requireRecord(openCall[0], "open node invoke").command).toBe("browser.proxy");

2963+

expect(

2964+

requireRecord(requireRecord(openCall[0], "open node invoke").params, "open params"),

2965+

).toEqual({

2966+

method: "POST",

2967+

path: "/tabs/open",

2968+

timeoutMs: 30000,

2969+

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

29852970

});

2971+

const startCall = nodesInvoke.mock.calls.find(([rawCall]) => {

2972+

const call = requireRecord(rawCall, "node invoke");

2973+

const params = requireRecord(call.params, "node invoke params");

2974+

return call.command === "googlemeet.chrome" && params.action === "start";

2975+

});

2976+

if (!startCall) {

2977+

throw new Error("Expected googlemeet.chrome start node invoke");

2978+

}

2979+

expect(requireRecord(startCall[0], "start node invoke").nodeId).toBe("node-1");

2980+

expect(requireRecord(startCall[0], "start node invoke").command).toBe("googlemeet.chrome");

2981+

const startParams = requireRecord(

2982+

requireRecord(startCall[0], "start node invoke").params,

2983+

"start params",

2984+

);

2985+

expect(startParams.action).toBe("start");

2986+

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

2987+

expect(startParams.mode).toBe("transcribe");

2988+

expect(startParams.launch).toBe(false);

2989+

expect(startParams.joinTimeoutMs).toBe(30000);

2990+

const payload = requireRecord(respond.mock.calls[0]?.[1], "join response payload");

2991+

const session = requireRecord(payload.session, "join session");

2992+

expect(session.transport).toBe("chrome-node");

2993+

const chrome = requireRecord(session.chrome, "join chrome session");

2994+

expect(chrome.nodeId).toBe("node-1");

2995+

expect(chrome.launched).toBe(true);

29862996

});

2987299729882998

it("reuses an active Meet session for the same URL and transport", async () => {

@@ -3021,12 +3031,13 @@ describe("google-meet plugin", () => {

30213031

expect(

30223032

nodesInvoke.mock.calls.filter(([call]) => call.command === "googlemeet.chrome"),

30233033

).toHaveLength(2);

3024-

expect(second.mock.calls[0]?.[1]).toMatchObject({

3025-

session: {

3026-

chrome: { health: { inCall: true, micMuted: false } },

3027-

notes: expect.arrayContaining(["Reused existing active Meet session."]),

3028-

},

3029-

});

3034+

const payload = requireRecord(second.mock.calls[0]?.[1], "second join response payload");

3035+

const session = requireRecord(payload.session, "second join session");

3036+

const chrome = requireRecord(session.chrome, "second join chrome session");

3037+

const health = requireRecord(chrome.health, "second join chrome health");

3038+

expect(health.inCall).toBe(true);

3039+

expect(health.micMuted).toBe(false);

3040+

expect(session.notes).toContain("Reused existing active Meet session.");

30303041

});

3031304230323043

it("reuses active Meet sessions across URL query differences", async () => {

@@ -3065,11 +3076,9 @@ describe("google-meet plugin", () => {

30653076

expect(

30663077

nodesInvoke.mock.calls.filter(([call]) => call.command === "googlemeet.chrome"),

30673078

).toHaveLength(2);

3068-

expect(second.mock.calls[0]?.[1]).toMatchObject({

3069-

session: {

3070-

notes: expect.arrayContaining(["Reused existing active Meet session."]),

3071-

},

3072-

});

3079+

const payload = requireRecord(second.mock.calls[0]?.[1], "second join response payload");

3080+

const session = requireRecord(payload.session, "second join session");

3081+

expect(session.notes).toContain("Reused existing active Meet session.");

30733082

});

3074308330753084

it("reuses existing Meet browser tabs across URL query differences", async () => {