diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx index 1a997731fd8..eab7b1a366f 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx @@ -116,6 +116,8 @@ export const Panel = memo(function Panel() { const router = useRouter() const params = useParams() const workspaceId = params.workspaceId as string + const workflowId = params.workflowId as string + const copilotDraftScopeKey = `${workspaceId}:copilot:${workflowId}` const posthog = usePostHog() const posthogRef = useRef(posthog) @@ -898,6 +900,7 @@ export const Panel = memo(function Panel() { onCancelQueueEdit={copilotCancelQueueEdit} userId={session?.user?.id} chatId={copilotResolvedChatId} + draftScopeKey={copilotDraftScopeKey} layout='copilot-view' />