From 84b4718eada23d1c544f73cf8b8a070e2ce3b84a Mon Sep 17 00:00:00 2001 From: Richard Yu Date: Mon, 8 Dec 2025 14:55:33 -0800 Subject: [PATCH] fix: Handle null execution_error in job schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The API returns execution_error: null for jobs without errors, but the Zod schema only had .optional() which doesn't handle null. This caused the entire parse to fail, resulting in 0 active jobs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/platform/remote/comfyui/jobs/jobTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/remote/comfyui/jobs/jobTypes.ts b/src/platform/remote/comfyui/jobs/jobTypes.ts index 23515f7a2..855348309 100644 --- a/src/platform/remote/comfyui/jobs/jobTypes.ts +++ b/src/platform/remote/comfyui/jobs/jobTypes.ts @@ -55,7 +55,7 @@ const zRawJobListItem = z execution_end_time: z.number().nullable().optional(), preview_output: zPreviewOutput.nullable().optional(), outputs_count: z.number().nullable().optional(), - execution_error: zExecutionError.optional(), + execution_error: zExecutionError.nullable().optional(), workflow_id: z.string().nullable().optional(), priority: z.number().optional() })