From 9c712250fb5fa8ad39e48034f5d24eff9124837b Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Fri, 9 May 2025 20:00:50 +0530 Subject: [PATCH] Fix build errors --- apps/rowboat/app/projects/[projectId]/copilot/app.tsx | 4 ++++ .../app/projects/[projectId]/entities/agent_config.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/rowboat/app/projects/[projectId]/copilot/app.tsx b/apps/rowboat/app/projects/[projectId]/copilot/app.tsx index b352f8d3..09da8527 100644 --- a/apps/rowboat/app/projects/[projectId]/copilot/app.tsx +++ b/apps/rowboat/app/projects/[projectId]/copilot/app.tsx @@ -195,6 +195,8 @@ const App = forwardRef<{ handleCopyChat: () => void; handleUserMessage: (message ); }); +App.displayName = 'App'; + export const Copilot = forwardRef<{ handleUserMessage: (message: string) => void }, { projectId: string; workflow: z.infer; @@ -301,3 +303,5 @@ export const Copilot = forwardRef<{ handleUserMessage: (message: string) => void ); }); +Copilot.displayName = 'Copilot'; + diff --git a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx index 13425d64..b2caf80a 100644 --- a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx +++ b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx @@ -96,7 +96,7 @@ export function AgentConfig({ setShowRagCta(false); } setPreviousRagSources(currentSources); - }, [agent.ragDataSources]); + }, [agent.ragDataSources, previousRagSources.length]); const handleUpdateInstructions = async () => { const message = `Update the instructions for agent "${agent.name}" to use the rag tool (rag_search) since data sources have been added. If this has already been done, do not take any action, but let me know.`;