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

推荐订阅源

Forbes - Security
Forbes - Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
F
Fortinet All Blogs
B
Blog
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
Y
Y Combinator Blog
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
U
Unit 42
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Register - Security
The Register - Security
Recorded Future
Recorded Future
C
Check Point Blog
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
F
Full Disclosure
小众软件
小众软件
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
爱范儿
爱范儿
P
Proofpoint News Feed
罗磊的独立博客
量子位
D
Docker
博客园_首页
D
DataBreaches.Net
Project Zero
Project Zero
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - Franky
Security Latest
Security Latest
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
Netflix TechBlog - Medium
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
大猫的无限游戏
大猫的无限游戏

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: tighten google realtime assertions · openclaw/openclaw@97f9104
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -57,6 +57,12 @@ function lastConnectParams(): MockGoogleLiveConnectParams {

5757

return params;

5858

}

595960+

function sentAudio(index = 0): { data?: unknown; mimeType?: unknown } {

61+

const audio = session.sendRealtimeInput.mock.calls[index]?.[0]?.audio;

62+

expect(audio).toBeDefined();

63+

return audio as { data?: unknown; mimeType?: unknown };

64+

}

65+6066

describe("buildGoogleRealtimeVoiceProvider", () => {

6167

beforeEach(() => {

6268

envSnapshot = Object.fromEntries(ENV_KEYS.map((key) => [key, process.env[key]]));

@@ -204,61 +210,68 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

204210

await bridge.connect();

205211206212

expect(connectMock).toHaveBeenCalledTimes(1);

207-

expect(lastConnectParams()).toMatchObject({

208-

model: "gemini-live-2.5-flash-preview",

209-

config: {

210-

responseModalities: ["AUDIO"],

211-

temperature: 0.3,

212-

systemInstruction: "Speak briefly.",

213-

speechConfig: {

214-

voiceConfig: {

215-

prebuiltVoiceConfig: {

216-

voiceName: "Kore",

217-

},

218-

},

219-

},

220-

outputAudioTranscription: {},

221-

realtimeInputConfig: {

222-

activityHandling: "NO_INTERRUPTION",

223-

automaticActivityDetection: {

224-

startOfSpeechSensitivity: "START_SENSITIVITY_LOW",

225-

endOfSpeechSensitivity: "END_SENSITIVITY_LOW",

226-

},

227-

turnCoverage: "TURN_INCLUDES_ONLY_ACTIVITY",

228-

},

229-

sessionResumption: {},

230-

contextWindowCompression: { slidingWindow: {} },

231-

tools: [

232-

{

233-

functionDeclarations: [

234-

{

235-

name: "lookup",

236-

description: "Look something up",

237-

parametersJsonSchema: {

238-

type: "object",

239-

properties: {

240-

query: { type: "string" },

241-

},

242-

required: ["query"],

243-

},

244-

},

245-

{

246-

name: "openclaw_agent_consult",

247-

description: "Ask OpenClaw",

248-

parametersJsonSchema: {

249-

type: "object",

250-

properties: {

251-

question: { type: "string" },

252-

},

253-

required: ["question"],

254-

},

255-

behavior: "NON_BLOCKING",

256-

},

257-

],

258-

},

259-

],

213+

const params = lastConnectParams();

214+

expect(params.model).toBe("gemini-live-2.5-flash-preview");

215+

const config = params.config as {

216+

contextWindowCompression?: unknown;

217+

outputAudioTranscription?: unknown;

218+

realtimeInputConfig?: {

219+

activityHandling?: string;

220+

automaticActivityDetection?: {

221+

endOfSpeechSensitivity?: string;

222+

startOfSpeechSensitivity?: string;

223+

};

224+

turnCoverage?: string;

225+

};

226+

responseModalities?: string[];

227+

sessionResumption?: unknown;

228+

speechConfig?: { voiceConfig?: { prebuiltVoiceConfig?: { voiceName?: string } } };

229+

systemInstruction?: string;

230+

temperature?: number;

231+

tools?: Array<{

232+

functionDeclarations?: Array<{

233+

behavior?: string;

234+

description?: string;

235+

name?: string;

236+

parametersJsonSchema?: unknown;

237+

}>;

238+

}>;

239+

};

240+

expect(config.responseModalities).toEqual(["AUDIO"]);

241+

expect(config.temperature).toBe(0.3);

242+

expect(config.systemInstruction).toBe("Speak briefly.");

243+

expect(config.speechConfig?.voiceConfig?.prebuiltVoiceConfig?.voiceName).toBe("Kore");

244+

expect(config.outputAudioTranscription).toEqual({});

245+

expect(config.realtimeInputConfig?.activityHandling).toBe("NO_INTERRUPTION");

246+

expect(config.realtimeInputConfig?.automaticActivityDetection?.startOfSpeechSensitivity).toBe(

247+

"START_SENSITIVITY_LOW",

248+

);

249+

expect(config.realtimeInputConfig?.automaticActivityDetection?.endOfSpeechSensitivity).toBe(

250+

"END_SENSITIVITY_LOW",

251+

);

252+

expect(config.realtimeInputConfig?.turnCoverage).toBe("TURN_INCLUDES_ONLY_ACTIVITY");

253+

expect(config.sessionResumption).toEqual({});

254+

expect(config.contextWindowCompression).toEqual({ slidingWindow: {} });

255+

const declarations = config.tools?.[0]?.functionDeclarations ?? [];

256+

expect(declarations[0]?.name).toBe("lookup");

257+

expect(declarations[0]?.description).toBe("Look something up");

258+

expect(declarations[0]?.parametersJsonSchema).toEqual({

259+

type: "object",

260+

properties: {

261+

query: { type: "string" },

260262

},

263+

required: ["query"],

264+

});

265+

expect(declarations[1]?.name).toBe("openclaw_agent_consult");

266+

expect(declarations[1]?.description).toBe("Ask OpenClaw");

267+

expect(declarations[1]?.parametersJsonSchema).toEqual({

268+

type: "object",

269+

properties: {

270+

question: { type: "string" },

271+

},

272+

required: ["question"],

261273

});

274+

expect(declarations[1]?.behavior).toBe("NON_BLOCKING");

262275

});

263276264277

it("omits zero temperature for native audio responses", async () => {

@@ -305,58 +318,67 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

305318

});

306319307320

expect(createTokenMock).toHaveBeenCalledTimes(1);

308-

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

309-

config: {

310-

uses: 1,

311-

liveConnectConstraints: {

312-

model: "gemini-live-2.5-flash-preview",

313-

config: {

314-

responseModalities: ["AUDIO"],

315-

temperature: 0.4,

316-

systemInstruction: "Speak briefly.",

317-

speechConfig: {

318-

voiceConfig: {

319-

prebuiltVoiceConfig: {

320-

voiceName: "Puck",

321-

},

322-

},

323-

},

324-

tools: [

325-

{

326-

functionDeclarations: [

327-

{

328-

name: "openclaw_agent_consult",

329-

behavior: "NON_BLOCKING",

330-

},

331-

],

332-

},

333-

],

334-

},

335-

},

336-

},

337-

});

338-

expect(session).toMatchObject({

339-

provider: "google",

340-

transport: "provider-websocket",

341-

protocol: "google-live-bidi",

342-

clientSecret: "auth_tokens/browser-session",

343-

websocketUrl:

344-

"wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContentConstrained",

321+

const tokenConfig = createTokenMock.mock.calls[0]?.[0] as {

322+

config?: {

323+

liveConnectConstraints?: {

324+

config?: {

325+

responseModalities?: string[];

326+

speechConfig?: { voiceConfig?: { prebuiltVoiceConfig?: { voiceName?: string } } };

327+

systemInstruction?: string;

328+

temperature?: number;

329+

tools?: Array<{ functionDeclarations?: Array<{ behavior?: string; name?: string }> }>;

330+

};

331+

model?: string;

332+

};

333+

uses?: number;

334+

};

335+

};

336+

const liveConstraints = tokenConfig.config?.liveConnectConstraints;

337+

expect(tokenConfig.config?.uses).toBe(1);

338+

expect(liveConstraints?.model).toBe("gemini-live-2.5-flash-preview");

339+

expect(liveConstraints?.config?.responseModalities).toEqual(["AUDIO"]);

340+

expect(liveConstraints?.config?.temperature).toBe(0.4);

341+

expect(liveConstraints?.config?.systemInstruction).toBe("Speak briefly.");

342+

expect(liveConstraints?.config?.speechConfig?.voiceConfig?.prebuiltVoiceConfig?.voiceName).toBe(

343+

"Puck",

344+

);

345+

expect(liveConstraints?.config?.tools?.[0]?.functionDeclarations?.[0]?.name).toBe(

346+

"openclaw_agent_consult",

347+

);

348+

expect(liveConstraints?.config?.tools?.[0]?.functionDeclarations?.[0]?.behavior).toBe(

349+

"NON_BLOCKING",

350+

);

351+

expect(session?.provider).toBe("google");

352+

expect(session?.transport).toBe("provider-websocket");

353+

const websocketSession = session as {

345354

audio: {

346-

inputEncoding: "pcm16",

347-

inputSampleRateHz: 16000,

348-

outputEncoding: "pcm16",

349-

outputSampleRateHz: 24000,

350-

},

355+

inputEncoding: string;

356+

inputSampleRateHz: number;

357+

outputEncoding: string;

358+

outputSampleRateHz: number;

359+

};

360+

clientSecret: string;

351361

initialMessage: {

352-

setup: {

353-

model: "models/gemini-live-2.5-flash-preview",

354-

generationConfig: {

355-

responseModalities: ["AUDIO"],

356-

},

357-

},

358-

},

359-

});

362+

setup: { generationConfig: { responseModalities: string[] }; model: string };

363+

};

364+

protocol: string;

365+

websocketUrl: string;

366+

};

367+

expect(websocketSession.protocol).toBe("google-live-bidi");

368+

expect(websocketSession.clientSecret).toBe("auth_tokens/browser-session");

369+

expect(websocketSession.websocketUrl).toBe(

370+

"wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContentConstrained",

371+

);

372+

expect(websocketSession.audio.inputEncoding).toBe("pcm16");

373+

expect(websocketSession.audio.inputSampleRateHz).toBe(16000);

374+

expect(websocketSession.audio.outputEncoding).toBe("pcm16");

375+

expect(websocketSession.audio.outputSampleRateHz).toBe(24000);

376+

expect(websocketSession.initialMessage.setup.model).toBe(

377+

"models/gemini-live-2.5-flash-preview",

378+

);

379+

expect(websocketSession.initialMessage.setup.generationConfig.responseModalities).toEqual([

380+

"AUDIO",

381+

]);

360382

});

