From a574d3e0a0a88e19c83fe4dd6098ed1fc183e82a Mon Sep 17 00:00:00 2001 From: uytieu Date: Fri, 25 Sep 2026 02:41:39 +0000 Subject: [PATCH] feat(agent): update consent card launch video (#18765) ## Summary Linear issue: [DES-1204](https://linear.app/comfyorg/issue/DES-1204/des-update-launch-video-file-in-the-consent-card) The Comfy Agent consent card now plays the new launch video. ## Changes - **What**: - The consent card shows the new Comfy Agent launch video. It replaces the previous video. - The new video is 45 seconds long. The previous video was 22 seconds long. - The video is on the Comfy media server, not in this repository. The card uses three files: a WebM video, an MP4 video for older iPhones, and a still image that shows before the video starts. - The card plays the video muted. For this reason, the video files have no sound track. - The card layout does not change. ## Review Focus - The three files have new names (`agent-consent-v2-*`). As a result, the new video shows only after this PR merges. No browser shows an old cached copy. - The previous video files stay on the media server. The current release continues to use them. - Each new video file is approximately 5 MB. This is approximately 2 MB more than before, because the new video is two times longer. - The browser test now expects the new MP4 file name. The Storybook preview also uses the new files. ## Screenshots (if applicable) New Video https://media.comfy.org/website/comfy-agent/agent-consent-v2-1280.mp4 --- browser_tests/tests/agent/agentConsent.spec.ts | 2 +- .../agent/components/agent/AgentConsentCard.stories.ts | 6 +++--- .../extensions/agent/composables/agent/useAgentConsent.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/browser_tests/tests/agent/agentConsent.spec.ts b/browser_tests/tests/agent/agentConsent.spec.ts index a93c01ba369..a3a407d5624 100644 --- a/browser_tests/tests/agent/agentConsent.spec.ts +++ b/browser_tests/tests/agent/agentConsent.spec.ts @@ -285,7 +285,7 @@ test.describe('Manual agent consent gate', { tag: ['@cloud', '@ui'] }, () => { const video = page.getByTestId('agent-consent-video') await expect(video).toHaveJSProperty( 'currentSrc', - 'https://media.comfy.org/website/comfy-agent/agent-consent-1280.mp4' + 'https://media.comfy.org/website/comfy-agent/agent-consent-v2-1280.mp4' ) await expect .poll(() => diff --git a/src/workbench/extensions/agent/components/agent/AgentConsentCard.stories.ts b/src/workbench/extensions/agent/components/agent/AgentConsentCard.stories.ts index fdda297fe87..f5f16445b8e 100644 --- a/src/workbench/extensions/agent/components/agent/AgentConsentCard.stories.ts +++ b/src/workbench/extensions/agent/components/agent/AgentConsentCard.stories.ts @@ -5,9 +5,9 @@ import enMessages from '@/locales/en/main.json' with { type: 'json' } import AgentConsentCard from '@/workbench/extensions/agent/components/agent/AgentConsentCard.vue' const MEDIA_BASE = 'https://media.comfy.org/website/comfy-agent' -const VIDEO_SRC = `${MEDIA_BASE}/agent-consent-1280.webm` -const VIDEO_SRC_MP4 = `${MEDIA_BASE}/agent-consent-1280.mp4` -const POSTER_SRC = `${MEDIA_BASE}/agent-consent-poster.jpg` +const VIDEO_SRC = `${MEDIA_BASE}/agent-consent-v2-1280.webm` +const VIDEO_SRC_MP4 = `${MEDIA_BASE}/agent-consent-v2-1280.mp4` +const POSTER_SRC = `${MEDIA_BASE}/agent-consent-v2-poster.jpg` const paragraphs = [ enMessages.agent.consent.body1, diff --git a/src/workbench/extensions/agent/composables/agent/useAgentConsent.ts b/src/workbench/extensions/agent/composables/agent/useAgentConsent.ts index 6c5a82384e5..947c705a0d3 100644 --- a/src/workbench/extensions/agent/composables/agent/useAgentConsent.ts +++ b/src/workbench/extensions/agent/composables/agent/useAgentConsent.ts @@ -12,9 +12,9 @@ import { useAgentConsentStore } from '@/workbench/extensions/agent/stores/agent/ const CONSENT_DIALOG_KEY = 'agent-consent' const DOCS_URL = 'https://docs.comfy.org/agent-tools/in-app-agent' const CONSENT_MEDIA_BASE = 'https://media.comfy.org/website/comfy-agent' -const CONSENT_VIDEO_SRC = `${CONSENT_MEDIA_BASE}/agent-consent-1280.webm` -const CONSENT_VIDEO_SRC_MP4 = `${CONSENT_MEDIA_BASE}/agent-consent-1280.mp4` -const CONSENT_POSTER_SRC = `${CONSENT_MEDIA_BASE}/agent-consent-poster.jpg` +const CONSENT_VIDEO_SRC = `${CONSENT_MEDIA_BASE}/agent-consent-v2-1280.webm` +const CONSENT_VIDEO_SRC_MP4 = `${CONSENT_MEDIA_BASE}/agent-consent-v2-1280.mp4` +const CONSENT_POSTER_SRC = `${CONSENT_MEDIA_BASE}/agent-consent-v2-poster.jpg` const AgentConsentCard = defineAsyncComponent( () =>