diff --git a/packages/ui/src/store/actions.js b/packages/ui/src/store/actions.js index 0c68f8f2..c6ace4a6 100644 --- a/packages/ui/src/store/actions.js +++ b/packages/ui/src/store/actions.js @@ -32,6 +32,11 @@ export const enqueueSnackbar = (notification) => { type: ENQUEUE_SNACKBAR, notification: { ...notification, + options: { + ...notification.options, + persist: notification.options?.persist ?? false, // Default: auto-close enabled + autoHideDuration: notification.options?.autoHideDuration ?? 5000 // Default auto-close duration: 5 seconds + }, key: key || new Date().getTime() + Math.random() } } diff --git a/packages/ui/src/ui-component/dialog/AgentflowGeneratorDialog.jsx b/packages/ui/src/ui-component/dialog/AgentflowGeneratorDialog.jsx index 425c65aa..6495e6bf 100644 --- a/packages/ui/src/ui-component/dialog/AgentflowGeneratorDialog.jsx +++ b/packages/ui/src/ui-component/dialog/AgentflowGeneratorDialog.jsx @@ -131,7 +131,7 @@ const AgentflowGeneratorDialog = ({ show, dialogProps, onCancel, onConfirm }) => options: { key: new Date().getTime() + Math.random(), variant: 'error', - persist: true, + persist: false, action: (key) => (