Skip to content

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

fix(test): add runMode reducer to test store setup

Steven Enamakel651ec81607e8
diff --git a/app/src/features/conversations/aui/ChatConversationMap.test.tsx b/app/src/features/conversations/aui/ChatConversationMap.test.tsx
index 3f066ffadb..8a2ff9d743 100644
--- a/app/src/features/conversations/aui/ChatConversationMap.test.tsx
+++ b/app/src/features/conversations/aui/ChatConversationMap.test.tsx
@@ -13,6 +13,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import { threadApi } from '../../../services/api/threadApi';
import chatRuntimeReducer from '../../../store/chatRuntimeSlice';
import mascotReducer from '../../../store/mascotSlice';
+import runModeReducer from '../../../store/runModeSlice';
import threadReducer from '../../../store/threadSlice';
import type { ThreadMessage } from '../../../types/thread';
import { AssistantUiChat } from '../components/AssistantUiChat';
@@ -33,6 +34,7 @@ function buildStore(messages: ThreadMessage[]) {
thread: threadReducer,
chatRuntime: chatRuntimeReducer,
mascot: mascotReducer,
+ runMode: runModeReducer,
}),
preloadedState: {
thread: {
diff --git a/app/src/features/conversations/components/aui/ChatSources.citations.test.tsx b/app/src/features/conversations/components/aui/ChatSources.citations.test.tsx
index ece302181e..28656fed7f 100644
--- a/app/src/features/conversations/components/aui/ChatSources.citations.test.tsx
+++ b/app/src/features/conversations/components/aui/ChatSources.citations.test.tsx
@@ -14,6 +14,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import { threadApi } from '../../../../services/api/threadApi';
import chatRuntimeReducer from '../../../../store/chatRuntimeSlice';
import mascotReducer from '../../../../store/mascotSlice';
+import runModeReducer from '../../../../store/runModeSlice';
import threadReducer from '../../../../store/threadSlice';
import type { DerivedDisplayItem } from '../../../../types/derivedTranscript';
import type { ThreadMessage } from '../../../../types/thread';
@@ -51,6 +52,7 @@ function buildStore(message: ThreadMessage) {
thread: threadReducer,
chatRuntime: chatRuntimeReducer,
mascot: mascotReducer,
+ runMode: runModeReducer,
}),
preloadedState: {
thread: {
diff --git a/app/src/features/conversations/components/aui/ChatSources.test.tsx b/app/src/features/conversations/components/aui/ChatSources.test.tsx
index f90fe1f2af..c28b16560a 100644
--- a/app/src/features/conversations/components/aui/ChatSources.test.tsx
+++ b/app/src/features/conversations/components/aui/ChatSources.test.tsx
@@ -43,6 +43,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import { threadApi } from '../../../../services/api/threadApi';
import chatRuntimeReducer from '../../../../store/chatRuntimeSlice';
import mascotReducer from '../../../../store/mascotSlice';
+import runModeReducer from '../../../../store/runModeSlice';
import threadReducer from '../../../../store/threadSlice';
import type { DerivedDisplayItem } from '../../../../types/derivedTranscript';
import type { ThreadMessage } from '../../../../types/thread';
@@ -86,6 +87,7 @@ function buildStore(message: ThreadMessage = agentMessage()) {
thread: threadReducer,
chatRuntime: chatRuntimeReducer,
mascot: mascotReducer,
+ runMode: runModeReducer,
}),
preloadedState: {
thread: {