From 5e9d973b584c721b704a12fd44448cf7d07ae9c1 Mon Sep 17 00:00:00 2001 From: bluzername Date: Sat, 28 Mar 2026 02:10:58 +0700 Subject: [PATCH] fix(ui): show success toast when agent config is saved When user save agent configuration, the onError handler show a toast with "Save failed" but the onSuccess handler had zero feedback. The form just silently go back to non-dirty state and user have to guess if the save actually worked. Added a simple "Agent saved" success toast in onSuccess. Now the feedback is symmetrical - error show red toast, success show green toast. --- ui/src/pages/AgentDetail.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/pages/AgentDetail.tsx b/ui/src/pages/AgentDetail.tsx index c0bed88686..93bba5b2b8 100644 --- a/ui/src/pages/AgentDetail.tsx +++ b/ui/src/pages/AgentDetail.tsx @@ -1447,6 +1447,7 @@ function ConfigurationTab({ queryClient.invalidateQueries({ queryKey: queryKeys.agents.detail(agent.urlKey) }); queryClient.invalidateQueries({ queryKey: queryKeys.agents.configRevisions(agent.id) }); queryClient.invalidateQueries({ queryKey: queryKeys.agents.list(agent.companyId) }); + pushToast({ title: "Agent saved", tone: "success" }); }, onError: (err) => { setAwaitingRefreshAfterSave(false);