From 1ae7b072373699e31133badf635a18c662dc9a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Tue, 17 Mar 2026 18:01:22 -0600 Subject: [PATCH] fix(remote-questions): add null coalesce for optional threadUrl (#1004) Co-authored-by: Claude Opus 4.6 (1M context) --- src/resources/extensions/remote-questions/manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/extensions/remote-questions/manager.ts b/src/resources/extensions/remote-questions/manager.ts index aeac84bfc..dd5b57bda 100644 --- a/src/resources/extensions/remote-questions/manager.ts +++ b/src/resources/extensions/remote-questions/manager.ts @@ -70,7 +70,7 @@ export async function tryRemoteQuestions( channel: config.channel, timed_out: true, promptId: prompt.id, - threadUrl: dispatch.ref.threadUrl, + threadUrl: dispatch.ref.threadUrl ?? null, status: signal?.aborted ? "cancelled" : "timed_out", }, }; @@ -92,7 +92,7 @@ export async function tryRemoteQuestions( channel: config.channel, timed_out: false, promptId: prompt.id, - threadUrl: dispatch.ref.threadUrl, + threadUrl: dispatch.ref.threadUrl ?? null, questions, response: answer, status: "answered",