From 95024d167147d3ee3a349f08cce34b17bccaff67 Mon Sep 17 00:00:00 2001 From: JayMishra-github Date: Mon, 16 Feb 2026 10:42:45 -0800 Subject: [PATCH] fix: log error on auto-end failure instead of swallowing Address review feedback: log a warning when endCall fails on stream disconnect 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 1e1bea2cbd..7d682924f1 100644 --- a/extensions/voice-call/src/webhook.ts +++ b/extensions/voice-call/src/webhook.ts @@ -188,7 +188,9 @@ export class VoiceCallWebhookServer { console.log( `[voice-call] Auto-ending call ${disconnectedCall.callId} on stream disconnect`, ); - void this.manager.endCall(disconnectedCall.callId).catch(() => {}); + void this.manager.endCall(disconnectedCall.callId).catch((err) => { + console.warn(`[voice-call] Failed to auto-end call ${disconnectedCall.callId}:`, err); + }); } if (this.provider.name === "twilio") { (this.provider as TwilioProvider).unregisterCallStream(callId);