The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(comfyui): an input preview is never a result (B18 box run)
purple7935a44775a7
diff --git a/src/api/__tests__/comfyui-models.test.ts b/src/api/__tests__/comfyui-models.test.tsindex 37f85f0e..59bcad22 100644--- a/src/api/__tests__/comfyui-models.test.ts+++ b/src/api/__tests__/comfyui-models.test.ts@@ -392,6 +392,16 @@ describe('determineStrategy', () => {// stay safe for downstream URL construction.describe('extractComfyOutputFiles', () => {+ it('leaves out the input preview LoadVideo reports (B18 box run)', () => {+ const files = extractComfyOutputFiles({+ images: [{ filename: 'lu_long_1.mp4', subfolder: '', type: 'input' }],+ })+ expect(files).toEqual([])+ expect(extractComfyOutputFiles({+ images: [{ filename: 'clip_00002_.mp4', subfolder: '', type: 'output' }],+ })).toEqual([{ filename: 'clip_00002_.mp4', subfolder: '', type: 'output' }])+ })+it('extracts canonical SaveImage output (images key)', () => {const node = {images: [diff --git a/src/api/comfyui.ts b/src/api/comfyui.tsindex 6f31bb8f..795a6fe0 100644--- a/src/api/comfyui.ts+++ b/src/api/comfyui.ts@@ -147,6 +147,12 @@ export function extractComfyOutputFiles(nodeOutput: unknown): ComfyUIOutput[] {typeof (item as { filename: unknown }).filename === 'string') {const it = item as { filename: string; subfolder?: unknown; type?: unknown }+ // A file of ComfyUI's INPUT folder is never a result. Core LoadVideo+ // reports a preview of the video it loaded under that type (B18 box+ // run, 27.10.2026: every continued section of a long clip listed the+ // clip so far next to its own output, and the chain took the input+ // for the new section). Motion Control's driving video is the same.+ if (it.type === 'input') continuefound.push({filename: it.filename,subfolder: typeof it.subfolder === 'string' ? it.subfolder : '',