fix(automation): remove silent JSON.parse fallback in executeAutomationAction

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 21:36:41 -04:00
1 parent a612ea7bea
commit 1a57622849
1 file changed
+1 -7
+1 -7
View File
@@ -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<string, unknown>;
} catch {
return {};
}
})();
const config = JSON.parse(rule.actionConfigJson) as Record<string, unknown>;
switch (rule.action as AutomationAction) {
case "assign_task": {