361383362384

it("can opt out of Google Live session resumption and context compression", async () => {

@@ -421,11 +443,8 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

421443

});

422444423445

expect(onClose).not.toHaveBeenCalled();

424-

expect(onError).toHaveBeenCalledWith(

425-

expect.objectContaining({

426-

message: expect.stringContaining("reconnecting 1/3"),

427-

}),

428-

);

446+

const error = onError.mock.calls[0]?.[0] as { message?: string };

447+

expect(error.message).toContain("reconnecting 1/3");

429448430449

await vi.advanceTimersByTimeAsync(250);

431450

@@ -457,10 +476,9 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

457476458477

expect(onReady).toHaveBeenCalledTimes(1);

459478

expect(session.sendRealtimeInput).toHaveBeenCalledTimes(1);

460-

expect(session.sendRealtimeInput.mock.calls[0]?.[0].audio).toMatchObject({

461-

data: expect.any(String),

462-

mimeType: "audio/pcm;rate=16000",

463-

});

479+

const audio = sentAudio();

480+

expect(typeof audio.data).toBe("string");

481+

expect(audio.mimeType).toBe("audio/pcm;rate=16000");

464482

});

465483466484

it("marks the Google audio stream complete after sustained telephony silence", async () => {

@@ -509,13 +527,10 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

509527510528

bridge.sendAudio(Buffer.from([0xff, 0x00]));

511529512-

expect(session.sendRealtimeInput).toHaveBeenCalledWith({

513-

audio: {

514-

data: expect.any(String),

515-

mimeType: "audio/pcm;rate=16000",

516-

},

517-

});

518-

const sent = Buffer.from(session.sendRealtimeInput.mock.calls[0]?.[0].audio.data, "base64");

530+

const audio = sentAudio();

531+

expect(typeof audio.data).toBe("string");

532+

expect(audio.mimeType).toBe("audio/pcm;rate=16000");

533+

const sent = Buffer.from(audio.data as string, "base64");

519534

expect(Array.from({ length: sent.length / 2 }, (_, i) => sent.readInt16LE(i * 2))).toEqual([

520535

0, -16062, -32124, -32124,

521536

]);

@@ -536,13 +551,10 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

536551537552

bridge.sendAudio(Buffer.alloc(480));

538553539-

expect(session.sendRealtimeInput).toHaveBeenCalledWith({

540-

audio: {

541-

data: expect.any(String),

542-

mimeType: "audio/pcm;rate=16000",

543-

},

544-

});

545-

const sent = Buffer.from(session.sendRealtimeInput.mock.calls[0]?.[0].audio.data, "base64");

554+

const audio = sentAudio();

555+

expect(typeof audio.data).toBe("string");

556+

expect(audio.mimeType).toBe("audio/pcm;rate=16000");

557+

const sent = Buffer.from(audio.data as string, "base64");

546558

expect(sent).toHaveLength(320);

547559

});

548560

@@ -559,13 +571,10 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

559571560572

await bridge.connect();

561573562-

expect(lastConnectParams().config).toMatchObject({

563-

realtimeInputConfig: {

564-

automaticActivityDetection: {

565-

disabled: true,

566-

},

567-

},

568-

});

574+

const config = lastConnectParams().config as {

575+

realtimeInputConfig?: { automaticActivityDetection?: { disabled?: boolean } };

576+

};

577+

expect(config.realtimeInputConfig?.automaticActivityDetection?.disabled).toBe(true);

569578

});

570579571580

it("sends text prompts as ordered client turns", async () => {

@@ -777,11 +786,9 @@ describe("buildGoogleRealtimeVoiceProvider", () => {

777786

bridge.submitToolResult("missing-call", { result: "ok" });

778787779788

expect(session.sendToolResponse).not.toHaveBeenCalled();

780-

expect(onError).toHaveBeenCalledWith(

781-

expect.objectContaining({

782-

message:

783-

"Google Live function response is missing a matching function call for missing-call",

784-

}),

789+

const error = onError.mock.calls[0]?.[0] as { message?: string };

790+

expect(error.message).toBe(

791+

"Google Live function response is missing a matching function call for missing-call",

785792

);

786793

});

787794