test(mcp): use the card option ID in the demo approval fixture

The demo test submits the provider enum value as a card option ID.
The typed question card uses choice_1, so the demo receives no decision
and asks again. This fails the server CI shard after the master update.
Submit the card option ID without changing approval behavior.

The original fixture reproduces the CI failure locally. Verification
covers the demo flow, atomic run events, and GitHub broker contracts.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Devin FoleyandPaperclip committed 2026-11-13 18:11:17 -08:00
1 parent f0ad8a83a8
commit 4badaadbad
1 file changed
+1 -1
@@ -145,7 +145,7 @@ const support = await getEmbeddedPostgresTestSupport();
const [card] = await db.select().from(issueThreadInteractions).where(and(eq(issueThreadInteractions.companyId, org.id), eq(issueThreadInteractions.issueId, issue.id)));
expect(card).toMatchObject({ kind: "ask_user_questions", status: "pending" });
await db.update(issueThreadInteractions).set({ status: "answered", result: { version: 1, answers: [
{ questionId: "decision", optionIds: ["approve"] },
{ questionId: "decision", optionIds: ["choice_1"] },
{ questionId: "note", optionIds: [], otherText: "go ahead" },
] } }).where(eq(issueThreadInteractions.id, card!.id));
const pending = call("needs_approval", { action: "rotate the demo key" });