From 1f766e745cab3c62bde3940ea6e18d5450b22000 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 18:30:32 +0800 Subject: [PATCH] fix: load legacy workflow previews directly --- components/agents/AgentWorkflowPanelDarkV2.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/agents/AgentWorkflowPanelDarkV2.tsx b/components/agents/AgentWorkflowPanelDarkV2.tsx index e7a1b0268..469c313b8 100644 --- a/components/agents/AgentWorkflowPanelDarkV2.tsx +++ b/components/agents/AgentWorkflowPanelDarkV2.tsx @@ -135,6 +135,19 @@ function buildWorkflowOptionPreviewUrl(url?: string | null, sourceUrl?: string | if (isLikelyStoredWorkflowPreview(source, sourceUrl)) { return source; } + try { + const target = new URL(source); + const hostname = target.hostname.toLowerCase(); + if ( + hostname === "s3.jiansun.vip" || + hostname.endsWith(".jiansun.vip") || + hostname === "s3.1080p.hk" + ) { + return source; + } + } catch { + return source; + } return buildImageProxyUrl(source, { width: WORKFLOW_OPTION_PREVIEW_WIDTH, quality: WORKFLOW_OPTION_PREVIEW_QUALITY, @@ -452,6 +465,7 @@ const StepOptionCard = memo(function StepOptionCard({ loading={shouldLoadFast ? "eager" : "lazy"} decoding="async" fetchPriority={shouldLoadFast ? "high" : "low"} + referrerPolicy="no-referrer" draggable={false} sizes="(min-width: 1536px) 18vw, (min-width: 1280px) 22vw, (min-width: 1024px) 25vw, (min-width: 640px) 33vw, 50vw" onError={(event) =>