From d4a6fe9c6562a6c8190d558a5218bc387f761f42 Mon Sep 17 00:00:00 2001 From: CTO Agent Date: Tue, 14 Apr 2026 21:47:33 +0000 Subject: [PATCH] feat: handle ffmpeg-edit output format in pollContentRuns (REC-68) The ffmpeg-edit task returns `url` instead of `videoSourceUrl`. Add fallback to check `output.url` so the polling task can handle both create-content and ffmpeg-edit run outputs. Co-Authored-By: Paperclip --- src/content/pollContentRuns.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/pollContentRuns.ts b/src/content/pollContentRuns.ts index 2cd6cbc..4c6b86c 100644 --- a/src/content/pollContentRuns.ts +++ b/src/content/pollContentRuns.ts @@ -42,13 +42,15 @@ export async function pollContentRuns( const output = run.output as { videoSourceUrl?: string; captionText?: string; + /** ffmpeg-edit tasks return `url` instead of `videoSourceUrl`. */ + url?: string; } | null; logStep(`Run completed: ${runId}`, false, { runId }); return { runId, status: "completed" as const, - videoUrl: output?.videoSourceUrl, + videoUrl: output?.videoSourceUrl ?? output?.url, captionText: output?.captionText, }; }