test(plugins): align checkbox input parsing

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Michael NguyenandPaperclip committed 2026-07-24 01:21:57 -07:00
1 parent 963ece7848
commit f7a6d9f8c6
1 file changed
+3 -1
+3 -1
View File
@@ -1809,7 +1809,9 @@ export function createTestHarness(options: TestHarnessOptions): TestHarness {
}
let checkboxResult: { version: 1; outcome: "accepted"; selectedOptionIds: string[] } | undefined;
if (input.action === "accept" && current.kind === "request_checkbox_confirmation") {
const parsed = acceptIssueThreadInteractionSchema.parse(input);
const parsed = acceptIssueThreadInteractionSchema.parse({
selectedOptionIds: input.selectedOptionIds,
});
const optionIds = new Set(current.payload.options.map((option) => option.id));
const selectedOptionIds = parsed.selectedOptionIds
?? current.payload.defaultSelectedOptionIds