The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style(conversations): reorder test imports and reformat store setup
Steven Enamakel0c1a7fb9d2bc
diff --git a/app/src/features/conversations/aui/ChatConversationMap.test.tsx b/app/src/features/conversations/aui/ChatConversationMap.test.tsxindex 2a586af436..d36949d576 100644--- a/app/src/features/conversations/aui/ChatConversationMap.test.tsx+++ b/app/src/features/conversations/aui/ChatConversationMap.test.tsx@@ -1,5 +1,3 @@-import threadGoalReducer from '../../../store/threadGoalSlice';-import threadTodosReducer from '../../../store/threadTodosSlice';/*** The conversation map: `Cmd`/`Ctrl+F` find-in-conversation and assistant-ui's* persistent turn rail, both scoped to the live `/chat`@@ -16,7 +14,9 @@ import { threadApi } from '../../../services/api/threadApi';import chatRuntimeReducer from '../../../store/chatRuntimeSlice';import mascotReducer from '../../../store/mascotSlice';import runModeReducer from '../../../store/runModeSlice';+import threadGoalReducer from '../../../store/threadGoalSlice';import threadReducer from '../../../store/threadSlice';+import threadTodosReducer from '../../../store/threadTodosSlice';import type { ThreadMessage } from '../../../types/thread';import { AssistantUiChat } from '../components/AssistantUiChat';diff --git a/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx b/app/src/features/conversations/components/AssistantUiChat.slots.test.tsxindex b3f593a66f..3ac50d1f18 100644--- a/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx+++ b/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx@@ -1,5 +1,3 @@-import threadGoalReducer from '../../../store/threadGoalSlice';-import threadTodosReducer from '../../../store/threadTodosSlice';/*** Composer slot identity on the assistant-ui chat surface.*@@ -22,7 +20,9 @@ import { describe, expect, it, vi } from 'vitest';import chatRuntimeReducer from '../../../store/chatRuntimeSlice';import mascotReducer from '../../../store/mascotSlice';import runModeReducer from '../../../store/runModeSlice';+import threadGoalReducer from '../../../store/threadGoalSlice';import threadReducer from '../../../store/threadSlice';+import threadTodosReducer from '../../../store/threadTodosSlice';import { AssistantUiChat } from './AssistantUiChat';const THREAD_ID = 't-slots';diff --git a/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsx b/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsxindex 23d0546b56..4e920ff221 100644--- a/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsx+++ b/app/src/features/conversations/components/AssistantUiChat.welcomeSuggestions.test.tsx@@ -1,5 +1,3 @@-import threadGoalReducer from '../../../store/threadGoalSlice';-import threadTodosReducer from '../../../store/threadTodosSlice';/*** Welcome suggestion chips on the assistant-ui chat surface.*@@ -26,7 +24,9 @@ import { registerChatSurface } from '../../../providers/chatSurfaceHandlers';import chatRuntimeReducer from '../../../store/chatRuntimeSlice';import mascotReducer from '../../../store/mascotSlice';import runModeReducer from '../../../store/runModeSlice';+import threadGoalReducer from '../../../store/threadGoalSlice';import threadReducer from '../../../store/threadSlice';+import threadTodosReducer from '../../../store/threadTodosSlice';import type { ThreadMessage } from '../../../types/thread';import { AssistantUiChat } from './AssistantUiChat';diff --git a/app/src/features/conversations/components/ChatToolParts.approval.test.tsx b/app/src/features/conversations/components/ChatToolParts.approval.test.tsxindex de244564d6..d594b204cf 100644--- a/app/src/features/conversations/components/ChatToolParts.approval.test.tsx+++ b/app/src/features/conversations/components/ChatToolParts.approval.test.tsx@@ -1,5 +1,3 @@-import threadGoalReducer from '../../../store/threadGoalSlice';-import threadTodosReducer from '../../../store/threadTodosSlice';/*** The render half of the parked-approval repair.*@@ -29,7 +27,9 @@ import chatRuntimeReducer, {type PendingApproval,setPendingApprovalForThread,} from '../../../store/chatRuntimeSlice';+import threadGoalReducer from '../../../store/threadGoalSlice';import threadReducer from '../../../store/threadSlice';+import threadTodosReducer from '../../../store/threadTodosSlice';import { ChatToolFallback } from './ChatToolParts';vi.mock('../../../services/api/threadApi', () => ({@@ -90,9 +90,12 @@ function gatedPart(over: Record<string, unknown> = {}) {function buildStore(approval?: PendingApproval) {const store = configureStore({- reducer: combineReducers({ thread: threadReducer,+ reducer: combineReducers({+ thread: threadReducer,threadGoal: threadGoalReducer,- threadTodos: threadTodosReducer, chatRuntime: chatRuntimeReducer }),+ threadTodos: threadTodosReducer,+ chatRuntime: chatRuntimeReducer,+ }),preloadedState: {thread: {threads: [],diff --git a/app/src/features/conversations/components/aui/ChatSources.citations.test.tsx b/app/src/features/conversations/components/aui/ChatSources.citations.test.tsxindex dfdea25544..4a950e46cd 100644--- a/app/src/features/conversations/components/aui/ChatSources.citations.test.tsx+++ b/app/src/features/conversations/components/aui/ChatSources.citations.test.tsx@@ -1,5 +1,3 @@-import threadGoalReducer from '../../../../store/threadGoalSlice';-import threadTodosReducer from '../../../../store/threadTodosSlice';/*** `[n]` in the model's own answer text becomes an inline citation marker* (`elements/inline-citation.tsx`'s `CitationMarker`) instead of plain text,@@ -17,7 +15,9 @@ import { threadApi } from '../../../../services/api/threadApi';import chatRuntimeReducer from '../../../../store/chatRuntimeSlice';import mascotReducer from '../../../../store/mascotSlice';import runModeReducer from '../../../../store/runModeSlice';+import threadGoalReducer from '../../../../store/threadGoalSlice';import threadReducer from '../../../../store/threadSlice';+import threadTodosReducer from '../../../../store/threadTodosSlice';import type { DerivedDisplayItem } from '../../../../types/derivedTranscript';import type { ThreadMessage } from '../../../../types/thread';import { AssistantUiChat } from '../AssistantUiChat';diff --git a/app/src/features/conversations/components/aui/ChatSources.test.tsx b/app/src/features/conversations/components/aui/ChatSources.test.tsxindex 2772bca720..feffefc1b9 100644--- a/app/src/features/conversations/components/aui/ChatSources.test.tsx+++ b/app/src/features/conversations/components/aui/ChatSources.test.tsx@@ -1,5 +1,3 @@-import threadGoalReducer from '../../../../store/threadGoalSlice';-import threadTodosReducer from '../../../../store/threadTodosSlice';/*** Inline source list under a settled answer.*@@ -47,7 +45,9 @@ import { threadApi } from '../../../../services/api/threadApi';import chatRuntimeReducer from '../../../../store/chatRuntimeSlice';import mascotReducer from '../../../../store/mascotSlice';import runModeReducer from '../../../../store/runModeSlice';+import threadGoalReducer from '../../../../store/threadGoalSlice';import threadReducer from '../../../../store/threadSlice';+import threadTodosReducer from '../../../../store/threadTodosSlice';import type { DerivedDisplayItem } from '../../../../types/derivedTranscript';import type { ThreadMessage } from '../../../../types/thread';import { AssistantUiChat } from '../AssistantUiChat';