diff --git a/apps/web/app/(dashboard)/agents/page.tsx b/apps/web/app/(dashboard)/agents/page.tsx index 576e5246..e9fb3d09 100644 --- a/apps/web/app/(dashboard)/agents/page.tsx +++ b/apps/web/app/(dashboard)/agents/page.tsx @@ -70,6 +70,7 @@ import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { toast } from "sonner"; +import { Skeleton } from "@/components/ui/skeleton"; import { api } from "@/shared/api"; import { useAuthStore } from "@/features/auth"; import { useWorkspaceStore } from "@/features/workspace"; @@ -380,6 +381,8 @@ function InstructionsTab({ setSaving(true); try { await onSave(value); + } catch { + // toast handled by parent } finally { setSaving(false); } @@ -446,6 +449,8 @@ function SkillsTab({ const newIds = [...agent.skills.map((s) => s.id), skillId]; await api.setAgentSkills(agent.id, { skill_ids: newIds }); await refreshAgents(); + } catch (e) { + toast.error(e instanceof Error ? e.message : "Failed to add skill"); } finally { setSaving(false); setShowPicker(false); @@ -458,6 +463,8 @@ function SkillsTab({ const newIds = agent.skills.filter((s) => s.id !== skillId).map((s) => s.id); await api.setAgentSkills(agent.id, { skill_ids: newIds }); await refreshAgents(); + } catch (e) { + toast.error(e instanceof Error ? e.message : "Failed to remove skill"); } finally { setSaving(false); } @@ -701,6 +708,8 @@ function ToolsTab({ setSaving(true); try { await onSave(tools); + } catch { + // toast handled by parent } finally { setSaving(false); } @@ -845,6 +854,8 @@ function TriggersTab({ setSaving(true); try { await onSave(triggers); + } catch { + // toast handled by parent } finally { setSaving(false); } @@ -1050,8 +1061,17 @@ function TasksTab({ agent }: { agent: Agent }) { if (loading) { return ( -
No issues yet
+Create an issue to get started.
+No issues assigned to you
+Issues you create or are assigned to will appear here.
+