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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
F
Fortinet All Blogs
腾讯CDC
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
WordPress大学
WordPress大学
雷峰网
雷峰网
小众软件
小众软件
D
DataBreaches.Net
V
Visual Studio Blog
博客园 - Franky
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
博客园 - 聂微东
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
云风的 BLOG
云风的 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
fix(voice-call): summarize restored call verification log...
steipete · 2026-05-04 · via Recent Commits to openclaw:main

@@ -37,6 +37,14 @@ function markRestoredCallSkipped(call: CallRecord, endReason: "completed" | "tim

3737

call.state = endReason;

3838

}

393940+

function incrementRestoreStatusCount(

41+

counts: Map<string, number>,

42+

status: string | undefined,

43+

): void {

44+

const key = normalizeOptionalString(status) ?? "terminal";

45+

counts.set(key, (counts.get(key) ?? 0) + 1);

46+

}

47+4048

function resolveDefaultStoreBase(config: VoiceCallConfig, storePath?: string): string {

4149

const rawOverride = storePath?.trim() || config.store?.trim();

4250

if (rawOverride) {

@@ -110,6 +118,7 @@ export class CallManager {

110118

}

111119112120

// Restart max-duration timers for restored calls that are past the answered state

121+

let skippedAlreadyElapsedTimers = 0;

113122

for (const [callId, call] of verified) {

114123

if (call.answeredAt && !TerminalStates.has(call.state)) {

115124

const elapsed = Date.now() - call.answeredAt;

@@ -120,9 +129,7 @@ export class CallManager {

120129

if (call.providerCallId) {

121130

this.providerCallIdMap.delete(call.providerCallId);

122131

}

123-

console.log(

124-

`[voice-call] Skipping restored call ${callId} (max duration already elapsed)`,

125-

);

132+

skippedAlreadyElapsedTimers += 1;

126133

continue;

127134

}

128135

startMaxDurationTimer({

@@ -136,6 +143,11 @@ export class CallManager {

136143

console.log(`[voice-call] Restarted max-duration timer for restored call ${callId}`);

137144

}

138145

}

146+

if (skippedAlreadyElapsedTimers > 0) {

147+

console.log(

148+

`[voice-call] Skipped ${skippedAlreadyElapsedTimers} restored call(s) whose max-duration timer already elapsed`,

149+

);

150+

}

139151140152

if (verified.size > 0) {

141153

console.log(`[voice-call] Restored ${verified.size} active call(s) from store`);

@@ -159,19 +171,23 @@ export class CallManager {

159171

const now = Date.now();

160172

const verified = new Map<CallId, CallRecord>();

161173

const verifyTasks: Array<{ callId: CallId; call: CallRecord; promise: Promise<void> }> = [];

174+

let skippedNoProviderCallId = 0;

175+

let skippedOlderThanMaxDuration = 0;

176+

const skippedTerminalStatuses = new Map<string, number>();

177+

let keptVerifiedActive = 0;

178+

let keptUnknownProviderStatus = 0;

179+

let keptVerificationFailures = 0;

162180163181

for (const [callId, call] of candidates) {

164182

// Skip calls without a provider ID — can't verify

165183

if (!call.providerCallId) {

166-

console.log(`[voice-call] Skipping restored call ${callId} (no providerCallId)`);

184+

skippedNoProviderCallId += 1;

167185

continue;

168186

}

169187170188

// Skip calls older than maxDurationSeconds (time-based fallback)

171189

if (now - call.startedAt > maxAgeMs) {

172-

console.log(

173-

`[voice-call] Skipping restored call ${callId} (older than maxDurationSeconds)`,

174-

);

190+

skippedOlderThanMaxDuration += 1;

175191

markRestoredCallSkipped(call, "timeout");

176192

persistCallRecord(this.storePath, call);

177193

await provider

@@ -196,32 +212,57 @@ export class CallManager {

196212

.getCallStatus({ providerCallId: call.providerCallId })

197213

.then((result) => {

198214

if (result.isTerminal) {

199-

console.log(

200-

`[voice-call] Skipping restored call ${callId} (provider status: ${result.status})`,

201-

);

215+

incrementRestoreStatusCount(skippedTerminalStatuses, result.status);

202216

markRestoredCallSkipped(call, "completed");

203217

persistCallRecord(this.storePath, call);

204218

} else if (result.isUnknown) {

205-

console.log(

206-

`[voice-call] Keeping restored call ${callId} (provider status unknown, relying on timer)`,

207-

);

219+

keptUnknownProviderStatus += 1;

208220

verified.set(callId, call);

209221

} else {

222+

keptVerifiedActive += 1;

210223

verified.set(callId, call);

211224

}

212225

})

213226

.catch(() => {

214227

// Verification failed entirely — keep the call, rely on timer

215-

console.log(

216-

`[voice-call] Keeping restored call ${callId} (verification failed, relying on timer)`,

217-

);

228+

keptVerificationFailures += 1;

218229

verified.set(callId, call);

219230

}),

220231

};

221232

verifyTasks.push(task);

222233

}

223234224235

await Promise.allSettled(verifyTasks.map((t) => t.promise));

236+

if (skippedNoProviderCallId > 0) {

237+

console.log(

238+

`[voice-call] Skipped ${skippedNoProviderCallId} restored call(s) with no providerCallId`,

239+

);

240+

}

241+

if (skippedOlderThanMaxDuration > 0) {

242+

console.log(

243+

`[voice-call] Skipped ${skippedOlderThanMaxDuration} restored call(s) older than maxDurationSeconds`,

244+

);

245+

}

246+

for (const [status, count] of [...skippedTerminalStatuses].toSorted(([a], [b]) =>

247+

a.localeCompare(b),

248+

)) {

249+

console.log(`[voice-call] Skipped ${count} restored call(s) with provider status: ${status}`);

250+

}

251+

if (keptVerifiedActive > 0) {

252+

console.log(

253+

`[voice-call] Kept ${keptVerifiedActive} restored call(s) confirmed active by provider`,

254+

);

255+

}

256+

if (keptUnknownProviderStatus > 0) {

257+

console.log(

258+

`[voice-call] Kept ${keptUnknownProviderStatus} restored call(s) with unknown provider status (relying on timer)`,

259+

);

260+

}

261+

if (keptVerificationFailures > 0) {

262+

console.log(

263+

`[voice-call] Kept ${keptVerificationFailures} restored call(s) after verification failure (relying on timer)`,

264+

);

265+

}

225266

return verified;

226267

}

227268