Skip to content

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

fix(test): update conversation tests for source command handling

Steven Enamakeld7f5c67a252c
diff --git a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
index c90fb1b1fb..d2825bf8e6 100644
--- a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
+++ b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
@@ -83,7 +83,6 @@ vi.mock('../../services/api/threadApi', () => ({
vi.mock('../../hooks/useUsageState', () => ({ useUsageState: mockUseUsageState }));
-vi.mock('../../components/chat/ChatNewWindowHero', () => ({ default: () => null }));
vi.mock('../../lib/coreState/store', () => ({
getCoreStateSnapshot: vi.fn(() => ({
diff --git a/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx b/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx
index 85eff75f97..9e49ba4ca5 100644
--- a/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx
+++ b/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx
@@ -114,16 +114,12 @@ vi.mock('../../hooks/useFlowApprovalRequests', () => ({
useFlowApprovalRequests: () => mockFlowApprovalRequests(),
}));
-vi.mock('../../components/chat/ChatNewWindowHero', () => ({ default: () => null }));
vi.mock('../../store/socketSelectors', () => ({
selectSocketStatus: (state: { socket?: { byUser?: Record<string, { status: string }> } }) =>
state.socket?.byUser?.__pending__?.status ?? 'disconnected',
}));
-vi.mock('../../hooks/useStickToBottom', () => ({
- useStickToBottom: vi.fn(() => ({ containerRef: { current: null }, endRef: { current: null } })),
-}));
vi.mock('../../utils/openUrl', () => ({ openUrl: vi.fn() }));
diff --git a/app/src/pages/__tests__/Conversations.render.test.tsx b/app/src/pages/__tests__/Conversations.render.test.tsx
index 3c45be98c1..11a40ed6f4 100644
--- a/app/src/pages/__tests__/Conversations.render.test.tsx
+++ b/app/src/pages/__tests__/Conversations.render.test.tsx
@@ -96,7 +96,6 @@ vi.mock('../../services/api/threadApi', () => ({
vi.mock('../../hooks/useUsageState', () => ({ useUsageState: mockUseUsageState }));
-vi.mock('../../components/chat/ChatNewWindowHero', () => ({ default: () => null }));
// coreState/store: getCoreStateSnapshot used by selectSocketStatus.
vi.mock('../../lib/coreState/store', () => ({
diff --git a/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsx b/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsx
index 0664d96839..2f6f24d143 100644
--- a/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsx
+++ b/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsx
@@ -85,16 +85,12 @@ vi.mock('../../services/api/openrouterFreeModels', () => ({ applyOpenRouterFreeM
vi.mock('../../hooks/useUsageState', () => ({ useUsageState: mockUseUsageState }));
-vi.mock('../../components/chat/ChatNewWindowHero', () => ({ default: () => null }));
vi.mock('../../store/socketSelectors', () => ({
selectSocketStatus: (state: { socket?: { byUser?: Record<string, { status: string }> } }) =>
state.socket?.byUser?.__pending__?.status ?? 'disconnected',
}));
-vi.mock('../../hooks/useStickToBottom', () => ({
- useStickToBottom: vi.fn(() => ({ containerRef: { current: null }, endRef: { current: null } })),
-}));
vi.mock('../../utils/openUrl', () => ({ openUrl: vi.fn() }));
diff --git a/app/src/pages/__tests__/Conversations.unroutedApproval.test.tsx b/app/src/pages/__tests__/Conversations.unroutedApproval.test.tsx
index 1a92e4442f..14294a057f 100644
--- a/app/src/pages/__tests__/Conversations.unroutedApproval.test.tsx
+++ b/app/src/pages/__tests__/Conversations.unroutedApproval.test.tsx
@@ -65,7 +65,6 @@ vi.mock('../../hooks/useUsageState', () => ({
// Reads `useCoreState`, which needs a provider this test does not mount.
useUsageState: () => ({ usage: null, loading: false, error: null, refresh: vi.fn() }),
}));
-vi.mock('../../components/chat/ChatNewWindowHero', () => ({ default: () => null }));
vi.mock('../../lib/coreState/store', () => ({
getCoreStateSnapshot: vi.fn(() => ({ isBootstrapping: false, isReady: true })),
subscribeCoreState: vi.fn(() => () => undefined),