From 400249cb085619d8ed2133e1ffe9aa8864ee3e3a Mon Sep 17 00:00:00 2001 From: Richard Yu Date: Mon, 12 Jan 2026 18:40:56 -0800 Subject: [PATCH] fix: add logging on executionError validation failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Log validation errors to help debug schema mismatches with backend. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/stores/queueStore.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/stores/queueStore.ts b/src/stores/queueStore.ts index cd7572e55..8ddebfe08 100644 --- a/src/stores/queueStore.ts +++ b/src/stores/queueStore.ts @@ -341,7 +341,14 @@ export class TaskItemImpl { for (const entry of messages) { if (entry[0] === 'execution_error') { const parsed = zExecutionErrorWsMessage.safeParse(entry[1]) - return parsed.success ? parsed.data : undefined + if (!parsed.success) { + console.warn( + '[TaskItemImpl.executionError] Validation failed:', + parsed.error + ) + return undefined + } + return parsed.data } } return undefined