diff --git a/apps/frontend/src/app/pages/AIWorkspacePage.tsx b/apps/frontend/src/app/pages/AIWorkspacePage.tsx index 0c6a54d..7652382 100644 --- a/apps/frontend/src/app/pages/AIWorkspacePage.tsx +++ b/apps/frontend/src/app/pages/AIWorkspacePage.tsx @@ -1,10 +1,11 @@ import { useNavigate } from 'react-router-dom'; -import { Bot, Send, AlertCircle } from 'lucide-react'; +import { Bot, Send, AlertCircle, Settings } from 'lucide-react'; import { PageHeader } from '@/shared/components/ui/PageHeader'; import { PreviewBanner } from '@/shared/components/ui/PreviewBanner'; import { EmptyState } from '@/shared/components/ui/EmptyState'; import { DataSourceBadge } from '@/shared/components/ui/DataSourceBadge'; import { useAIWorkspace } from '@/features/ai/hooks/useAIWorkspace'; +import { getErrorDetail } from '@/shared/services/api'; import { cn } from '@/shared/utils/cn'; // Kept identical to the `limitation` recorded for this surface in the @@ -85,12 +86,24 @@ export function AIWorkspacePage() { )) )} {aiWorkspace.loading &&
AI provider is thinking...
} - {aiWorkspace.error && ( -{aiWorkspace.error}
-{detail.message}
+ {detail.details.length > 0 && ( +