From bef43f3e84ad4cff3b1b0e5dd3b0b7f18c2847fe Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Wed, 11 Feb 2026 15:33:22 -0800 Subject: [PATCH] fix build --- apps/sim/lib/copilot/chat-payload.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/sim/lib/copilot/chat-payload.ts b/apps/sim/lib/copilot/chat-payload.ts index 110dbfbc7..76e0b5b87 100644 --- a/apps/sim/lib/copilot/chat-payload.ts +++ b/apps/sim/lib/copilot/chat-payload.ts @@ -20,6 +20,8 @@ export interface BuildPayloadParams { fileAttachments?: Array<{ id: string; key: string; size: number; [key: string]: unknown }> commands?: string[] chatId?: string + conversationId?: string + prefetch?: boolean implicitFeedback?: string } @@ -64,6 +66,10 @@ export async function buildCopilotRequestPayload( fileAttachments, commands, chatId, + conversationId, + prefetch, + conversationHistory, + implicitFeedback, } = params const selectedModel = options.selectedModel @@ -154,6 +160,12 @@ export async function buildCopilotRequestPayload( version: SIM_AGENT_VERSION, ...(contexts && contexts.length > 0 ? { context: contexts } : {}), ...(chatId ? { chatId } : {}), + ...(conversationId ? { conversationId } : {}), + ...(Array.isArray(conversationHistory) && conversationHistory.length > 0 + ? { conversationHistory } + : {}), + ...(typeof prefetch === 'boolean' ? { prefetch } : {}), + ...(implicitFeedback ? { implicitFeedback } : {}), ...(processedFileContents.length > 0 ? { fileAttachments: processedFileContents } : {}), ...(integrationTools.length > 0 ? { integrationTools } : {}), ...(credentials ? { credentials } : {}),