From c2b0c804cb118378bffa8e0d71f85b389a542935 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 29 Sep 2026 12:39:03 -0500 Subject: [PATCH] fix(ui): preserve canonical drafts in classic question cards Reuse the canonical question form for pending structured questions so provider drafts, persisted edits, validation and exact submitted text survive both task surfaces. Co-Authored-By: Paperclip --- .../IssueThreadInteractionCard.test.tsx | 50 +++++++++++++++++++ .../components/IssueThreadInteractionCard.tsx | 42 +++++++++++++++- 2 files changed, 91 insertions(+), 1 deletion(-) diff --git a/ui/src/components/IssueThreadInteractionCard.test.tsx b/ui/src/components/IssueThreadInteractionCard.test.tsx index 47b923e5bbe..f311a190fe9 100644 --- a/ui/src/components/IssueThreadInteractionCard.test.tsx +++ b/ui/src/components/IssueThreadInteractionCard.test.tsx @@ -86,6 +86,12 @@ vi.mock("@/lib/router", () => ({ vi.mock("@/api/connection-intents", () => ({ connectionIntentsApi: connectionIntentsApiMocks })); +vi.mock("./task-chat/TaskChatRichInput", () => ({ + TaskChatRichInput: ({ value, onChange }: { value: string; onChange: (value: string) => void }) => ( +