Skip to content

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.

fix(create): send every tiled-decode field, the live validator demands them

purple3e9ffa38d5f4
diff --git a/src/api/__tests__/video-decode-tiled.test.ts b/src/api/__tests__/video-decode-tiled.test.ts
index 37a80281..d1aec06e 100644
--- a/src/api/__tests__/video-decode-tiled.test.ts
+++ b/src/api/__tests__/video-decode-tiled.test.ts
@@ -76,10 +76,13 @@ const classTypes = (wf: Record<string, any>): string[] =>
Object.values(wf as Record<string, WfNode>).map(n => n.class_type)
describe('videoDecodeNode', () => {
- it('emits VAEDecodeTiled with ONLY tile_size when the node exists (old cores lack the other fields)', () => {
+ it('emits VAEDecodeTiled with ALL four tiling fields (the live validator refuses omitted required-with-default inputs)', () => {
const node = videoDecodeNode(['7', 0], ['3', 0], true)
expect(node.class_type).toBe('VAEDecodeTiled')
- expect(node.inputs).toEqual({ samples: ['7', 0], vae: ['3', 0], tile_size: 256 })
+ expect(node.inputs).toEqual({
+ samples: ['7', 0], vae: ['3', 0],
+ tile_size: 256, overlap: 64, temporal_size: 64, temporal_overlap: 8,
+ })
})
it('falls back to plain VAEDecode when the install has no tiled node', () => {
const node = videoDecodeNode(['7', 0], ['3', 0], false)
diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.ts
index ca278b2a..794bb1a9 100644
--- a/src/api/dynamic-workflow.ts
+++ b/src/api/dynamic-workflow.ts
@@ -1062,16 +1062,27 @@ function rmbgWidgetDefault(name: string, spec: any): { set: boolean; value?: any
* on a 12 GB card; CUDA paged through the Windows driver instead of throwing,
* so ComfyUI's own OOM-then-tiled retry never fired and the decode ran 45+
* minutes at "GPU 100%" (live, David 2026-08-02). Tiles keep the working set
- * flat for a quality-neutral overlap cost. Only tile_size is sent: older
- * cores lack the overlap/temporal fields, newer ones fill their declared
- * defaults for anything omitted. Image decodes stay on plain VAEDecode. */
+ * flat for a quality-neutral overlap cost.
+ *
+ * ALL four tiling fields are sent. The live validator refuses a prompt that
+ * omits a required-with-default field ("Node 8 (VAEDecodeTiled): Required
+ * input is missing" three times, e2e 2026-08-02), and cores old enough to
+ * lack the overlap/temporal fields simply ignore unknown inputs. Values are
+ * the node's own defaults except tile_size, halved for the low-VRAM cards
+ * this exists for. Image decodes stay on plain VAEDecode. */
export function videoDecodeNode(
samplesRef: [string, number],
vaeRef: [string, number],
hasTiled: boolean,
): Record<string, any> {
return hasTiled
- ? { class_type: 'VAEDecodeTiled', inputs: { samples: samplesRef, vae: vaeRef, tile_size: 256 } }
+ ? {
+ class_type: 'VAEDecodeTiled',
+ inputs: {
+ samples: samplesRef, vae: vaeRef,
+ tile_size: 256, overlap: 64, temporal_size: 64, temporal_overlap: 8,
+ },
+ }
: { class_type: 'VAEDecode', inputs: { samples: samplesRef, vae: vaeRef } }
}