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:
parent
a9a0f6f29f
commit
1ae7b07237
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue