Skip to content

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

test(conversations): add runMode reducer to test stores

Steven Enamakel20a63331f9c0
diff --git a/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx b/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx
index 3344d0d5fe..b25c25733b 100644
--- a/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx
+++ b/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx
@@ -19,6 +19,7 @@ import { describe, expect, it, vi } from 'vitest';
import chatRuntimeReducer from '../../../store/chatRuntimeSlice';
import mascotReducer from '../../../store/mascotSlice';
+import runModeReducer from '../../../store/runModeSlice';
import threadReducer from '../../../store/threadSlice';
import { AssistantUiChat } from './AssistantUiChat';
@@ -30,6 +31,8 @@ function buildStore() {
thread: threadReducer,
chatRuntime: chatRuntimeReducer,
mascot: mascotReducer,
+ // The composer's `/plan` / `/build` commands read it (`useRunMode`).
+ runMode: runModeReducer,
}),
preloadedState: {
thread: {
diff --git a/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsx b/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsx
index 1698bee77f..09fef520a9 100644
--- a/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsx
+++ b/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsx
@@ -23,6 +23,7 @@ import { afterEach, describe, expect, it, vi } from 'vitest';
import { registerChatSurface } from '../../../providers/chatSurfaceHandlers';
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 './AssistantUiChat';
@@ -56,6 +57,8 @@ function buildStore(messages: ThreadMessage[]) {
thread: threadReducer,
chatRuntime: chatRuntimeReducer,
mascot: mascotReducer,
+ // The composer's `/plan` / `/build` commands read it (`useRunMode`).
+ runMode: runModeReducer,
}),
preloadedState: {
thread: {
diff --git a/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx b/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx
index f2e298417d..41c20c6c92 100644
--- a/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx
+++ b/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx
@@ -26,6 +26,7 @@ import chatRuntimeReducer, {
subagentAwaitingUser,
} from '../../../store/chatRuntimeSlice';
import mascotReducer from '../../../store/mascotSlice';
+import runModeReducer from '../../../store/runModeSlice';
import threadReducer from '../../../store/threadSlice';
import { AssistantUiChat } from './AssistantUiChat';
@@ -37,6 +38,8 @@ function buildStore() {
thread: threadReducer,
chatRuntime: chatRuntimeReducer,
mascot: mascotReducer,
+ // The composer's `/plan` / `/build` commands read it (`useRunMode`).
+ runMode: runModeReducer,
}),
preloadedState: {
thread: {