feat: add configurable history timeout and polling interval for ComfyUI API

This commit is contained in:
syntaxbullet
2026-07-05 15:47:08 +02:00
parent 0b6b064085
commit a83024c35c
3 changed files with 24 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ describe("generation commands", () => {
expect(next.document.assets.find((asset) => asset.id === "generated-asset")?.source).toBe("generated-source");
expect(next.document.artboards[0]?.layers[0]?.id).toBe("generated-layer");
expect(next.editor.selection).toEqual({ artboardId: "a1", layerIds: ["generated-layer"] });
expect(next.editor.generation).toEqual({ candidates: [], selectedCandidateId: undefined });
});
test("replaces source asset pixels for inpaint candidates", () => {
@@ -46,6 +47,7 @@ describe("generation commands", () => {
expect(next.document.assets.find((asset) => asset.id === "source-asset")?.source).toBe("composited-source");
expect(next.document.assets.find((asset) => asset.id === "source-asset")?.mimeType).toBe("image/png");
expect(next.editor.selection).toEqual({ artboardId: "a1", layerIds: ["source-layer"] });
expect(next.editor.generation).toEqual({ candidates: [], selectedCandidateId: undefined });
});
});