fix(remote-questions): add null coalesce for optional threadUrl (#1004)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
TÂCHES 2026-03-17 18:01:22 -06:00 committed by GitHub
parent a9a0f6f29f
commit 1ae7b07237

View file

@ -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",