Skip to content

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

test(chatRuntimeSlice): add live parity tests for runtime state

Steven Enamakelbc0135f2fe28
diff --git a/app/src/store/__tests__/chatRuntimeSlice.liveParity.test.ts b/app/src/store/__tests__/chatRuntimeSlice.liveParity.test.ts
index 0d2fdf429c..7c64de9e36 100644
--- a/app/src/store/__tests__/chatRuntimeSlice.liveParity.test.ts
+++ b/app/src/store/__tests__/chatRuntimeSlice.liveParity.test.ts
@@ -9,7 +9,6 @@ import { describe, expect, it } from 'vitest';
import reducer, {
beginInferenceTurn,
- type ChatRuntimeState,
liveTurnStarted,
markInferenceTurnStreaming,
registerParallelRequest,
@@ -21,6 +20,8 @@ import reducer, {
turnSettled,
} from '../chatRuntimeSlice';
+type ChatRuntimeState = ReturnType<typeof reducer>;
+
const T = 'thread-1';
function run(actions: UnknownAction[], from?: ChatRuntimeState): ChatRuntimeState {