Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(agents): show error toast on agent creation failure
Naiyuan Qing9e2cb4040fc0
diff --git a/apps/web/app/(dashboard)/agents/page.tsx b/apps/web/app/(dashboard)/agents/page.tsxindex 502fc7ec80..70625205ca 100644--- a/apps/web/app/(dashboard)/agents/page.tsx+++ b/apps/web/app/(dashboard)/agents/page.tsx@@ -62,6 +62,7 @@ import {import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";+import { toast } from "sonner";import { api } from "@/shared/api";import { useAuthStore } from "@/features/auth";import { useWorkspaceStore } from "@/features/workspace";@@ -145,7 +146,8 @@ function CreateAgentDialog({triggers: [{ id: generateId(), type: "on_assign", enabled: true, config: {} }],});onClose();- } catch {+ } catch (err) {+ toast.error(err instanceof Error ? err.message : "Failed to create agent");setCreating(false);}};