From a5c94b8e7b9237a745141a5da62972ba1131788a Mon Sep 17 00:00:00 2001 From: JayMishra-github Date: Mon, 16 Feb 2026 10:43:20 -0800 Subject: [PATCH] fix: log error on reaper endCall failure instead of swallowing Address review feedback: log a warning when the stale call reaper fails to end a call instead of silently discarding the error. Co-Authored-By: Claude Opus 4.6 --- extensions/voice-call/src/webhook.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/voice-call/src/webhook.ts b/extensions/voice-call/src/webhook.ts index 5f0b48f55bb..41c8b3e2254 100644 --- a/extensions/voice-call/src/webhook.ts +++ b/extensions/voice-call/src/webhook.ts @@ -259,7 +259,9 @@ export class VoiceCallWebhookServer { console.log( `[voice-call] Reaping stale call ${call.callId} (age: ${Math.round(age / 1000)}s, state: ${call.state})`, ); - void this.manager.endCall(call.callId).catch(() => {}); + void this.manager.endCall(call.callId).catch((err) => { + console.warn(`[voice-call] Reaper failed to end call ${call.callId}:`, err); + }); } } }, CHECK_INTERVAL_MS);