Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(prompts): tell the user when a reset fails instead of only logging it
Sergey Kozyrenkocf68f3a67534
diff --git a/frontend/src/pages/settings/settings-prompts.tsx b/frontend/src/pages/settings/settings-prompts.tsxindex 8ee2b4d8..cfe7c021 100644--- a/frontend/src/pages/settings/settings-prompts.tsx+++ b/frontend/src/pages/settings/settings-prompts.tsx@@ -17,6 +17,7 @@ import {} from 'lucide-react';import { useState } from 'react';import { useNavigate } from 'react-router-dom';+import { toast } from 'sonner';import type { DefaultPromptFragmentFragment as DefaultPrompt, PromptType } from '@/graphql/types';@@ -187,7 +188,9 @@ function SettingsPrompts() {setResetOperation(null);} catch (error) {- console.error('Failed to reset prompt:', error);+ toast.error('Failed to reset prompt', {+ description: error instanceof Error ? error.message : undefined,+ });}};