Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(assistant-ui): remove unused agent status component

Steven Enamakelaee3ddaeb81c
diff --git a/app/src/components/assistant-ui/elements/agent-status.aui.tsx b/app/src/components/assistant-ui/elements/agent-status.aui.tsx
index c6b7d99fef..8408b6e9fd 100644
--- a/app/src/components/assistant-ui/elements/agent-status.aui.tsx
+++ b/app/src/components/assistant-ui/elements/agent-status.aui.tsx
@@ -14,6 +14,7 @@
* it keeps upstream's exact English text.
*/
import { cn } from '@/components/assistant-ui/lib/utils';
+import { useT } from '@/lib/i18n/I18nContext';
import { Popover, PopoverContent, PopoverTrigger } from '@/components/assistant-ui/ui/popover';
import { type TaskState, useAuiState } from '@assistant-ui/react';
import { ChevronDownIcon } from 'lucide-react';
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index 324bf9286e..75e69b9317 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -346,19 +346,20 @@ const ThreadHistorySkeleton: FC = () => {
<span className="sr-only">
{t('assistantUi.thread.loadingConversation', 'Loading conversation')}
</span>
- <Skeleton className="ml-auto h-9 w-2/5 rounded-xl motion-reduce:animate-none" />
- <div className="flex flex-col gap-y-2">
- <Skeleton className="h-4 w-11/12 motion-reduce:animate-none" />
- <Skeleton className="h-4 w-4/5 motion-reduce:animate-none" />
- <Skeleton className="h-4 w-3/5 motion-reduce:animate-none" />
- </div>
- <Skeleton className="ml-auto h-9 w-1/3 rounded-xl motion-reduce:animate-none" />
- <div className="flex flex-col gap-y-2">
- <Skeleton className="h-4 w-10/12 motion-reduce:animate-none" />
- <Skeleton className="h-4 w-2/3 motion-reduce:animate-none" />
+ <Skeleton className="ml-auto h-9 w-2/5 rounded-xl motion-reduce:animate-none" />
+ <div className="flex flex-col gap-y-2">
+ <Skeleton className="h-4 w-11/12 motion-reduce:animate-none" />
+ <Skeleton className="h-4 w-4/5 motion-reduce:animate-none" />
+ <Skeleton className="h-4 w-3/5 motion-reduce:animate-none" />
+ </div>
+ <Skeleton className="ml-auto h-9 w-1/3 rounded-xl motion-reduce:animate-none" />
+ <div className="flex flex-col gap-y-2">
+ <Skeleton className="h-4 w-10/12 motion-reduce:animate-none" />
+ <Skeleton className="h-4 w-2/3 motion-reduce:animate-none" />
+ </div>
</div>
- </div>
-);
+ );
+};
export const Thread: FC<ThreadProps> = ({
components = EMPTY_COMPONENTS,
diff --git a/app/src/components/settings/panels/AppearancePanel.test.tsx b/app/src/components/settings/panels/AppearancePanel.test.tsx
index e26b523b88..7a7acf4743 100644
--- a/app/src/components/settings/panels/AppearancePanel.test.tsx
+++ b/app/src/components/settings/panels/AppearancePanel.test.tsx
@@ -1,7 +1,9 @@
-import { fireEvent, within } from '@testing-library/react';
+import { fireEvent, render, within } from '@testing-library/react';
+import { MemoryRouter, Route, Routes } from 'react-router-dom';
+import { Provider } from 'react-redux';
import { describe, expect, it, vi } from 'vitest';
-import { renderWithProviders } from '../../../test/test-utils';
+import { createTestStore, renderWithProviders } from '../../../test/test-utils';
import AppearancePanel from './AppearancePanel';
// Pass-through translator so assertions can target the i18n keys directly.