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

推荐订阅源

WordPress大学
WordPress大学
Jina AI
Jina AI
小众软件
小众软件
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
D
DataBreaches.Net
腾讯CDC
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
U
Unit 42
博客园 - 司徒正美
博客园 - 聂微东

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
fix: stabilize google meet twilio joins · openclaw/opencl...
steipete · 2026-05-06 · via Recent Commits to openclaw:main

@@ -19,7 +19,11 @@ import {

1919

recoverCurrentMeetTab,

2020

recoverCurrentMeetTabOnNode,

2121

} from "./transports/chrome.js";

22-

import { buildMeetDtmfSequence, normalizeDialInNumber } from "./transports/twilio.js";

22+

import {

23+

buildMeetDtmfSequence,

24+

normalizeDialInNumber,

25+

prefixDtmfWait,

26+

} from "./transports/twilio.js";

2327

import type {

2428

GoogleMeetChromeHealth,

2529

GoogleMeetJoinRequest,

@@ -28,6 +32,8 @@ import type {

2832

} from "./transports/types.js";

2933

import {

3034

endMeetVoiceCallGatewayCall,

35+

getMeetVoiceCallGatewayCall,

36+

isVoiceCallMissingError,

3137

joinMeetViaVoiceCallGateway,

3238

speakMeetViaVoiceCallGateway,

3339

} from "./voice-call-gateway.js";

@@ -133,6 +139,10 @@ function isManagedChromeBrowserSession(session: GoogleMeetSession): boolean {

133139

);

134140

}

135141142+

function noteSession(session: GoogleMeetSession, note: string): void {

143+

session.notes = [...session.notes.filter((item) => item !== note), note];

144+

}

145+136146

function evaluateSpeechReadiness(session: GoogleMeetSession): {

137147

ready: boolean;

138148

reason?: NonNullable<GoogleMeetChromeHealth["speechBlockedReason"]>;

@@ -365,20 +375,23 @@ export class GoogleMeetRuntime {

365375

const url = normalizeMeetUrl(request.url);

366376

const transport = resolveTransport(request.transport, this.params.config);

367377

const mode = resolveMode(request.mode, this.params.config);

368-

const reusable = this.list().find(

378+

let reusable = this.list().find(

369379

(session) =>

370380

session.state === "active" &&

371381

isSameMeetUrlForReuse(session.url, url) &&

372382

session.transport === transport &&

373383

session.mode === mode,

374384

);

385+

if (reusable?.transport === "twilio") {

386+

await this.#refreshTwilioVoiceCallStatus(reusable);

387+

if (reusable.state !== "active") {

388+

reusable = undefined;

389+

}

390+

}

375391

const speechInstructions = request.message ?? this.params.config.realtime.introMessage;

376392

if (reusable) {

377393

await this.#refreshBrowserHealthForChromeSession(reusable);

378-

reusable.notes = [

379-

...reusable.notes.filter((note) => note !== "Reused existing active Meet session."),

380-

"Reused existing active Meet session.",

381-

];

394+

noteSession(reusable, "Reused existing active Meet session.");

382395

reusable.updatedAt = nowIso();

383396

const spoken =

384397

isGoogleMeetTalkBackMode(mode) && speechInstructions

@@ -472,10 +485,14 @@ export class GoogleMeetRuntime {

472485

"Twilio transport requires a Meet dial-in phone number. Google Meet URLs do not include dial-in details; pass dialInNumber with optional pin/dtmfSequence, configure twilio.defaultDialInNumber, or use chrome/chrome-node transport.",

473486

);

474487

}

475-

const dtmfSequence = buildMeetDtmfSequence({

488+

const rawDtmfSequence = buildMeetDtmfSequence({

476489

pin: request.pin ?? this.params.config.twilio.defaultPin,

477490

dtmfSequence: request.dtmfSequence ?? this.params.config.twilio.defaultDtmfSequence,

478491

});

492+

const dtmfSequence =

493+

request.dtmfSequence || this.params.config.twilio.defaultDtmfSequence

494+

? rawDtmfSequence

495+

: prefixDtmfWait(rawDtmfSequence, this.params.config.voiceCall.dtmfDelayMs);

479496

const voiceCallResult = this.params.config.voiceCall.enabled

480497

? await joinMeetViaVoiceCallGateway({

481498

config: this.params.config,

@@ -543,7 +560,12 @@ export class GoogleMeetRuntime {

543560

this.#sessionStops.delete(sessionId);

544561

this.#sessionSpeakers.delete(sessionId);

545562

this.#sessionHealth.delete(sessionId);

546-

await stop();

563+

try {

564+

await stop();

565+

} finally {

566+

session.state = "ended";

567+

session.updatedAt = nowIso();

568+

}

547569

}

548570

session.state = "ended";

549571

session.updatedAt = nowIso();

@@ -559,15 +581,23 @@ export class GoogleMeetRuntime {

559581

return { found: false, spoken: false };

560582

}

561583

if (session.transport === "twilio" && session.twilio?.voiceCallId) {

562-

await speakMeetViaVoiceCallGateway({

563-

config: this.params.config,

564-

callId: session.twilio.voiceCallId,

565-

message:

566-

instructions ||

567-

this.params.config.voiceCall.introMessage ||

568-

this.params.config.realtime.introMessage ||

569-

"",

570-

});

584+

try {

585+

await speakMeetViaVoiceCallGateway({

586+

config: this.params.config,

587+

callId: session.twilio.voiceCallId,

588+

message:

589+

instructions ||

590+

this.params.config.voiceCall.introMessage ||

591+

this.params.config.realtime.introMessage ||

592+

"",

593+

});

594+

} catch (err) {

595+

if (!isVoiceCallMissingError(err)) {

596+

throw err;

597+

}

598+

this.#markTwilioSessionEnded(session, "Voice Call is no longer active.");

599+

return { found: true, spoken: false, session };

600+

}

571601

session.twilio.introSent = true;

572602

session.updatedAt = nowIso();

573603

return { found: true, spoken: true, session };

@@ -801,6 +831,41 @@ export class GoogleMeetRuntime {

801831

await this.#refreshBrowserHealthForChromeSession(session, { force: true, readOnly: true });

802832

return;

803833

}

834+

if (session.transport === "twilio") {

835+

await this.#refreshTwilioVoiceCallStatus(session);

836+

return;

837+

}

838+

this.#refreshSpeechReadiness(session);

839+

}

840+841+

#markTwilioSessionEnded(session: GoogleMeetSession, reason: string) {

842+

session.state = "ended";

843+

session.updatedAt = nowIso();

844+

this.#sessionStops.delete(session.id);

845+

this.#sessionSpeakers.delete(session.id);

846+

this.#sessionHealth.delete(session.id);

847+

noteSession(session, reason);

848+

}

849+850+

async #refreshTwilioVoiceCallStatus(session: GoogleMeetSession) {

851+

const callId = session.twilio?.voiceCallId;

852+

if (!callId || session.state !== "active") {

853+

this.#refreshSpeechReadiness(session);

854+

return;

855+

}

856+

try {

857+

const status = await getMeetVoiceCallGatewayCall({

858+

config: this.params.config,

859+

callId,

860+

});

861+

if (status.found === false) {

862+

this.#markTwilioSessionEnded(session, "Voice Call is no longer active.");

863+

}

864+

} catch (error) {

865+

this.params.logger.debug?.(

866+

`[google-meet] voice-call status refresh ignored: ${formatErrorMessage(error)}`,

867+

);

868+

}

804869

this.#refreshSpeechReadiness(session);

805870

}

806871