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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
L
LangChain Blog
Y
Y Combinator Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
V
Visual Studio Blog
小众软件
小众软件
月光博客
月光博客
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
美团技术团队
量子位

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(voice-call): end realtime completed calls · openclaw/...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -50,6 +50,7 @@ Docs: https://docs.openclaw.ai

5050
5151

### Fixes

5252
53+

- Voice Call: mark realtime calls completed when the realtime provider closes normally, so Twilio/OpenAI/Google realtime stop events do not leave active call records behind. Thanks @vincentkoc.

5354

- Exec approvals: treat POSIX `exec` as a command carrier for inline eval, shell-wrapper, and eval/source detection, so approval explanations and command-risk checks do not miss payloads hidden behind `exec`. Thanks @vincentkoc.

5455

- Google Meet: log the resolved audio provider model when starting Chrome and paired-node Meet talk-back bridges, so agent-mode joins show the STT model and bidi joins show the realtime voice model.

5556

- Diagnostics: handle missing session-tail files in cron recovery context without tripping extension test typecheck. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -337,6 +337,82 @@ describe("RealtimeCallHandler path routing", () => {

337337

}

338338

});

339339
340+

it("marks realtime calls ended when the provider closes normally", async () => {

341+

let callbacks:

342+

| {

343+

onClose?: (reason: "completed" | "error") => void;

344+

}

345+

| undefined;

346+

const processEvent = vi.fn();

347+

const createBridge = vi.fn(

348+

(request: Parameters<RealtimeVoiceProviderPlugin["createBridge"]>[0]) => {

349+

callbacks = request;

350+

return makeBridge({

351+

close: () => {

352+

callbacks?.onClose?.("completed");

353+

},

354+

});

355+

},

356+

);

357+

const getCallByProviderCallId = vi.fn(

358+

(): CallRecord => ({

359+

callId: "call-1",

360+

providerCallId: "CA-complete",

361+

provider: "twilio",

362+

direction: "inbound",

363+

state: "ringing",

364+

from: "+15550001234",

365+

to: "+15550009999",

366+

startedAt: Date.now(),

367+

transcript: [],

368+

processedEventIds: [],

369+

metadata: {},

370+

}),

371+

);

372+

const handler = makeHandler(undefined, {

373+

manager: {

374+

processEvent,

375+

getCallByProviderCallId,

376+

},

377+

realtimeProvider: makeRealtimeProvider(createBridge),

378+

});

379+

const server = await startRealtimeServer(handler);

380+
381+

try {

382+

const ws = await connectWs(server.url);

383+

try {

384+

ws.send(

385+

JSON.stringify({

386+

event: "start",

387+

start: { streamSid: "MZ-complete", callSid: "CA-complete" },

388+

}),

389+

);

390+

await vi.waitFor(() => {

391+

expect(createBridge).toHaveBeenCalled();

392+

});

393+
394+

ws.send(JSON.stringify({ event: "stop" }));

395+
396+

await vi.waitFor(() => {

397+

expect(processEvent).toHaveBeenCalledWith(

398+

expect.objectContaining({

399+

type: "call.ended",

400+

callId: "call-1",

401+

providerCallId: "CA-complete",

402+

reason: "completed",

403+

}),

404+

);

405+

});

406+

} finally {

407+

if (ws.readyState !== WebSocket.CLOSED && ws.readyState !== WebSocket.CLOSING) {

408+

ws.close();

409+

}

410+

}

411+

} finally {

412+

await server.close();

413+

}

414+

});

415+
340416

it("submits continuing responses only for realtime agent consult calls", async () => {

341417

let callbacks:

342418

| {

Original file line numberDiff line numberDiff line change

@@ -367,6 +367,7 @@ export class RealtimeCallHandler {

367367

this.activeBridgesByCallId.delete(callSid);

368368

this.partialUserTranscriptsByCallId.delete(callId);

369369

if (reason !== "error") {

370+

emitCallEnd("completed");

370371

return;

371372

}

372373

emitCallEnd("error");