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
test(store): add test for deleting thread from legacy state
Steven Enamakel4a62d763e804
diff --git a/app/src/store/__tests__/threadSlice.test.ts b/app/src/store/__tests__/threadSlice.test.tsindex 0ccabd7904..3ae0c924cd 100644--- a/app/src/store/__tests__/threadSlice.test.ts+++ b/app/src/store/__tests__/threadSlice.test.ts@@ -12,6 +12,7 @@ import threadReducer, {clearSelectedThread,clearStaleThread,clearThreadInferenceActive,+ deleteThread,generateThreadTitleIfNeeded,loadThreadMessages,loadThreads,@@ -87,6 +88,15 @@ describe('threadSlice synchronous reducers', () => {expect(state.isLoadingMessages).toBe(false);});+ it('deletes a thread from legacy persisted state without channel activity', () => {+ const current = threadReducer(undefined, { type: '@@test/init' });+ const legacyState = { ...current, channelActivityByThreadId: undefined } as unknown as typeof current;++ expect(() =>+ threadReducer(legacyState, deleteThread.fulfilled({ threadId: 't-legacy' }, 'request-1', 't-legacy'))+ ).not.toThrow();+ });+it('applies provider reactions only to the exact OpenHuman row and persists read state in metadata', async () => {const store = createStore();const message = makeMessage({