From 302465141c1ada04c9116c2aede9ef33831beb38 Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Mon, 17 Aug 2026 19:58:18 -0700 Subject: [PATCH] fix(copilot): persist workflow drafts across navigation --- .../home/components/mothership-chat/mothership-chat.tsx | 1 + .../[workspaceId]/w/[workflowId]/components/panel/panel.tsx | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx index 8d4bccd9c9f..dad25445d99 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx @@ -764,6 +764,7 @@ export function MothershipChat({ onCancelEdit={onCancelQueueEdit} /> { if (!activeWorkflowId || !workspaceId) return @@ -943,6 +948,7 @@ export const Panel = memo(function Panel() { onCancelQueueEdit={copilotCancelQueueEdit} userId={session?.user?.id} chatId={copilotResolvedChatId} + draftScopeKey={copilotDraftScopeKey} layout='copilot-view' />