From 1a5762284944333d4356ef75a8c3de502b5e5a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 16 Apr 2026 21:36:41 -0400 Subject: [PATCH] fix(automation): remove silent JSON.parse fallback in executeAutomationAction --- src/main/automation/automation-actions.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/automation/automation-actions.ts b/src/main/automation/automation-actions.ts index f6ac23e3..9bd8f555 100644 --- a/src/main/automation/automation-actions.ts +++ b/src/main/automation/automation-actions.ts @@ -38,13 +38,7 @@ export function executeAutomationAction( const { db, logger, emitEvent, publishDomainChanged, wakeAgentIfPossible } = deps; const { handleTaskCreated, handleApprovalResolved, handleTaskStatusChange } = callbacks; - const config = (() => { - try { - return JSON.parse(rule.actionConfigJson) as Record; - } catch { - return {}; - } - })(); + const config = JSON.parse(rule.actionConfigJson) as Record; switch (rule.action as AutomationAction) { case "assign_task": {