Skip to content

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

chore: clean up formatting and import grouping in conversation components

Steven Enamakel6579554d5284
diff --git a/app/src/components/settings/panels/__tests__/AgentAccessPanel.defaults.test.tsx b/app/src/components/settings/panels/__tests__/AgentAccessPanel.defaults.test.tsx
index aa2f5e49aa..0184cc88f4 100644
--- a/app/src/components/settings/panels/__tests__/AgentAccessPanel.defaults.test.tsx
+++ b/app/src/components/settings/panels/__tests__/AgentAccessPanel.defaults.test.tsx
@@ -98,7 +98,6 @@ const mockUpdate = vi.mocked(openhumanUpdateAutonomySettings);
const mockGetAgent = vi.mocked(openhumanGetAgentSettings);
const mockUpdateAgent = vi.mocked(openhumanUpdateAgentSettings);
-
beforeEach(() => {
vi.clearAllMocks();
vi.mocked(isTauri).mockReturnValue(true);
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 143db8d77d..b706dce1c3 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -34,14 +34,11 @@ import {
handleComposerSlashCommand,
} from '../../features/conversations/composerSendDecision';
import { useMemorySyncActive } from '../../features/conversations/hooks/useBackgroundActivity';
+import { selectThreadGoal, selectTodoList } from '../../features/conversations/utils/harnessState';
import {
GENERAL_TAB_VALUE,
isThreadVisibleInTab,
} from '../../features/conversations/utils/threadFilter';
-import {
- selectThreadGoal,
- selectTodoList,
-} from '../../features/conversations/utils/harnessState';
import {
ChatMascotDock,
useChatMascotOptional,
diff --git a/app/src/features/conversations/components/GoalBanner.test.tsx b/app/src/features/conversations/components/GoalBanner.test.tsx
index c426f4a3bc..8d0d944db9 100644
--- a/app/src/features/conversations/components/GoalBanner.test.tsx
+++ b/app/src/features/conversations/components/GoalBanner.test.tsx
@@ -29,9 +29,7 @@ describe('GoalBanner', () => {
it('renders the objective, status, and usage against the budget', () => {
render(<GoalBanner goal={goal()} />);
expect(screen.getByTestId('goal-objective').textContent).toBe('Ship the v2 release');
- expect(screen.getByTestId('goal-status').textContent).toBe(
- 'conversations.goal.status.active'
- );
+ expect(screen.getByTestId('goal-status').textContent).toBe('conversations.goal.status.active');
expect(screen.getByTestId('goal-tokens').textContent).toBe('1.2k / 50k tokens');
expect(screen.getByTestId('goal-banner').getAttribute('data-goal-status')).toBe('active');
});
diff --git a/app/src/features/conversations/components/GoalBanner.tsx b/app/src/features/conversations/components/GoalBanner.tsx
index b35946242a..341bae4a62 100644
--- a/app/src/features/conversations/components/GoalBanner.tsx
+++ b/app/src/features/conversations/components/GoalBanner.tsx
@@ -65,7 +65,9 @@ export const GoalBanner: React.FC<Props> = ({ goal }) => {
/>
<div className="min-w-0 flex-1">
<div className="flex flex-wrap items-center gap-2">
- <span className="font-semibold text-content-primary">{t('conversations.goal.title')}</span>
+ <span className="font-semibold text-content-primary">
+ {t('conversations.goal.title')}
+ </span>
<Badge variant={STATUS_VARIANT[goal.status]} data-testid="goal-status">
{t(STATUS_KEY[goal.status])}
</Badge>
diff --git a/app/src/features/conversations/components/TodoChecklist.tsx b/app/src/features/conversations/components/TodoChecklist.tsx
index c960533724..47e12b56d7 100644
--- a/app/src/features/conversations/components/TodoChecklist.tsx
+++ b/app/src/features/conversations/components/TodoChecklist.tsx
@@ -84,9 +84,7 @@ export const TodoChecklist: React.FC<Props> = ({ list }) => {
aria-hidden
className="h-4 w-4 shrink-0 text-primary-700 dark:text-primary-200"
/>
- <span className="font-semibold text-content-primary">
- {t('conversations.todos.title')}
- </span>
+ <span className="font-semibold text-content-primary">{t('conversations.todos.title')}</span>
<span className="ml-auto text-xs text-content-secondary" data-testid="todo-progress">
{list.done ? t('conversations.todos.allDone') : progressLabel}
</span>
diff --git a/app/src/features/conversations/utils/harnessState.ts b/app/src/features/conversations/utils/harnessState.ts
index 6fcb6304ae..819d0ceb4f 100644
--- a/app/src/features/conversations/utils/harnessState.ts
+++ b/app/src/features/conversations/utils/harnessState.ts
@@ -131,10 +131,7 @@ export function selectThreadGoal(timeline: ToolTimelineEntry[]): ThreadGoalView
const goal = payload.goal;
if (goal === null) return null;
if (!goal || typeof goal !== 'object') continue;
- const { goalId, objective, status, tokensUsed, tokenBudget } = goal as Record<
- string,
- unknown
- >;
+ const { goalId, objective, status, tokensUsed, tokenBudget } = goal as Record<string, unknown>;
if (typeof objective !== 'string' || typeof status !== 'string' || !GOAL_STATUSES.has(status))
continue;
return {
diff --git a/app/test/e2e/specs/chat-todos-goals.spec.ts b/app/test/e2e/specs/chat-todos-goals.spec.ts
index 859dad6d36..48b369db1e 100644
--- a/app/test/e2e/specs/chat-todos-goals.spec.ts
+++ b/app/test/e2e/specs/chat-todos-goals.spec.ts
@@ -85,10 +85,7 @@ const FORCED_RESPONSES = [
async function readChecklist(): Promise<Array<[string, string]>> {
return (await browser.execute(() => {
const rows = Array.from(document.querySelectorAll('[data-testid="todo-item"]'));
- return rows.map(row => [
- (row.textContent ?? '').trim(),
- row.getAttribute('data-status') ?? '',
- ]);
+ return rows.map(row => [(row.textContent ?? '').trim(), row.getAttribute('data-status') ?? '']);
})) as Array<[string, string]>;
}